forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dr. Bhatia Praveen" <>
Subject Re: How to do common pipelines?
Date Wed, 08 Apr 2009 06:33:46 GMT
Thanks. It does work.
For others, like me :) ,  here is simple example that I could make work:

 <map:match pattern="**P1.xml">
 <map:generate src="cocoon:/P.xml"/>
  <map:serialize type="xml"/>

This example would call the P pipeline from P1 pipeline.


----- Original Message ----- 
From: "Ross Gardler" <>
To: <>; "Dr. Bhatia Praveen" 
Sent: Tuesday, April 07, 2009 8:00 PM
Subject: Re: How to do common pipelines?

2009/4/7 Dr. Bhatia Praveen <>:
> Hello,
> Would like to use a pipeline, p, which is commonly used by other
> pipelines, p1, p2, p3.
> How could one achieve in p1, a call to common pipeline p, and then 
> continue
> the processing into pipeline.
> (It sounds more like a functional call. In function parlance, it is
> equivalent to a function calling another function within itself and
> continuing forward after the function returns).

Use the "cocoon:" protocol. See the forrest sitemaps for loads of
exampls, e.g.


Ross Gardler

OSS Watch - supporting open source in education and research


No virus found in this incoming message.
Checked by AVG -
Version: 8.0.238 / Virus Database: 270.11.42/2042 - Release Date: 04/05/09 

View raw message