Hello,

because I needed a CIncludeTransformer which is able to include dynamically
resources, I had modificated the CIncludeTransformer a little bit. Now its
possible to pass sitemap parameters to the transformer. Within the src
attribute the variable will be replaced by the value of the parameter. Does
anyone need this feature, too?

For example:

somefile.xml:

<element ...>
    <...:include src="cocoon:/{filename}"/>
</element>

pipeline:

...
<map:transform type="cinclude">
    <map:parameter name="filename" value="myFile.xml"/>
</map:transform>
...

Result:

<element ...>
    <...:include src="cocoon:/myFile.xml"/>
</element>

Regards
Stephan

Reply via email to