Bugs item #1417686, was opened at 2006-01-29 01:20
Message generated for change (Comment added) made by maartenc
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: Pending
>Resolution: Fixed
Priority: 5
Submitted By: Kohsuke Kawaguchi (kkawa)
>Assigned to: Maarten Coene (maartenc)
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.

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

>Comment By: Maarten Coene (maartenc)
Date: 2006-03-21 22:49

Message:
Logged In: YES 
user_id=178745

Applied slightly modified patch in CVS.
Could you please verify the result?

thanks,
Maarten

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

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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
dom4j-dev mailing list
dom4j-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to