cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: simple directory listing
Date Fri, 28 Oct 2005 10:16:03 GMT
Ard Schrijvers wrote:
> Something like 
>
> <map:match pattern="**">
>         <map:select type="resource-exists">
>           <map:when test="{1}/sitemap.xmap">
> 		<map:mount src="{1}" uri-prefix="whatever"/>
>           </map:when>
>           <map:otherwise>
> 	      <map:generate type="directory" src="{1}"/>
>             <map:transform src="directory2html.xslt"/>
>             <map:serialize type="xhtml"/>
>           </map:otherwise>
>         </map:select>
> </map:match>
>   

Note that <map:match pattern="**"> is totally useless, as it matches 
everything!

A sitemap does not need to have matchers as top-level instructions.

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://people.apache.org/~sylvain     http://www.anyware-tech.com
Apache Software Foundation Member     Research & Technology Director


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


Mime
View raw message