You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/09/18 23:20:18 UTC

DO NOT REPLY [Bug 12789] - CDATA BUG

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

CDATA BUG





------- Additional Comments From keshlam@us.ibm.com  2002-09-18 21:20 -------
        DOMSource domSource =  new DOMSource(doc);
        Document doc = (Document)dom.getNode();

Your code is definitely broken. You're setting up a DOMSource with no DOM yet 
available to feed into it, and in a situation where you apparently want a 
StreamSource to read from the string, and... Start by fixing those and see where 
it gets you. Looks to me like this is basic user coding problems rather than a 
Xalan bug.

And if it *is* a bug, you should probably be reporting it against Xalan (since 
you're invoking a transformer), not Xerces. There might be a Xerces malfunction 
but we'd have to exonerate both your code and Xalan first.

Note that by using a transformer rather than a parser, you're going through 
Xalan's "default identity tranformation" rather than just running the Xerces 
parser. This means you may be going through the XPath data model (where the 
concept of CDATA Sections is discarded), and may be encountering bugs as well 
(since we know that the default tranform has some glitches; see Xalan's bugzilla 
entries).

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org