think about the case you need this resource in every this sitemap's
sub-sitemap

i dont care if this will be resource or just a match

--stavros

On Tue, 9 Dec 2003, Roman Hrivik wrote:

> 
> Why don't you use resource
> 
> 
> <map:resources>
>       <map:resource name="your-common-resource" > 
>               ...anything...ie...
>               <map:generate ...{anyParam}... />
>               <map:transform ... />
>               <map:serialize ... />
>       </map:resource> 
> </map:resources>
> 
> <map:pipelines>
> 
>       <map:match pattern="useCommon**">
>               <map:call resource="your-common-resource">
>                       <map:parameter name="anyParam" value="{1}"/>
>               </map:call> 
>       </map:match>
> 
> </map:pipelines>
> 
> 
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, December 09, 2003 12:29 PM
> To: [EMAIL PROTECTED]
> Subject: Re: calling pipeline from parent sitemap
> 
> 
> On Tue, 9 Dec 2003, Antonio Gallardo wrote:
> 
> > [EMAIL PROTECTED] dijo:
> > > BTW i'm the only one i need this ?
> >  Good question. Can you explain in more detail, why you need this?
> 
> 
> sure, why not
> 
> i design a small application
> my application will have a main-sitemap with pipelines for common
> purposes 
> and will automount all subsitemap
> 
> each sub-sitemap i want to be able to use as src in generators some 
> "common" pipelines from main-sitemap
> 
> until now everithing is OK, i can use cocoon:// 
> 
> my main-sitemap i want to be able to placed anywhere (automounted maybe)
> 
> in a cocoon instalation
> 
> so i was thinking instead to reach a resource in my main-sitemap
> starting 
> from cocoon context 
> 
> (think about cocoon samples, this application  will be either in 
> /samples or /samples/scratchpad or everywhere else)
> 
> to reach this resource going backward
> 
> [main-sitemap]
> <map:pipeline>
>       <map:match patern="common-content"/>
>       ..
>       <map:serialize/>
> </map:pipeline> 
> 
> .. mount */** ..
> 
> 
> [application sub-sitemap ]
> ..
> <map:generate src="cocoon:../common-content"/>
> ..
> 
> this is what i'm thinking about 
> 
> 
> why not ? :-)
> 
> 
> --stavros
> > 
> > Best Regards,
> > 
> > Antonio Gallardo
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to