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"/>

   

 

 

 

back to top