<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>XSLT output problems</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">I am using JDOM and Xalan to manipulate a source XML document format to a different XML output format. I use XSL stylesheets to define the output format. The data and element names transform correctly, but xsl:output directions set in the stylesheet are completely ignored. Somewhere in the creation of JDOMResult or in its getDocument() method, that information is lost.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">I have a work around in place (where I retrieve the xsl:output information from the stylesheet, and then manipulate the resulting document, adding CDATA and setting DocType before the Document is written to file) but I wanted to see if anyone could suggest a cleaner solution.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thanks!</FONT>
</P>
</BODY>
</HTML>