If $boolean-var1 equals the boolean value: false and $boolean-var2 equals the boolean value: true, the boolean value: true is returned. For all other cases, the boolean value: false is returned as shown in the following table.
This operator is equivalent to the lt operator with boolean values.
op:boolean-less-than(xs:boolean $boolean-var1, xs:boolean $boolean-var2) —> xs:boolean
Returns the boolean value: true if $boolean-var1 is less than boolean value of $boolean-var2. For example: if $boolean-var1 is equal to false and $boolean-var2 is equal to true, the boolean value true is returned.
Returns the boolean value: false for all other cases.
Invoking op:boolean-less-than(xf:false(),xf:true()) returns the boolean value: true, as shown in the following example query:
<boolean-less-than>{ op:boolean-less-than(xf:false(),xf:true()) }</boolean-less-than>
The preceding query generates the following result:
<boolean-less-than>true</boolean-less-than>
Invoking op:boolean-less-than(xf:true(),xf:false()) returns the boolean value: false, as shown in the following example query:
<boolean-less-than>{ op:boolean-less-than(xf:true(),xf:false()) }</boolean-less-than>
The preceding query generates the following result:
<boolean-less-than>false</boolean-less-than>
W3C boolean-less-than operator description.
W3C boolean function description