cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iris Soto <ms...@agssa.net>
Subject Re: How can i take the output of a xml serializer?
Date Wed, 22 Nov 2006 20:03:56 GMT
Mark Lundquist escribió:
>
> Hi Iris,
>
> On Nov 20, 2006, at 8:03 AM, Iris Soto wrote:
>
>> How can i take the output of a xml serializer to a function instead 
>> of to send to the browser,
>> i want to send the output of xml serializer of this pipeline to a 
>> function without show it in the page.
>
> Use cocoon.processPipelineTo() in flowscript... see 
> http://cocoon.apache.org/2.1/userdocs/flow/api.html.  Set it up like 
> this:
>
> 1) Matcher for the user request calls a flowscript function
>
> 2) The flowscript function should create an OutputStream and then 
> invoke your other pipeline (the one you showed in your email, that 
> generates the XML) using processPipelineTo().  Then the serialized XML 
> will be in the OutputStream, and you can do whatever you want with it;
>
> 3) Your flowscript function will need to send some kind of response 
> back to the browser, using cocoon.sendPage() or cocoon.redirectTo().
>
> HTH,
> —ml—
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
Thanks for your help, that's exactly what I need :)

-- 
Iris Soto 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message