W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2000

RE: NMTOKEN elements?

From: DuCharme, Robert <Robert.DuCharme@moodys.com>
Date: Thu, 29 Jun 2000 11:10:07 -0400
Message-ID: <01BA10F0CD20D3119B2400805FD40F9F0249D9F0@MDYNYCMSX1>
To: "'Biron,Paul V'" <Paul.V.Biron@kp.org>
Cc: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
>> This means that you are free to use NMTOKEN as an element value but
>> your instance documents will not conform to the XML 1.0 spec.
>> 
>Just a bit of clarification here.  Your instance document will still
>"conform" to the XML 1.0 spec, in the sense that it is still a well-formed
>document.  The point of the "for compatibility" clause is that if you
define
>the text content of an element to be of type NMTOKEN (or ID, IDREF, etc.)
>then there will not be a DTD equivalent for your schema (i.e., it will not
>be possible to translate your schema into a DTD which validates the same
>instances).

I understand. I was just curious if the issue of a parser's required
behavior with NMTOKEN elements had been addressed--that is, if assigning an
element a type of NMTOKEN (as an example in section 4.3.3 of Part 1 of the
schema spec does) would actually buy you anything. 

thanks,

Bob
Received on Thursday, 29 June 2000 11:09:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:47 GMT