java.lang.AssertionError: Value of variable is undefined (null). Variable reference $saxon:current24880015
A NullPointerException (wrapped as an AssertionError) occurs when referencing the current() function inside the predicate of a template match pattern.
Test case supplied by Olivier Jeulin on support (at) saxonica.com on 2012-04-10.
Reported against 18.104.22.168; bug still present in current development branch.
#1 Updated by Michael Kay over 9 years ago
This one is proving quite troublesome. It is caused by using current() in both branches of a union pattern. The calls to current() are replaced by variable references, which refer to a variable binding that is established on entry to pattern.match(), but this mechanism is not coping with the way that a union pattern is split into two separate patterns to handle the XSLT requirement that a template rule with a union pattern is equivalent to two separate template rules, each using one branch of the pattern. The bug has almost certainly been in the product "for ever".
Please register to edit this issue