<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=140185317-18052004>I sent
this directly to the recipient (by accident) instead of the
list.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=140185317-18052004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=140185317-18052004>robert</SPAN></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Robert Taylor
[mailto:rtaylor@mulework.com]<BR><B>Sent:</B> Tuesday, May 18, 2004 1:27
PM<BR><B>To:</B> Salim Hamid<BR><B>Subject:</B> RE: [jdom-interest] Question
regarding XML transformation!<BR><BR></FONT></DIV>
<DIV><SPAN class=125502417-18052004><FONT face=Arial color=#0000ff size=2>This
may or may not help, but I get the same exception when I have the following line
in my XSL:</FONT></SPAN></DIV>
<DIV><SPAN class=125502417-18052004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125502417-18052004><FONT face=Arial color=#0000ff
size=2><xsl:output method="text"/></FONT></SPAN></DIV>
<DIV><SPAN class=125502417-18052004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125502417-18052004><FONT face=Arial color=#0000ff size=2>If I
remove that line, then the exception is no longer thrown.</FONT></SPAN></DIV>
<DIV><SPAN class=125502417-18052004></SPAN><SPAN class=125502417-18052004><FONT
face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125502417-18052004><FONT face=Arial color=#0000ff
size=2>hth,</FONT></SPAN></DIV>
<DIV><SPAN class=125502417-18052004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125502417-18052004><FONT face=Arial color=#0000ff
size=2>robert</FONT></SPAN></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> jdom-interest-admin@jdom.org
[mailto:jdom-interest-admin@jdom.org]<B>On Behalf Of </B>Salim
Hamid<BR><B>Sent:</B> Tuesday, May 18, 2004 1:17 PM<BR><B>To:</B>
jdom-interest@jdom.org<BR><B>Subject:</B> [jdom-interest] Question regarding
XML transformation!<BR><BR></FONT></DIV><BR><FONT face=sans-serif size=2>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
face=sans-serif size=2> XSLTransformer transformer =
new XSLTransformer(xslFileName);</FONT> <BR><FONT face=sans-serif
size=2> Document targetDoc =
transformer.transform(sourceDoc);</FONT> <BR><BR><FONT face=sans-serif
size=2> System.out.println(targetDoc); <B>//
This line throws the exception indicating that the transformation did not
occur correctly</B></FONT> <BR><BR><FONT face=sans-serif size=2>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 face=sans-serif size=2>A reply to this note would
be greatly appreciated.</FONT> <BR><BR><FONT face=sans-serif
size=2>Regards,<BR><BR>Salim Hamid<BR>IBM Software Group -- Digital
Media Development<BR>301-803-1247 T/L
262-1247<BR></BLOCKQUOTE></FONT></BODY></HTML>