[prev in list] [next in list] [prev in thread] [next in thread]
List: xml-cocoon-dev
Subject: Using sitemap parameters in a cinclude transformation
From: Björn_Voigt <bvoigt () hs-harz ! de>
Date: 2004-03-22 9:20:47
Message-ID: c3mb13$coc$1 () sea ! gmane ! org
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic