How Boolean Functions Work in XPath Functions

You can use Boolean functions in XPath functions in the XPath editor.

XPaths that select element values always return strings, even if the XSD data type is Boolean. If you use elements with an XSD Boolean type in an XPath expression, be aware of how the Boolean type is treated in XPath.

When an element is evaluated for use as a Boolean argument, it is first converted to a Boolean according to the following rules:


Examples:


These conditions apply to the XPath and, or, and not functions.

Using Boolean expressions in XPath functions

When an extension function requires a Boolean argument, use the XPath function true() or false().

For product-related issues, contact Sybase Technical Support at 1-800-8SYBASE. Send your feedback on this help topic directly to Sybase Technical Publications: pubs@sybase.com