I have an org.w3c.dom.Document which needs to be streamed as XML. I originally got the idea of using XSLTResult to achieve this from a blog:
http://cse-mjmcl.cse.bris.ac.uk/blog/2007/09/10/1189430125294.html which claims that it could done with no stylesheet. In a way, this doesn't surprise me . . . it seems hard to believe that there is no out-of-the-box result for doing this. It is essential for Ajax. There should be something that will take in a Document and stream it. Anyway, that's how the thread started. Eventually, Chris sent me something he wrote. I thought that it was understood that I didn't need a stylesheet. Eric. -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Wednesday, July 02, 2008 2:11 PM To: user@struts.apache.org Subject: Re: XSLTResult problem You don't have a stylesheet? What are you expecting the XSLTResult to do, if you don't have any XSLT to process? L. Eric Hamacher wrote: > I took your last attachment, altered it (we don't use JDOM only the > org.w3c.dom stuff . . . but it looks like it should work for > org.w3c.dom.Document). Now when I use it within an <action> as a result > .. . . > > <result type="xsl">?????</result> > > Does ????? need to be the location of a stylesheet? I don't have one, > so can I just say: > > <result type="xsl"/> > > Thanks. > > -----Original Message----- > From: Chris Pratt [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 02, 2008 11:02 AM > To: Struts Users Mailing List > Subject: Re: XSLTResult problem > > The mail list software must have scraped it off. I'll send it to you > offline. > (*Chris*) > > On Wed, Jul 2, 2008 at 5:28 AM, Eric Hamacher > <[EMAIL PROTECTED]> wrote: >> Thanks Dave and Chris. Chris, there was no attachment on your email. >> Could you send it again? Thanks again. >> >> -----Original Message----- >> From: Chris Pratt [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, July 01, 2008 11:40 PM >> To: Struts Users Mailing List; [EMAIL PROTECTED] >> Subject: Re: XSLTResult problem >> >> You could try something like the attached Result instead. >> (*Chris*) >> >> >> On Tue, Jul 1, 2008 at 9:03 PM, Dave Newton <[EMAIL PROTECTED]> >> wrote: >>> --- On Wed, 7/2/08, Dave Newton <[EMAIL PROTECTED]> wrote: >>>> That's how the XSLT result works--see the XSLT result [...] >>> I did, of course, mean "that's *not* how the XSLT result works..." >>> >>> Dave >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]