XML technologies / XML Schema / Data type reference / xs:boolean
(Excerpt from “XML Schema” by Eric van der Vlist)
Boolean (true or false)
Derived from: xs:anySimpleType
Primitive type: xs:boolean
Known subtypes: none
Facets: xs:pattern, xs:whiteSpace
Definition
<xs:simpleType name="boolean" id="boolean">
<xs:restriction base="xs:anySimpleType">
<xs:whiteSpace value="collapse" fixed="true"/>
</xs:restriction>
</xs:simpleType>Description
The value space of xs:boolean consists of true and false, and its lexical space accepts true, false and also “1” (true) and “0” (false).
Restrictions
This data type cannot be localized to accept, for example, “vrai” and “faux” or “wahr” and “falsch” instead of “true” and “false”.
Example
<book id="b0836217462" available="true"/>
Copyright © 2003 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “XML Schema” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de