cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Coboos" <cromo...@gmx.net>
Subject CIncludeTransformer now with sitemap params?
Date Thu, 30 Oct 2003 16:12:53 GMT
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


Mime
View raw message