Name
xsd:boolean — Boolean (true or false)
Synopsis
<xsd:simpleType name="boolean” id="boolean"> <xsd:restriction base="xsd:anySimpleType"> <xsd:whiteSpace value="collapse” fixed="true"/> </xsd:restriction> </xsd:simpleType>
Derived from
xsd:anySimpleType
Primary
xsd:boolean
Known subtypes
None
Data parameters (facets)
pattern
Description
The value space of xsd:boolean
is true and false.
Its lexical space accepts true
,
false
, and also 1
(for true)
and 0
(for false).
Restrictions
This datatype can’t be localized—for instance, it can’t accept the French vrai and faux instead of the English true and false.
Example
<book id="b0836217462" available="true"/>
Get RELAX NG now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.