You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Niclas Hedhman <ni...@localbar.com> on 2000/07/04 12:20:56 UTC
[C2] Sitemap error?
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".
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>
??
Niclas
Re: [C2] Sitemap error?
Posted by Stefano Mazzocchi <st...@apache.org>.
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.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------