<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>RE: [postgis-users] RE: [postgis-devel] GML output</TITLE>
</HEAD>
<BODY dir=ltr>
<DIV><FONT size=2>Darko,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I did not say that the prefix was the namespace, I merely
repeated your description of it as the "namespace prefix".</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>While it is true that GML 2 has D-IS status, it is also true
that the WFS specification normatively references GML 2, and mandates its use as
a returned format for the GetFeatures request. Until such time as a new
WFS spec is adopted, AND all implementations of WFS servers are brought up to
date, AND all installations of those server implementations are
upgraded, AND all WFS clients are brought up to date, AND all installations
of those clients are upgraded, GML 2 is very much alive.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Regards,</FONT></DIV>
<DIV><FONT size=2>Martin</FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> Darko Androsevic
[mailto:dandrosevic@galdosinc.com] <BR><B>Sent:</B> Fri 24/09/2004 17:34
<BR><B>To:</B> Martin Daly; 'PostGIS Users Discussion' <BR><B>Cc:</B> 'Frank
Warmerdam'; 'PostGIS Development Discussion'; 'Paul Ramsey'
<BR><B>Subject:</B> RE: [postgis-users] RE: [postgis-devel] GML
output<BR><BR></FONT></DIV>
<P><FONT size=2>Martin,</FONT> </P>
<P><FONT size=2>The prefix is NOT the namespace. The prefix is arbitrary. What
counts is the URI. The use of prefix gml: is only convention and is
meaningless without the namespace binding. The binding is declared with xmlns
attribute.</FONT></P>
<P><FONT size=2>See the "Namspaces in XML (World Wide Web Consortium
14-January-1999)":</FONT> <BR><FONT size=2><A
href="http://www.w3.org/TR/REC-xml-names/">http://www.w3.org/TR/REC-xml-names/</A></FONT>
</P>
<P><FONT size=2>Regarding 'prefixes', see section "3. Qualified Names", the
very last</FONT> <BR><FONT size=2>paragraph, reproduced below:</FONT> </P>
<P><FONT size=2>"Note that the prefix functions only as a placeholder for a
namespace name.</FONT> <BR><FONT size=2>Applications should use the namespace
name, not the prefix, in constructing</FONT> <BR><FONT size=2>names whose
scope extends beyond the containing document"</FONT> </P><BR><BR><BR>
<P><FONT size=2>GML2.x has been removed from the list of OGC specs</FONT>
<BR><FONT size=2><A
href="http://www.opengeospatial.org/specs/?page=specs">http://www.opengeospatial.org/specs/?page=specs</A></FONT>
<BR><FONT size=2>Its status is D-IS (Deprecated Implementation Specification).
Given this, all future development should be based on GML3.x.</FONT></P><BR>
<P><FONT size=2>Thanks,</FONT> <BR><FONT size=2>Darko</FONT> </P><BR><BR>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From:
Martin Daly [<A
href="mailto:Martin.Daly@cadcorp.com">mailto:Martin.Daly@cadcorp.com</A>]</FONT>
<BR><FONT size=2>Sent: Friday, September 24, 2004 1:29 AM</FONT> <BR><FONT
size=2>To: Darko Androsevic; PostGIS Users Discussion</FONT> <BR><FONT
size=2>Cc: Frank Warmerdam; PostGIS Development Discussion; Paul Ramsey</FONT>
<BR><FONT size=2>Subject: RE: [postgis-users] RE: [postgis-devel] GML
output</FONT> </P><BR>
<P><FONT size=2>Darko,</FONT> </P>
<P><FONT size=2>> The namespace prefix is arbitrary--it could be "tns".
What's </FONT><BR><FONT size=2>> essential is that the prefix is bound to
the correct namespace:</FONT> <BR><FONT size=2>> </FONT><BR><FONT
size=2>> <tns:Polygon xmlns:tns="<A
href="http://www.opengis.net/gml">http://www.opengis.net/gml</A>"></FONT>
<BR><FONT size=2>> ...</FONT> <BR><FONT size=2>>
</tns:Polygon></FONT> </P>
<P><FONT size=2>As I said originally "There are all sorts of ways to cope
with</FONT> <BR><FONT size=2>namespaces". However, the AsGML() function
works in isolation, only</FONT> <BR><FONT size=2>producing the geometry
property of a feature. It has no context within</FONT> <BR><FONT
size=2>which to work. Using the "gml:" namespace prefix removes the need
for</FONT> <BR><FONT size=2>an extra parameter, and probably improves
interoperability.</FONT> </P>
<P><FONT size=2>> GML 2.x is history.</FONT> </P>
<P><FONT size=2>Your organisation is entitled to an opinion, but that doesn't
make it</FONT> <BR><FONT size=2>the truth.</FONT> </P>
<P><FONT size=2>Regards,</FONT> <BR><FONT size=2>Martin</FONT>
</P></BLOCKQUOTE>
</BODY>
</HTML>