In backwards compatibilility mode, when a function is
declared with an optional string parameter, and the
supplied value is an empty sequence, this should be
converted to an empty string. Saxon is supplying an
empty sequence.
The result is that a test such as
string-length(@x) = 0
is returning () rather than true when @x is absent. In
most boolean contexts, () is taken as false.
Test case: predicate58
Source code fixed.
Michael Kay
XPath conformance
v7.4
Public
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2003-06-27 18:58 | mhkay |
| resolution_id | None | 2003-06-27 18:58 | mhkay |
| summary | Converting () to "" in 1.0 mode | 2003-06-27 18:58 | mhkay |
| close_date | - | 2003-06-27 18:58 | mhkay |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use