cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ębastien Geindre <sebastien.gein...@meteo.fr>
Subject Re: Aplly transformation to a xml post data
Date Fri, 19 Jan 2007 10:18:05 GMT
Thanx,
i've found this page http://cocoon.apache.org/2.1/861.daisy.html which 
describe what you 'v mentioned.


Jason Johnston wrote:
> S├ębastien Geindre wrote:
>> hello all,
>>
>> I handle a upload request send by cocoon forms with flowscript :
>>    var uploadWidget = form.lookupWidget("upload");
>>    var stream = uploadWidget.getValue().getInputStream();
>>  
>> I'd like to transform the upload stream (which is XML) via a pipeline :
>>   cocoon.processPipelineTo(
>>        'uri',
>>        stream,
>>        ??);
>>
>> what kind of generator i must use ?
>>
>>    <map:match pattern="uri">
>>      <map:generator type ="/*????????*/"/>
>>     <map:transform src="tranform.xsl"/>
>>      <map:serialize type="xml"/>
>>    </map:match>
>
>
> You can use the normal resource generator, and a 'module:' source URI 
> to fetch the content from a flow attribute:
>
> cocoon.processPipelineTo(
>         'uri',
>         stream,
>         {stream:stream});
>
> <map:generator src="module:flow-attr:stream" />
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>



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


Mime
View raw message