Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

5 NullPointerExc'n with //d[$var] - ID: 706935
Last Update: Settings changed ( mhkay )

A NullPointerException occurs at compile time when
processing an expression of the form //d[$var] or
c//d[$var].

Saxon attempts to rewrite such the expression c//d[E]
as c/descendant[E], provided the filter expression E
cannot be numeric. However, if the filter expression is
a variable reference $var, then this rewrite cannot be
done until type information has been analyzed. The
rewrite is being done too early, hence the
NullPointerException.

Test case added: posn97

Source code fixed. The rewrite has been moved from the
context-indepentent simplify() phase to the
context-dependent typeCheck() phase.

Affects Saxon 7.4 only.


Michael Kay ( mhkay ) - 2003-03-20 14:59

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 ( 3 )

Field Old Value Date By
status_id Open 2003-06-27 18:58 mhkay
resolution_id None 2003-06-27 18:58 mhkay
close_date - 2003-06-27 18:58 mhkay