Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


xml:id spec and XML Schema?

From: Webb Roberts <webb.roberts@----.------.--->
To: xmlschema-dev@--.---
Date: 10/11/2004 12:31:00 PM
In attempting to integrate the xml:id spec with existing schemas, I have run into some details that differ from the specification as written, which raises a larger question.

The specification ( http://www.w3.org/TR/xml-id/#with-schema-validation ) features a sample declaration of xml:id

| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|            targetNamespace="http://www.w3.org/1998/XML/Namespace">
| 
|     <xs:attribute name="xml:id" type="xs:ID"/>
| 
| </xs:schema>

Which has a couple of problems.  To pass validation, mine ended up looking like:

| <xs:schema 
|     targetNamespace="http://www.w3.org/XML/1998/namespace"
|     xmlns:xs="http://www.w3.org/2001/XMLSchema">
|   <xs:attribute name="id" type="xs:ID"/>
| </xs:schema>

Note the different namespace, and the different declaration of xs:attribute (attribute name must be a NCName).  

This raises the question: is there a normative schema for the xml namespace?  

It seems that having individual implementors create (and therefore debug) their own versions of the xml namespace is not the Right Answer.  I don't want to know what happens when my unauthorized version of the xml namespace collides with someone else's copy.  The document at the namespace URL describes two attributes of the xml namespace (version 1.0), but does not include the xml:id attribute.  It does not include a schema for the namespace.

Thanks,
Webb Roberts


From ht@i... Mon Oct 11 22:35:25 2004
Received: from lisa.w3.o


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent