boolean() optimized incorrectly
The Saxon XSLT and XQuery processor, developed by Saxonica
Brought to you by:
mhkay
A call on the boolean() function may be incorrectly "optimized" to return the value of its argument. This should only occur when the type of the argument is a singleton boolean, but it is also occurring, for example, with the expression boolean(string-length(X) > 0), where the argument is rewritten as "X" because this has the same effective boolean value.
A patch is being placed in Subversion.
This is fixed in 9.4.0.1, and will also be fixed in any maintenance release on the 9.3 branch post 9.3.0.11