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 2003/03/26 09:46:15 UTC

DO NOT REPLY [Bug 18357] New: - * should match elements with namespaces.

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

* should match elements with namespaces.

           Summary: * should match elements with namespaces.
           Product: XalanJ2
           Version: 2.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xpath
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: satoshih@jp.ibm.com


This is a bug report about XPath resolution.
Consider the following XML document:
<root>
  <A/>
  <A xmlns=""/>
  <A xmlns="http://A"/>
</root>

When I resolved the XPath expression /root/*, 
Xalan returned only the first element, i.e, 
the element <A/> with no namespace declaration.

I think the * should be matched to all the three
elements regardless of the namespaces.