cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: defaulting to a matcher when another one is not present
Date Mon, 07 Oct 2002 12:27:36 GMT
On 06.Oct.2002 -- 10:28 AM, Sylvain Wallez wrote:
> Ovidiu Predescu wrote:
> 
> >I have the following problem. I want to write a <map:match 
> >pattern="**.html"> matcher in the top-level sitemap, and have it 
> >invoked for most of the HTML page generation. However I'd like this 
> >rule to be overwritten in sub-sitemaps, e.g. if a sub-sitemap 
> >implements a  rule with a similar pattern, this rule should take 
> >precendence. This would be very similar to the precedence rule in 
> >XSLT, allowing developers to define catch-all rules, while still 
> >permitting the rule to be rewritten.
> >
> >Do we have something like this which can implement this behavior? 
> 
> 
> What if we could "come back" from a <map:mount> to the parent sitemap if 
> no pattern matched in the subsitemap ?

Could you do a 

<map:match pattern="*">
  <map:redirect-to uri="../not-found"/> 
</map:match>

or something as last one and cascade the way up?

	Chris.
-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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


Mime
View raw message