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