August 2003
Beginner to intermediate
240 pages
7h 44m
English
boolean-from-string( ) — converts a string value into a boolean
| Defined in: XForms 1.0 |
Parameters: string bool (required) |
| Return type: boolean |
This function differs from
boolean( ) in that it takes into account XML
Schema rules: "true" or "1"
produces true, and "false" or
"0" produce false.
This example, as might be used when the value of the
b element is of the type
xs:boolean, returns an XPath boolean value that
matches the XML Schema value of the node:
boolean-from-string(a/b)
Read now
Unlock full access