cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Björn Voigt <>
Subject Using sitemap parameters in a cinclude transformation
Date Mon, 22 Mar 2004 09:20:47 GMT
Moin Cocooners,

I want aggregate some internal pipelines. The generated file
should have a more complex structure instead of only one root element,
which the simple sitemap aggregation is providing.

I want use the cinclude mechanism, but it seems to be not able to
handle parameters from the sitemap. Is this not possible with cinclude?

I will replace this:

       <map:match pattern="*.html">
         <map:aggregate element="site">
           <map:part src="cocoon:/menu-{0}"/>
           <map:part src="cocoon:/body-{0}"/>
        <map:transform type="encodeURL"/>

with something like this:

<map:match pattern="pattern="*.html"">
   <map:generate src="aggregation.xml"/>
   <map:transform type="cinclude">
     <map:parameter name="value" value="{1}"/>

<site xmlns:cinclude="">
     <cinclude:include src="cocoon:/menu-{value}"/>
     <cinclude:include src="cocoon:/menu-{value}"/>

Thank you for helpfull ideas,

Björn Voigt

View raw message