Th'anks for reporting this. It's a bug caused by the expression evaluation relying on a variable intended to hold the static base URI for the dynamic XPath, when the variable is not initialized on this particular path. I will raise a patch for this. In the meantime, as a workaround, please specify a value for the base-uri attribute of xsl:evaluate (it doesn't really matter what the value is, unless the XPath expression actually relies on the static base URI).

Michael Kay

On 21/02/2011 11:56, Toshihiko Makita wrote:
Dear Michael Kay,

I'm facing NPE when using xsl:try and xsl:evaluate in XSL 3.0 stylesheet.

My environment:
Windows XP
Saxon 9.3 PE
Jre 6.0

I attached all of the corresponding files. If there is my
misunderstanding, please indicate it to me.

input.xml: Input XML file
xpath.xml: Secondary input XML file using doc()
style.xsl: Stylesheet file
run93.bat: Command line
err.txt:   Error log file


------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance.
_______________________________________________ saxon-help mailing list archived at