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

Empty attributes

From: Olivier Lefevre <lefevrol@yahoo.com>
Date: Wed, 19 Oct 2005 03:05:40 +0200
To: xmlschema-dev@w3.org
Message-ID: <dj465d$f6s$1@sea.gmane.org>
Empty attributes

any DTD-focused newsgroup or mailing list.

I have an XML file in which some attributes are set to
"", e.g., <entry id="4" type=""> and cannot find any
way to allow this in the DTD. The DTD specifies a list
of possible values for type and if I try to add "" to
the list, e.g., by writing <!ENTITY % type "(foo|bar|)">,
the parser complains that "the name token is required in
the enumerated type list for the "type" attribute
declaration.". Similarly if I try to make the attribute
implied rather than required I still get the error that
"" is not a valid value for the type attribute (I naively
thought that an empty attribute might be equated to a
missing one). So I am really stumped. Are empty attributes
possible at all?

FWIW the parser used is XOM, which uses Xerces2 underneath.
Received on Wednesday, 19 October 2005 07:43:04 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.