Name
xs:boolean
Synopsis
Defined in: XML Schema part 2
Simple on/off controls, such as a single checkbox, are naturally represented by a boolean datatype.
Caveats
The lexical space allows multiple representations, so any script or XPath function that reads a value of this datatype should be prepared to see either a string (“true” or “false”) or a number (1 or 0).
Examples
true
1
false
0
Get XForms Essentials 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.