XPath/XQuery not function

Summary

Returns true if the effective boolean value of $arg is false, or false if it is true.

Signature

fn:not(
$arg as item()*
) as xs:boolean

Properties

This function is deterministic, context-independent, and focus-independent.

Rules

The value of $arg is first reduced to an effective boolean value by applying the fn:boolean() function. The function returns true if the effective boolean value is false, or false if the effective boolean value is true.

Examples

The expression fn:not(fn:true()) returns false().

The expression fn:not(()) returns true().

The expression fn:not("false") returns false().

fn:not(1 to 10) raises a type error .