Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#943 createPattern() fails on positional pattern

v9.1
closed
Michael Kay
s9api API (27)
5
2012-10-08
2009-04-20
Michael Kay
No

In class net.sf.saxon.sxpath.XPathEvaluator(), the method createPattern() fails if the pattern is positional, for example a pattern such as *[position()=last()]. The compilation of the pattern fails with the message "context item is undefined". This method is called by the s9api XPathCompiler.compilePattern()

This code is not used directly by Saxon so it will only affect applications (e.g Calabash) that call createPattern() or compilePattern() directly.

A patch for the 9.1 branch is being placed in Subversion.

Discussion

  • Michael Kay
    Michael Kay
    2009-06-17

    Fixed in 9.1.0.7