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=8324>.
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=8324

preceding axis contains nodes for namespace declaration

           Summary: preceding axis contains nodes for namespace declaration
           Product: XalanJ2
           Version: 2.3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: org.apache.xpath
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


For each namespace declaration and the default xml namespace there is a node in 
the preceding axis but the preceding axis must not contain any namespace or 
attribute nodes.

Example with ApplyXPath:

text.xml:
<?xml version="1.0"?>
<a xmlns="urn:x" xmlns:y="urn:y"><b/><c/></a>

command line:
ApplyXPath test.xml //*[local-name()='c']/preceding::node()

output:
Loading classes, parsing test.xml, and setting up serializer
Querying DOM using //*[local-name()='c']/preceding::node()
<output>
urn:x
urn:y
http://www.w3.org/XML/1998/namespace
<b/>
</output>

expected output:
Loading classes, parsing test.xml, and setting up serializer
Querying DOM using //*[local-name()='c']/preceding::node()
<output>
<b/>
</output>

distribution: 
xalan-j_2_3_1-bin.zip

Reply via email to