Here's what I'm trying to do. I have a database which contains content for the creation of a document. Part of that content may be HTML. I'm generating an XML document that represents the content of the DB using WebObjects. This all works fine.
My intent is to provide a set of XSLT style sheets which will transform the xml to provide different "views" of the our Document. Part of that content is HTML and I have that content wrapped in a CData.
here's an example:
<content><![CDATA[<P>First DocumentPart of XML ]]></content>
I have an XSLT template that looks like this:
<xsl:template match="content"> <xsl:value-of disable-output-escaping="yes" select="."/> </xsl:template>
When I process this style sheet and xml with a test app that lets me pick the XSLT processor, each of the following does just fine: Sablotron, Libxslt, Saxon, Xalan-J. Each one does the "right" thing. and gives me:
<P>First DocumentPart of XML
However, when I try to use dom4 and code I've written, I get the following output:
<?javax.xml.transform.disable-output-escaping ?><P>First DocumentPart of XML
<?javax.xml.transform.enable-output-escaping ?>
I've seen a few other questions about this kind of problem and have read enough to know that disable-output-escaping is kind of a "bad idea"... However, for my purposes it's really needed. Is this a "feature" of Dom4j, that output escaping doesn't work or might I have something not configured properly in my code?
Any assistance that might be given would be helpful. If disable-output-escaping is not functional in dom4j, then my only other alternative is to switch to a different XSLT engine, and I'd rather not do that.
Tony Giaccone Apple Learning Platform http://ali.apple.com/
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user