<br><font size=2 face="sans-serif">We've recently acquired Beta 10 release
of JDOM and are interested in the new transformation classes. Do
they support transforming an XML doc using an XSL file that I provide?
I have the following code but I get the exception "<b>java.lang.IllegalStateException:
Root element not set</b> " when I attempt to do anything with the
transformed document:</font>
<br>
<br><font size=2 face="sans-serif"> XSLTransformer
transformer = new XSLTransformer(xslFileName);</font>
<br><font size=2 face="sans-serif"> Document
targetDoc = transformer.transform(sourceDoc);</font>
<br>
<br><font size=2 face="sans-serif"> System.out.println(targetDoc);
<b>// This line throws the exception indicating that the transformation
did not occur correctly</b></font>
<br>
<br><font size=2 face="sans-serif">The XML doc is transformed fine using
the XMLTransformer class provided by IBM WebSphere. Unfortunately,
the WebSphere class only deals with files-- something that we don't want
due to I/O processing. We want to transform XML strings instead of
files. Am I not understanding something about the JDOM transformation
classes or are there future plans to support what we want?</font>
<br>
<br><font size=2 face="sans-serif">A reply to this note would be greatly
appreciated.</font>
<br>
<br><font size=2 face="sans-serif">Regards,<br>
<br>
Salim Hamid<br>
IBM Software Group -- Digital Media Development<br>
301-803-1247 T/L 262-1247<br>
</font>