Incorrect optimization of [$x op (1 to 100)]
The Saxon XSLT and XQuery processor, developed by Saxonica
Brought to you by:
mhkay
Saxon optimizes an expression such as [$x = (1 to 100)] to simply perform a range test on the value of $x. This optimization is producing incorrect code if the operator is anything other than "=".
A patch will be placed in Subversion (affects net.sf.saxon.GeneralComparison.java).