[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Empty attributes

From: Michael Kay <mike@saxonica.com>
Date: Wed, 19 Oct 2005 09:24:05 +0100
To: "'Olivier Lefevre'" <lefevrol@yahoo.com>, <xmlschema-dev@w3.org>
Message-ID: <E1ES9FE-0004KQ-Vp@lisa.w3.org>
the name token is required

> any DTD-focused newsgroup or mailing list.

This list isn't DTD-focused, it is XML Schema-focused.

Doing this in XML Schema is no problem.
 
> the parser complains that "the name token is required in
> the enumerated type list for the "type" attribute
> declaration.". 

It's a strange historical relic of SGML than enumerated values defined in a
DTD have to be valid names. The reason is that SGML (when the moon is right)
allows the quotes on an attribute value to be omitted.

Michael Kay
http://www.saxonica.com/
Received on Wednesday, 19 October 2005 08:24:25 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.