Compartilhar via


XPath Boolean Functions (Compact 2013)

3/26/2014

The XML Path Language (XPath) syntax supports Boolean functions that return strings or numbers, and can be used with comparison operators in filter patterns.

The following table shows the Boolean functions implemented by XPath.

Function

Description

boolean Function

Converts the argument to a Boolean.

false Function

Returns False.

lang Function

Returns True if the xml:lang attribute of the context node is the same as the argument string.

not Function

Returns True if the argument is false, and a false otherwise.

true Function

Returns True.

See Also

Reference

XPath Functions