Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

5 id() in predicates - ID: 481258
Last Update: Comment added ( mhkay )

In some circumstances, use of the id() function within
a predicate or sort key may cause a
NullPointerException or UnsupportedOperationException.

This is another expression reduction bug. Actually two
bugs: the getDependencies() routine for the Id
function does not make allowance for the dependencies
of the supplied argument, and when the expression is
reduced more than once, the identity of the original
bound document is lost. As is often the case with
expression reduction, it's difficult to be precise
about the constructs that reveal the bug, except that
they are usually complex: the example in the bug
report (from Evan Lenz) was:

select="//person[@job =
(../@job | id(../@spouse)/@job)]"

Evan reports that this worked in releases before
6.4.4, but this can only have been by luck, as the
coding errors were present in earlier releases.

Source code now fixed.


Michael Kay ( mhkay ) - 2001-11-13 12:10

5

Closed

Fixed

Michael Kay

XPath conformance

v6.4.4

Public


Comment ( 1 )

Date: 2001-11-15 14:59
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

Fixed in 6.5


Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2001-11-15 14:59 mhkay
resolution_id None 2001-11-15 14:59 mhkay
close_date - 2001-11-15 14:59 mhkay