#561 saxon:evaluate in a global variable

v8.7.3
closed
5
2012-10-08
2006-07-10
Michael Kay
No

A NullPointerException can occur if saxon:evaluate() is
called within an XSLT global variable definition.

The NPE may also occur for other constructs that need
to locate the containing Executable, for example
xsl:copy-of.

Source fix: in net.sf.saxon.expr.ComputedExpression,
before line 215 which reads:

        } else if (container instanceof

ComputedExpression) {

insert:

        } else if (container instanceof

GlobalVariable) {
return
((GlobalVariable)container).getExecutable();

Michael Kay
Saxonica

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks