Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
2.3
-
None
-
None
-
Operating System: Windows NT/2K
Platform: PC
-
8324
Description
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