cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conal Tuohy" <Conal.Tu...@vuw.ac.nz>
Subject RE: stream in flowscript
Date Thu, 24 Feb 2005 22:42:13 GMT
 

luca morlando wrote:

> I've the following problem with Control Flow:
> I was able to read a stream in the sitemap using <map:match 
> pattern="*/getSomething">
>    <map:generate type="stream">
>         <map:parameter name="defaultContentType" value="text/xml"/>
>    </map:generate>
>  
> ...
> 
> </map:match>
> 
> But now I need to read the same stream into flowscript 
> function and I don't know how to do that!
> 
> I wrote this in sitemap:
> <map:match pattern="*/getSomething">
>       <map:call function="main">
>      <map:parameter name="request" value="I'm able to give 
> you a parameter but not a stream!"/>
>       </map:call>
>     </map:match>
> 
> but ... how to post stream?

If your flowscript needs access to the xml stream, try using
processPipelineTo in your flowscript to invoke the stream-generator.

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


Mime
View raw message