cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: [RT] Improving Sitemap and Flowscript
Date Thu, 21 Aug 2003 11:40:18 GMT
Vadim Gritsenko wrote:
> It could be convinient if it would work. But it does not.
> 
>   <map:generator name="filteredFile">
>     <map:aggregate>
>       <map:part src="a"/>
>       <map:part src="b"/>
>       <map:part src="c"/>
>     </map:aggregate>
>     <map:transform type="xslt" src="a.xsl"/>
>     <map:transform type="xslt" src="b.xsl"/>
>   </map:generator>
> 
It works :) 

You can then:

<map:generate type="filteredFile">
   <map:parameter name="source-a" value="A"/>
   <map:parameter name="source-b" value="B"/>   
   <map:parameter name="source-c" value="C"/>
</map:generate>

with 

>   <map:generator name="filteredFile">
>     <map:aggregate>
>       <map:part src="{source-a}"/>
>       <map:part src="{source-c}"/>
>       <map:part src="{source-b}"/>
>     </map:aggregate>
>     <map:transform type="xslt" src="a.xsl"/>
>     <map:transform type="xslt" src="b.xsl"/>
>   </map:generator>
You could also add two parameters for the stylesheets etc.

But, if you write
<map:generate type="filteredFile" src="something">

then you can access it automatically as {src} rather than
writing
<map:generate type="filteredFile">
  <map:parameter name="src" value="something"/>

Carsten


Mime
View raw message