#130 Converting () to "" in 1.0 mode

v7.4
closed
5
2012-10-08
2003-03-25
Michael Kay
No

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.

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks