Menu

#649 Incorrect optimization of [$x op (1 to 100)]

v8.8
closed
5
2012-10-08
2007-02-06
Michael Kay
No

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).

Discussion