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*)>
  xmlns:rdf     CDATA #FIXED
  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 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:59 UTC