You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/02/15 05:15:25 UTC
DO NOT REPLY [Bug 6479] New: -
Error in XPathAPI.selectNodeIterator(doc, xpath), creating incorrect number of nodes when query has 3 or more descendant-or-self steps
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6479>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6479
Error in XPathAPI.selectNodeIterator(doc, xpath), creating incorrect number of nodes when query has 3 or more descendant-or-self steps
Summary: Error in XPathAPI.selectNodeIterator(doc, xpath),
creating incorrect number of nodes when query has 3 or
more descendant-or-self steps
Product: XalanJ2
Version: 2.3
Platform: PC
OS/Version: All
Status: NEW
Severity: Critical
Priority: Other
Component: org.apache.xpath
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: hhe@eecs.wsu.edu
In ApplyXPath sample provided by Xalan-Java, when you execute the following
statement:
NodeIterator nl = XPathAPI.selectNodeIterator(doc, xpath);
If the query string xpath including 3 or more descendant-or-self steps, the
result will not have correct number of nodes, e.g. nl has fewer nodes in my
example. Meanwhile, the result output will become very slow although the source
XML file is not huge enough. Please use the files in the following URLs to take
a try:
(1) XML file:
http://www.eecs.wsu.edu/~hhe/mae.xml
(2) XPath query file (a batch of XPath queries)
http://www.eecs.wsu.edu/~hhe/test3.xpt