#83 string-length()=0 fails

v7.1
closed
Michael Kay
5
2012-10-08
2002-06-24
Michael Kay
No

Saxon optimizes the expression string-length(X)=0, and
others similar, to not(string(X)). This optimization is
incorrect in 7.1, because XPath 2.0 treats the strings "0"
and "false" as false.

Affects 7.1 only. Source code corrected, test case
added.

Discussion

  • Michael Kay
    Michael Kay
    2002-08-28

    Logged In: YES
    user_id=251681

    Fixed in 7.2