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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Thanks for your help, that's exactly what I need :)

--
Iris Soto

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to