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/02/08 15:18:08 UTC
DO NOT REPLY [Bug 6329] New: -
XPath does not catch CDATA Nodes
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: xalan-dev@xml.apache.org
ReportedBy: geuer-pollmann@nue.et-inf.uni-siegen.de
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