How Boolean Functions Work in XPath Functions

This topic describes how Boolean functions work 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().

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.