cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <>
Subject Re: Dynamic XML Content to Generator
Date Mon, 16 Sep 2002 15:26:03 GMT
Nicola Ken Barozzi wrote:

> Bryan Zarnett wrote:
>> I am currently at architecting a cocoon solution in which the XML 
>> content is dynamically generated from an action and passed back into 
>> the sitemap to that it can be applied against a transformer.  I've 
>> been looking through the archives and the documentation and I can't 
>> find anything that says"
>> <map:generate type="dynamic" src="{content}"/>
>> or something to this extent.
>> Is there a standard or best practice way in Cocoon to provide dynamic 
>> XML content to the transform.
> First of all, you shouldn't generate xml in an Action, but if possible 
> in a Generator.

...but if you really want it, you can use Just make sure that your action returns 
DOM tree in session attribute. Return session attribute's name to the 
sitemap and pass it to generator.


> If you reall can't figure out how to do it, you can always implement 
> your Action as a Transformer.

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message