Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


"For compatibility" in XML Schema

From: "Michael Kay" <mike@--------.--->
To: <xmlschema-dev@--.--->
Date: 11/22/2005 9:28:00 AM
In various places in schema part 2, we see statements like:

For compatibility (see Terminology (=A71.4)) NMTOKEN should be used only =
on
attributes.

The terminology section says:

[Definition:]   for compatibility
    A feature of this specification included solely to ensure that =
schemas
which use this feature remain compatible with [XML 1.0 (Second Edition)] =


My schema processor has been diligently producing warnings when users =
ignore
this advice, but I've come to the conclusion that these warnings (and =
the
advice itself) are completely useless. A schema that uses NMTOKEN as an
element type is no more or less incompatible with XML 1.0 than one that =
uses
xs:integer as an element type.

The definition itself seems nonsense when you read it carefully. What
actually seems to have happened is that XML Schema includes some =
features
which are provided only to make life easier for people moving forward =
from
DTDs. These features are provided "for compatibility". Someone seems to =
have
then made a false analogy with the use of the phrase "for compatibility" =
in
the XML 1.0 specification, where it is used to advise people how to =
ensure
that their XML is also valid SGML. 

I can't see any logical reason, connected with compatibility or with
anything else, why types such as NMTOKEN should be used only on =
attributes.

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



From K.Buchcik@4... Tue Nov 22 10:00:20 2005
Received: from maggie.w3


transparent
Print
Mail
Digg
delicious
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