<br><font size=2 face="sans-serif">Our XSL does not contain "</font><font size=2 color=blue face="Arial"><xsl:output
method="text"/></font><font size=2 face="sans-serif">"
but it does contain the following:</font>
<br>
<br><font size=2 face="sans-serif"> <xsl:output
method="xml" encoding="UTF-8" indent="yes"/>
</font>
<br><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>"Robert Taylor" <rtaylor@mulework.com></b></font>
<br><font size=1 face="sans-serif">Sent by: jdom-interest-admin@jdom.org</font>
<p><font size=1 face="sans-serif">05/18/2004 01:54 PM</font>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To:
<jdom-interest@jdom.org></font>
<br><font size=1 face="sans-serif"> cc:
</font>
<br><font size=1 face="sans-serif"> Subject:
FW: [jdom-interest] Question regarding
XML transformation!</font></table>
<br>
<br>
<br><font size=2 color=blue face="Arial">I sent this directly to the recipient
(by accident) instead of the list.</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Arial">robert</font>
<br><font size=2 face="Tahoma">-----Original Message-----<b><br>
From:</b> Robert Taylor [mailto:rtaylor@mulework.com]<b><br>
Sent:</b> Tuesday, May 18, 2004 1:27 PM<b><br>
To:</b> Salim Hamid<b><br>
Subject:</b> RE: [jdom-interest] Question regarding XML transformation!<br>
</font>
<br><font size=2 color=blue face="Arial">This may or may not help, but
I get the same exception when I have the following line in my XSL:</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Arial"><xsl:output method="text"/></font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Arial">If I remove that line, then the
exception is no longer thrown.</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Arial">hth,</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Arial">robert</font>
<br><font size=2 face="Tahoma">-----Original Message-----<b><br>
From:</b> jdom-interest-admin@jdom.org [mailto:jdom-interest-admin@jdom.org]<b>On
Behalf Of </b>Salim Hamid<b><br>
Sent:</b> Tuesday, May 18, 2004 1:17 PM<b><br>
To:</b> jdom-interest@jdom.org<b><br>
Subject:</b> [jdom-interest] Question regarding XML transformation!<br>
</font>
<br><font size=2 face="sans-serif"><br>
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><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
XSLTransformer transformer = new XSLTransformer(xslFileName);</font><font size=3>
</font><font size=2 face="sans-serif"><br>
Document targetDoc = transformer.transform(sourceDoc);</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
System.out.println(targetDoc); <b>// This line
throws the exception indicating that the transformation did not occur correctly</b></font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
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><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
A reply to this note would be greatly appreciated.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Regards,<br>
<br>
Salim Hamid<br>
IBM Software Group -- Digital Media Development<br>
301-803-1247 T/L 262-1247</font>
<br>