cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: "redirect-to resource" and substitution of the List of Maps
Date Tue, 15 May 2001 20:16:43 GMT


On Tue, 15 May 2001, Jiri Luzny wrote:

> I'm tried to the following redirection using a sitemap parameter from an action and it
doesn't
> work:
>
> ------
> <map:match pattern="foo">
>   <map:act type="some-validator">
>     <map:redirect-to resource="foo-{next}"/>
>   </map:act>
> </map:match>

<map:redirect-to resource="..."> are not substitutable because the
<map:resource name="...">
are generated at sitemap compilation time into methods.

>
> <map:resource name="foo-second">
> ..
> ..
> </map:resource>
> -------
>
> For "uri" redirection:
> -----
> <map:redirect-to uri="foo-{next}"/>
> -----
> it works without any problem.

Yes an uri doesn't have to be composed into a method of the sitemap
engine.
>
> I took look at sitemap.xsl and it seems that the substitution of the List of Maps is
not
> implemented for "resource" type of the redirection. Why? I think it is useful as well...

If you have a proposal how to do it, well, send a patch :)

Giacomo


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


Mime
View raw message