You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Anli Shundi <an...@nue.et-inf.uni-siegen.de> on 2000/07/25 19:59:06 UTC

bug introduced in Xalan 1.1 from 1.0.1 ?

Hi,

I tested from the command line

java ApplyXPath foo.xml "(//. | //@* |
//namespace::*)[not(self::comment())]"

It runs through xalan 1.0.1 but version 1.1 throws the following exception:

<output>
XSL Error: pattern = '(//.|//@*|//namespace::*)[not(self::comment())]'
unknown axis: 29, source tree node: root
selectNodeList threw: org.apache.xalan.xpath.XPathException: pattern =
'(//.|//@*|//namespace::*)[not(self::comment())]'
unknown axis: 29 perhaps your xpath didn't select any nodes
org.apache.xalan.xpath.XPathException: pattern =
'(//.|//@*|//namespace::*)[not(self::comment())]'
unknown axis: 29
 at org.apache.xalan.xpath.XPath.execute(XPath.java:313)
 at org.apache.xalan.xpath.XPath.execute(XPath.java:274)
 at XPathAPI.eval(XPathAPI.java:220)
 at XPathAPI.selectNodeList(XPathAPI.java:146)
 at XPathAPI.selectNodeList(XPathAPI.java:130)
 at ApplyXPath.doMain(ApplyXPath.java:126)</output>
 at ApplyXPath.main(ApplyXPath.java:171)

It seems to wrongly parse the predicate ...

SimpleNodeLocator.java : 265

Anli Shundi