cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@hns.com>
Subject [C2][Patch] Substitution for <map:parameter> names
Date Wed, 23 May 2001 17:37:17 GMT
Hello Everybody,

I want to have an ability to substitute parameter names in the sitemap, like:
   <map:match pattern="get/*/*">
    <map:generate src="data.xml"/>
    <map:transform src="filter.xsl">
     <map:parameter name="{1}" value="{2}"/>
    </map:transform>
    <map:serialize type="xml"/>
   </map:match>

This would higly decrease verbosity of my sitemap...
It looks like that this is not breaking caching system, and if there is no objections
against this feature, I attached patch to sitemap.xsl to implement this.

PS: As a side effect: substitute(...) for parameter names/values is called only when
necessary, i.e. when '{' is present.

Thanks,
Vadim

Mime
View raw message