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

%boolean; in XML Schema DTD

From: Alain Frisch <Alain.Frisch@inria.fr>
Date: 22 Apr 2005 09:07:13 -0600
Message-ID: <4268B345.5060108@inria.fr>
To: www-xml-schema-comments@w3.org




Hello again,

The DTD for XML Schema defines the entity boolean as:

<!ENTITY % boolean "(true|false)">

However, booleans attributes should accept "0" and "1" as legal values.
Shouldn't the definition be:

<!ENTITY % boolean "(true|false|0|1)">


By the way, the primitive datatype boolean is introduced in Section 
3.2.2 of XML Schema Part 2. However, I cannot find the relation between 
the Lexical representation and the Canonical representation. I guess 
that "1" should be mapped to "true" and "0" to "false", but shouldn't 
this be formally specified ?


Cheers,


   Alain
Received on Friday, 22 April 2005 15:06:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 October 2007 06:13:36 GMT