cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [C2] Sitemap error?
Date Tue, 04 Jul 2000 12:02:58 GMT
Niclas Hedhman wrote:
> 
> Following section
>    <map:match pattern="nested-matchers/*">
>     <map:match type="browser" pattern="name('Mozilla ?\?*')">
>      <map:mount src="file:///home/www/mozilla-{1}-{2}/{../1}"/>
>     </map:match>
>    </map:match>
> 
> are using a "match" on type "browser", whereas the "browser" is defined
> as a "chooser".

Right, this is a mistake.

> Should the above be
> 
>    <map:match pattern="nested-matchers/*">
>     <map:choose type="browser">
>       <when test="isName('Mozilla ?\?*')" >
>          <map:mount src="file:///home/www/mozilla-{1}-{2}/{../1}"/>
>       </when>
>       <otherwise>
>          <map:mount src="file:///home/www/generic"/>
>       </otherwise>
>     </map:choose>
>    </map:match>
> 
> ??

NO!! That's why we have choosers and matchers. Choosers don't return
tokens, only boolean values.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message