cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: [C2][Patch] Substitution for <map:parameter> names
Date Wed, 23 May 2001 20:32:09 GMT


On Wed, 23 May 2001, Vadim Gritsenko wrote:

> 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.

Well, to be honest, I don't like it. It's a ugly hack, don't you think.
Have you thought about maintaining this and the problems that can arise
because you'll never know the names of the parameters you'll get?

How would you define the parameters in your sitemap if you don't know
them?

Giacomo

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


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message