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

XPath does not catch CDATA Nodes

           Summary: XPath does not catch CDATA Nodes
           Product: XalanJ2
           Version: 2.2.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: org.apache.xpath
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Given a document like 

<svg  width='106.786pt' xml:space='preserve' onload='thisInit()'>
<style type='text/css' xml:space=''>
<![CDATA[
    @font-face{font-family:'RussellSquare-Oblique';src:url(Arial.cef)}
]]>
</style>
</svg>

the XPath (//. | //@* | //namespace::*)

in the following code

CachedXPathAPI xp = new CachedXPathAPI();
NodeList nl = xp.selectNodeList(doc, "(//. | //@* | //namespace::*)");

does not catch the CDATA section and the following return. Tested using Xalan 
2.2.0 and Xerces 1.4.4/2.0.0

Example source follows

Reply via email to