Bugs item #1417686, was opened at 2006-01-28 16:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1417686&group_id=16035

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Kohsuke Kawaguchi (kkawa)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bug in org.dom4j.rule.Mode.getMatchingRule

Initial Comment:
According to XPath data model, there's no distinction
of CDATA nodes and Text nodes --- they should both
match "text()" equally.

However, the current getMatchingRule() method is
written in such a way that CDATA nodes don't match
rules written for Text nodes.

Adding the following code:

} else if(matchType == Node.CDATA_SECTION_NODE) {
    // in XPath data model, there's no distinction
between CDATA and ordinary text
    matchType = Node.TEXT_NODE;
}

at line 176 fixes this problem.

This problem causes Maven1 xdoc plugin to ignore CDATA
sections in xdoc files. So please consider applying
this patch.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1417686&group_id=16035


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
dom4j-dev mailing list
dom4j-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to