Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

5 Converting () to "" in 1.0 mode - ID: 709347
Last Update: Settings changed ( mhkay )

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 ( mhkay ) - 2003-03-25 10:48

5

Closed

Fixed

Michael Kay

XPath conformance

v7.4

Public


Comments

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Changes ( 4 )

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