You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Amal Sirvisetti <am...@sirvisetti.com> on 2001/08/06 22:11:08 UTC

Capturing generated XML in Action

Hi,

Is it possible to capture the XML generated by an XSP page in an Action?
For example,

a.xsp (generates XML) -> SaveXMLAction (saves that XML in a file)

Thanks,
Amal



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Capturing generated XML in Action

Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 06.Aug.2001 -- 04:11 PM, Amal Sirvisetti wrote:
> Hi,
> 
> Is it possible to capture the XML generated by an XSP page in an Action?
> For example,
> 
> a.xsp (generates XML) -> SaveXMLAction (saves that XML in a file)

No, actions have a different role to fill. However, this is possible
with a transformer. See logtransformer & ReadDOMTransformer.

	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Capturing generated XML in Action

Posted by Sylvain Wallez <sy...@anyware-tech.com>.

Amal Sirvisetti wrote:
> 
> Hi,
> 
> Is it possible to capture the XML generated by an XSP page in an Action?
> For example,
> 
> a.xsp (generates XML) -> SaveXMLAction (saves that XML in a file)
> 
> Thanks,
> Amal
> 
I've written such an action, wich captures the output of an XSP or parts
of it an stores it in request attributes as XMLFragment instances.

However, there is some discussion going on on cocoon-dev on the way it
is written. So stay tuned, it will certainly be available soon in the
Coocoon 2.1 branch.
-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>