You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Max Larsson <ma...@gmservice.de> on 2001/11/07 12:58:43 UTC

Sitemap pipeline default match

Hi,

i am wondering if it is possible to have
match elemnt in the sitemap that is 
executed if no other match element fits?
E.g. somthing like a default match.

best regards

Max

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Sitemap pipeline default match

Posted by Max Larsson <ma...@gmservice.de>.
Hi,

sorry nor realy. I search this functionally
in the sitemap of cocoon: For example i have
the follwoing pipline:

<map:pipeline>
	<map:match pattern="hello/*.html">
		<map:generate ..
		...	</map:match>
	<map:match pattern="bye">
		<map:generate ..
		...	</map:match>
	<map:match pattern="notfound">
		<map:generate ..
		...
	</map:match>
	<map:match pattern=>??everything else??<>
		<!-- redirect to notfound -->
	</map:match>
</map:pipeline>

The idea is that if a user tries to access
a url from my website, like hello/getsome.pdf
he is served by a resource not found page
generate by my webiste.
Up till now my sitemap doesnot find any matcher and returns
a blank page. OK i could write a match for the pdf,
but the problem than still exists for hello/someowrd.doc.

Max

> -----Original Message-----
> From: Adrian Geissel [mailto:ageissel@zenark.com]
> Sent: Mittwoch, 7. November 2001 14:59
> To: cocoon-users@xml.apache.org
> Subject: Re: Sitemap pipeline default match
> 
> 
> Hi,
> 
> use 
> 
> <xsl:template match="..." priority="-1"/>
> 
> Hope this helps,
> Adrian 
> 
> ----- Original Message ----- 
> From: Max Larsson <ma...@gmservice.de>
> To: 'Cocoon Users' <co...@xml.apache.org>
> Sent: Wednesday, November 07, 2001 11:58 AM
> Subject: Sitemap pipeline default match
> 
> 
> > Hi,
> > 
> > i am wondering if it is possible to have
> > match elemnt in the sitemap that is 
> > executed if no other match element fits?
> > E.g. somthing like a default match.
> > 
> > best regards
> > 
> > Max
> > 
> > 
> ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > 
> > To unsubscribe, e-mail: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
> > 
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Sitemap pipeline default match

Posted by Adrian Geissel <ag...@zenark.com>.
Hi,

use 

<xsl:template match="..." priority="-1"/>

Hope this helps,
Adrian 

----- Original Message ----- 
From: Max Larsson <ma...@gmservice.de>
To: 'Cocoon Users' <co...@xml.apache.org>
Sent: Wednesday, November 07, 2001 11:58 AM
Subject: Sitemap pipeline default match


> Hi,
> 
> i am wondering if it is possible to have
> match elemnt in the sitemap that is 
> executed if no other match element fits?
> E.g. somthing like a default match.
> 
> best regards
> 
> Max
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
> 
> 



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>