cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: Dynamic XML Content to Generator
Date Mon, 16 Sep 2002 19:23:37 GMT

Vadim Gritsenko wrote:
> 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 
> SessionAttributeGenerator.java. 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.

hack hack hack hack ;-P

Vadim is a very pragmatic bot, I'm a purist ;-)

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


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

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


Mime
View raw message