cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Reijn <jre...@hippo.nl>
Subject Re: map:aggregate inside action
Date Wed, 12 Nov 2003 10:51:11 GMT
Hi Jorg,
 
correct me if im wrong. I have only been using cocoon for a while now, 
but i believe that you have to get the parameter value by using {../1}. 
Your pipeline will look like:
 
<map:pipeline>
<map:match pattern="render/*.svg">
   <map:act type="filestore">
     <map:aggregate element="aggregation">
        <map:part src="cocoon:/!{../1}.svg!"/>
        <map:part src="cocoon:/!requestgenerator!"/>
     </map:aggregate>
   </map:act>
   <map:serialize type="xml"/>
</map:match>
</map:pipeline>
 
Hope this helps.


Jorg Heymans wrote:

> Hi,
>
> I was a bit surprised to see that below sitemap does not work
> (ie aggregate within an action).
> In the internal pipeline !*.svg! the {1} parameter is empty.
>
> Any thoughts?
>
> <map:pipeline internal-only="true">
>   <map:match pattern="!*.svg!">
>     <map:generate type="file" src="{defaults:GFX-TEMPLATES}{1}.svg"/>
>     <map:serialize type="xml"/>
>   </map:match>
>
>   <map:match pattern="!requestgenerator!">
>     <map:generate type="request"/>
>     <map:serialize/>
>   </map:match>
> </map:pipeline>
>
> <map:pipeline>
> <map:match pattern="render/*.svg">
>   <map:act type="filestore">
>     <map:aggregate element="aggregation">
>     <map:part src="cocoon:/!{1}.svg!"/>
>     <map:part src="cocoon:/!requestgenerator!"/>
>     </map:aggregate>
>   </map:act>
>   <map:serialize type="xml"/>
> </map:match>
> </map:pipeline>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


Mime
View raw message