cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Björn Voigt <bvo...@hs-harz.de>
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:aggregate>
        <map:transform type="encodeURL"/>
     [...]
       </map:match>

with something like this:

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

<site xmlns:cinclude="http://apache.org/cocoon/include/1.0">
     <cinclude:include src="cocoon:/menu-{value}"/>
     <cinclude:include src="cocoon:/menu-{value}"/>
</site>

Thank you for helpfull ideas,

Björn Voigt



Mime
View raw message