I have a stylesheet that works BEAUTIFULLY in IE6, XSL_Debugger and XML Spy for transforming my data. Unfortunately when I use DOM4J to do the same transformation I get some weird results in a couple of important spots!
I'm using an HTMLWriter with pretty printing. The XSL file contains a line such as the following at the top:
<xsl:output method="html" version="4.0" omit-xml-declaration="yes" indent="yes" media-type="text/html"/>
-- Code such as the following:
<xsl:template match="n1:LINK">
<a>
<xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>
<xsl:attribute name="onClick">javascript:MakeWin('generic_frame')</xsl:attribute>
<xsl:value-of select="."/>
</a>.<br/>
</xsl:template>
-- Produces output such as:
<a href=""http://www.somewhere.com" Information</a>.<br>
-- I need for the apostrophes to come through intact withought becoming "'"!!
-- An even larger problem appears elsewhere in the transformation. DOM4J does something REALLY odd with any tag that contains the "disable-output-escaping" attribute in it. Code such as:
<xsl:text disable-output-escaping="yes"></tr> <tr></xsl:text>
-- Comes out as:
<?javax.xml.transform.disable-output-escaping ?></tr> <tr><?javax.xml.transform.enable-output-escaping ?>
-- In the other programs it just came out as: "</tr><tr>", which is exactly what I wanted by putting the disable-output-escaping in there!
Does anyone have any idea why DOM4J is doing the above two things? If so, do you have any idea how I can get them to do what I want?
Chris Golden
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user