W3C home > Mailing lists > Public > public-xml-core-wg@w3.org > August 2005

Q about DTD for XML Schema

From: Paul Grosso <pgrosso@ptc.com>
Date: Tue, 23 Aug 2005 10:43:41 -0500
To: <public-xml-core-wg@w3.org>
Message-ID: <HQ-EX3FE1hQdOgl4rhY0000348f@hq-ex3fe1.ptcnet.ptc.com>

[Henry, this is mostly a question for you.]

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 Tuesday, 23 August 2005 15:43:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:35 UTC