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

Namespace Nodes are re-declared from parent elements

           Summary: Namespace Nodes are re-declared from parent elements
           Product: XalanC
           Version: 1.4.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XPathC
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Namespace nodes inherited from ancestor elements are being re-declared even 
when a namespace further down the tree has over-ridden the local name.

e.g.

z.xml :

----

<?xml version="1.0" encoding="UTF-8"?>
<foo:Root xmlns:bar="http://example.org/bar"; xmlns:foo="http://example.org/foo";>
  <bar:Something xmlns:bar="http://example.org/bar";
xmlns:foo="http://example.org/foo";>
  </bar:Something>
</foo:Root>

----

Using XPathWrapper from Oct 21 interim release:

berin@zeus:bin$ ./XPathWrapper /tmp/z.xml
/foo:Root/bar:Something/namespace::bar[1]  "parent::node()/namespace::* |
self::node()"
the result set has 5 strings
item 1= "http://www.w3.org/XML/1998/namespace";
item 2= "http://example.org/bar";
item 3= "http://example.org/foo";
item 4= "http://example.org/bar";
item 5= "http://example.org/foo";

The [1] index should not be required for namespace::bar, as there should only 
be one definition of bar.

Reply via email to