RE: [xml-dev] The prefix "fgdc" for element "fgdc:fgdc" is not bound

From
Timothy Lepczyk <>
To
Michael Kay <>, Anne Thomas Manes <>
Date
2007-12-11T19:56:58Z
ID
<>
Thread
RE: [xml-dev] The prefix "fgdc" for element "fgdc:fgdc" is not bound
I've been going through the XML Namespaces and am wondering if this will
work?


<fgdc xmlns:fgdc="http://www.fgdc.gov/metadata/csdgm/index_html">
...
</fgdc>

Thanks,

Tim Lepczyk



-----Original Message-----
From: Michael Kay [mailto:] 
Sent: Tuesday, December 11, 2007 12:26 PM
To: 'Anne Thomas Manes'; Timothy Lepczyk
Cc: 
Subject: RE: [xml-dev] The prefix "fgdc" for element "fgdc:fgdc" is not
bound

> or if you prefer to make it clear to readers of the document 
> that these elements come from the FDGC metadata standard, you 
> can assign the fdgc prefix to no namespace:
> 
>           <fgdc:metadata xmlns:fgdc="">
>              ...
>           </fgdc:metadata>
> 

Sadly, no. XML Namespaces 1.1 allows the syntax xmlns:fgdc="", but it
doesn't bind the prefix fgdc to the
namespace-that-dare-not-speak-its-name,
rather it makes the fgdc prefix unavailable for use.

Michael Kay
http://www.saxonica.com/