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/11/02 00:04:12 UTC

DO NOT REPLY [Bug 14185] New: - XPathAPI.selectNodeList() fails for 'contains()' attribute expression

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

XPathAPI.selectNodeList()  fails for 'contains()' attribute expression

           Summary: XPathAPI.selectNodeList()  fails for 'contains()'
                    attribute expression
           Product: XalanJ2
           Version: 2.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: org.apache.xpath
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: james.xavier@commerceone.com


API => XPathAPI.selectNodeList(doc, xpath) does not work for the following 
expression and xml doc.

XML:

<?xml version="1.0"?>
<doc>  
  <name first="James" last="Curcuru"/>
  <name first="James" last="Xavier"/>  
</doc>

XPath Expression: //*[contains(@*,'Xavier')] 

The above expression does NOT return any nodes but if I try
 the expression for James  ie.  //*[contains(@*,'James')] then it return both 
nodes.