You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "McNeill, Keith D." <mc...@iconverse.com> on 2001/02/16 00:21:40 UTC

Xalan 2 crash...

Not that you would actually want to use an XPath expression like this
but...this does crash Xalan 2..while Xalan 1 didn't seem to have a
problem with it...the shape of the document doesn't seem to matter...
 
the following snippit of java code:
 
(XMLUtil is a utility class of our own...in this case it just creates a
DOM with just the node <doc/>)
 
String XPathString = "/foo/bar/ancestor-or-self::*/";
 
Document d = XMLUtil.runParser(new InputSource(new
StringReader("<doc/>")));
 
XPathAPI.selectNodeList(d, XPathString);
 
java.lang.NullPointerException
        at
org.apache.xpath.compiler.XPathParser.Step(XPathParser.java:1564)
        at
org.apache.xpath.compiler.XPathParser.RelativeLocationPath(XPathParser.j
ava:1517)
        at
org.apache.xpath.compiler.XPathParser.LocationPath(XPathParser.java:1490
)
        at
org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:1350)
        at
org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.java:1257)
        at
org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1222)
        at
org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1179)
        at
org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1085)
        at
org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.jav
a:1006)
        at
org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:948)
        at
org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:87
3)
        at
org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:813)
        at
org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:777)
        at
org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:750)
        at
org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:733)
        at
org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:150)
        at org.apache.xpath.XPath.<init>(XPath.java:198)
        at org.apache.xpath.XPath.<init>(XPath.java:228)
        at com.iconverse.xml.xalan2.XalanXPath.eval(XalanXPath.java:205)
        at
com.iconverse.xml.xalan2.XalanXPath.selectNodeList(XalanXPath.java:114)
        at com.iconverse.xml.XPathAPI.selectNodeList(XPathAPI.java:208)
        at xpathapicrash.main(xpathapicrash.java:17)

SAX && namespaces (Xalan C++ 1.0)

Posted by David Curley <dc...@oblix.com>.
Can anyone tell me if namespaces will work with SAX in the
upcoming release of Xalan C++ ?    I'd hate to have to switch
to using the DOMParser just for this, and especially if it's
likely to be fixed soon.