struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Hamacher" <eric.hamac...@enetrix.com>
Subject RE: Re: XSLTResult problem
Date Wed, 02 Jul 2008 19:31:01 GMT
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:news@ger.gmane.org] 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:thechrispratt@gmail.com] 
> 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
> <eric.hamacher@enetrix.com> 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:thechrispratt@gmail.com]
>> Sent: Tuesday, July 01, 2008 11:40 PM
>> To: Struts Users Mailing List; newton.dave@yahoo.com
>> 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 <newton.dave@yahoo.com>
>> wrote:
>>> --- On Wed, 7/2/08, Dave Newton <newton.dave@yahoo.com> 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: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message