You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Max Larsson <ma...@gmservice.de> on 2001/11/14 11:18:23 UTC
Extending Sitemap funtionality
Hi to all,
i am searching a functionality in C2, which i haven't found.
What i want to have is a "default match element". What i mean
is if C2 gets a request, it matchs the URi agaisnt all defined
matchers, if it find a matching one it is excuted. But if C2
do not find a matching one my application now returns a
blank page, which i don't want to have. I want that C2 executes
a defined match element, whenever it do not find any matching
ones.
Now i wondering if i just missed such a functionality in C2.
If not where do i start? I took a look in the sitemap.xsl, but
how the genrated Java class works is still a little bit unclaer.
Any hints would be nice ??
Max
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
AW: Extending Sitemap funtionality
Posted by Reinhard Pötz <re...@gmx.net>.
Hi Max,
This functionality is already available. You only have to put following
matcher at the end! of your sitemap.
<map:match type="regexp" pattern="[.]*">
It should also work with the wildcard matcher <map:match type="wildcard"
pattern="**">
Reinhard
> -----Ursprüngliche Nachricht-----
> Von: Max Larsson [mailto:max.larsson@gmservice.de]
> Gesendet: Mittwoch, 14. November 2001 11:18
> An: 'Cocoon Dev'
> Betreff: Extending Sitemap funtionality
>
>
> Hi to all,
>
> i am searching a functionality in C2, which i haven't found.
> What i want to have is a "default match element". What i mean
> is if C2 gets a request, it matchs the URi agaisnt all defined
> matchers, if it find a matching one it is excuted. But if C2
> do not find a matching one my application now returns a
> blank page, which i don't want to have. I want that C2 executes
> a defined match element, whenever it do not find any matching
> ones.
> Now i wondering if i just missed such a functionality in C2.
> If not where do i start? I took a look in the sitemap.xsl, but
> how the genrated Java class works is still a little bit unclaer.
> Any hints would be nice ??
>
>
> Max
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
RE: Extending Sitemap funtionality
Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Hi,
just try a <map:match pattern="**"> at the end of your sitemap.
This match matches always and if you put it at the end
it is only invoked when no other match is found.
Carsten
> -----Original Message-----
> From: Max Larsson [mailto:max.larsson@gmservice.de]
> Sent: Wednesday, November 14, 2001 11:18 AM
> To: 'Cocoon Dev'
> Subject: Extending Sitemap funtionality
>
>
> Hi to all,
>
> i am searching a functionality in C2, which i haven't found.
> What i want to have is a "default match element". What i mean
> is if C2 gets a request, it matchs the URi agaisnt all defined
> matchers, if it find a matching one it is excuted. But if C2
> do not find a matching one my application now returns a
> blank page, which i don't want to have. I want that C2 executes
> a defined match element, whenever it do not find any matching
> ones.
> Now i wondering if i just missed such a functionality in C2.
> If not where do i start? I took a look in the sitemap.xsl, but
> how the genrated Java class works is still a little bit unclaer.
> Any hints would be nice ??
>
>
> Max
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org