Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

5 EXSLT set:leading and empty nodeset - ID: 626277
Last Update: Settings changed ( mhkay )

Saxon's implementation of the EXSLT set:leading
function doesn't implement the rule:

"If the second node set is empty, then the first node
set is returned. "

Instead, it implements the rule:

If the second node set is empty, then the empty node
set is returned.

Saxon also doesn't implement the rule:

"If the first node in the second node set is not
contained in the first node set, then an empty node set
is returned."

This rule is particularly horrible, in fact it requires
a complete redesign of the implementation, because it
means that the function can't be pipelined. You can't
decide whether the first node in arg1 should be
included in the result until you have read all the
nodes in arg1. Saxon returns all the nodes in arg1 that
precede the first node in arg2.

Similar problems are probably present in set:trailing()

Test case added (for the first problem) in exslt31

Present in 6.5.2, in 7.2, and in earlier releases.


Michael Kay ( mhkay ) - 2002-10-21 10:37

5

Closed

Fixed

Michael Kay

EXSLT extensions

v6.5.2

Public


Comments ( 2 )

Date: 2003-08-07 15:21
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

Same fix applied to source code for 6.5.3


Date: 2002-11-18 14:14
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

Fixed in 7.3


Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2003-08-14 14:21 mhkay
resolution_id None 2003-08-14 14:21 mhkay
close_date - 2003-08-14 14:21 mhkay