W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2002

How to represent fixed namespace attributes?

From: Pete Beazley <pete@clearlyonline.com>
Date: Fri, 22 Feb 2002 18:36:12 -0500
To: <xmlschema-dev@w3.org>
Message-ID: <001c01c1bbf9$b75b0150$0500a8c0@CO4>
Is it possible to represent fixed namespace attributes using XML Schema?
For example, what would the equivalent of the following DTD fragment be
in XML Schema?

<!ELEMENT rdf:RDF (rdf:Description*)>
<!ATTLIST rdf:RDF
  xmlns:rdf     CDATA #FIXED
"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc      CDATA #FIXED "http://purl.org/dc/elements/1.1/"
  xmlns:dcterms CDATA #FIXED "http://purl.org/dc/terms/"
>

I'm struggling to see a way to do this in XML Schema since the
<xsd:attribute> element doesn't allow namespace qualified attribute
names to be declared. And, I don't believe it is legal to declare
'xmlns' as a namespace since it is reserved by XML.

Any ideas?

--------
Pete Beazley         mailto:pete@clearlyonline.com
ClearlyOnline, Inc.  http://www.clearlyonline.com
Received on Friday, 22 February 2002 18:36:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:27 GMT