You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by "Gregor J. Rothfuss" <gr...@apache.org> on 2004/06/13 01:47:36 UTC
anchor syntax
i just learned that you can do
...
<map:match pattern="images/*.gif" name="root">
<map:act type="resource-exists">
<map:parameter name="url" value="images/{1}.gif">
<!-- new level -->
<map:read src="images/{#root:1}.gif" mime-type="images/gif"/>
</map:act>
</map:match>
...
http://wiki.apache.org/cocoon/SitemapVariableSubstitution
(notice the {#root:1}). given that our sitemaps are quite complex, and a
lot of internal requests happen, wouldnt it make sense to name pipelines
and use this syntax?
i'll file a bug on this if people agree
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
Re: anchor syntax
Posted by Rolf Kulemann <ma...@rolf-kulemann.com>.
On Sun, 2004-06-13 at 01:47, Gregor J. Rothfuss wrote:
> i just learned that you can do
>
> ...
> <map:match pattern="images/*.gif" name="root">
> <map:act type="resource-exists">
> <map:parameter name="url" value="images/{1}.gif">
> <!-- new level -->
> <map:read src="images/{#root:1}.gif" mime-type="images/gif"/>
> </map:act>
> </map:match>
> ...
>
> http://wiki.apache.org/cocoon/SitemapVariableSubstitution
>
> (notice the {#root:1}). given that our sitemaps are quite complex, and a
> lot of internal requests happen, wouldnt it make sense to name pipelines
> and use this syntax?
Cool, yes it does imo.
--
RolfKulemann
"There is inherently no silverbullet" - F.Brooks
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org