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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]