You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Iulian Radu <iu...@openforce.com> on 2008/09/05 13:59:32 UTC

Understending pipes

Hi,

Please provide me indications where I can read a documentation that explains me 
how works pipes in cocoon (I need to understood also how works in the case of 
subsitemaps). Some examples of how is processed a request when there are 
multiple pipes defined will be great.

Thank you in advance,
Iulian

Re: Understending pipes

Posted by Andre Thenot <an...@thenot.org>.
On Sep 5, 2008, at 8:26, Iulian Radu wrote:

> Unfortunately, this text does not make me clear how works more  
> pipelines at the same time. For example, I need to know what happens  
> when come a request and there are defined more pipelines. How select  
> cocoon one of them? Or when a request is processed in a pipeline and  
> is mounted a subsitemap and there start the processing of the  
> request into a new pipeline.

This is usually determined by the matcher. For example here there are  
2 pipelines that define 3 different URI patterns:

     <map:pipeline id="abc">

       <map:match pattern="home">
         <map:generate src="public/home.xhtml"/>
         <map:transform type="xinclude"/>
         <map:serialize type="xhtml"/>
       </map:match>

       <map:match pattern="userhome">
         <map:call function="userHome"/>
       </map:match>

     </map:pipeline>


     <map:pipeline id="external-resource">
       <map:match pattern="css/**.css">
         <map:read src="resource/external/css/{1}.css"/>
       </map:match>
     </map:pipeline>


A.


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


Re: Understending pipes

Posted by Iulian Radu <iu...@openforce.com>.
Jasha Joachimsthal wrote:
> Hi Iulian, 
> 
> What about: http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html
> It's Cocoon 2.1 but most of it is still valid.

Thank you for your answer. I already saw this document as I am working with 
cocoon 2.1.9.

Unfortunately, this text does not make me clear how works more pipelines at the 
same time. For example, I need to know what happens when come a request and 
there are defined more pipelines. How select cocoon one of them? Or when a 
request is processed in a pipeline and is mounted a subsitemap and there start 
the processing of the request into a new pipeline.

Iulian

RE: Understending pipes

Posted by Jasha Joachimsthal <j....@onehippo.com>.
Hi Iulian, 

> -----Original Message-----
> From: Iulian Radu [mailto:iulian.radu@openforce.com] 
> Sent: vrijdag 5 september 2008 14:00
> To: users@cocoon.apache.org
> Subject: Understending pipes
> 
> Hi,
> 
> Please provide me indications where I can read a 
> documentation that explains me how works pipes in cocoon (I 
> need to understood also how works in the case of 
> subsitemaps). Some examples of how is processed a request 
> when there are multiple pipes defined will be great.

What about: http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html
It's Cocoon 2.1 but most of it is still valid.


Jasha Joachimsthal 
 
j.joachimsthal@onehippo.com - jasha@apache.org
 
www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-3329 +1 (707) 773-4646


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