functx:exclusive-or
Whether one (and only one) of two boolean values is true
Description
The functx:exclusive-or function returns true if one (and only one) of two boolean values is true. If either value is the empty sequence, the empty sequence is returned.
Parameters |
Description |
---|---|
arg1:boolean() |
the first boolean value |
arg2:boolean() |
the second boolean value |
Examples
XPath |
Results |
---|---|
functx:exclusive-or(true(),false()) |
true |
functx:exclusive-or(true(),true()) |
false |
functx:exclusive-or(4 > 3,1 > 2) |
true |