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

Question about DTD for XML Schema

From: Paul Grosso <pgrosso@arbortext.com>
Date: Wed, 24 Aug 2005 11:55:54 -0400
Message-ID: <F13E1BF26B19BA40AF3C0DE7D4DA0C0305E71CB7@ati-mail01.arbortext.local>
To: <www-xml-schema-comments@w3.org>

The XML Schema datatype spec says [1]:

3.2.2 boolean

[Definition:]  boolean has the *value space* required to support the
mathematical concept of binary-valued logic: {true, false}. Lexical representation

An instance of a datatype that is defined as *boolean* can have the
following legal literals {true, false, 1, 0}. 

So I gather the allowable values in a document instance
for something of type boolean are one of the four strings
true, false, 1, 0.  Correct?

The datatype dtd for schemas [2] has:

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

Shouldn't the DTD include 0 and 1?


[1] http://www.w3.org/TR/xmlschema-2/#boolean
[2] http://www.w3.org/2001/datatypes.dtd
Received on Wednesday, 24 August 2005 15:56:03 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:03 UTC