sylvain 2003/11/13 10:10:03
Modified: src/webapp sitemap.xmap Log: New MountTableMatcher Revision Changes Path 1.40 +12 -1 cocoon-2.1/src/webapp/sitemap.xmap Index: sitemap.xmap =================================================================== RCS file: /home/cvs/cocoon-2.1/src/webapp/sitemap.xmap,v retrieving revision 1.39 retrieving revision 1.40 diff -u -r1.39 -r1.40 --- sitemap.xmap 10 Nov 2003 08:15:26 -0000 1.39 +++ sitemap.xmap 13 Nov 2003 18:10:03 -0000 1.40 @@ -204,6 +204,9 @@ <map:matcher logger="sitemap.matcher.referer-match" name="referer-match" src="org.apache.cocoon.matching.WildcardHeaderMatcher"> <header-name>referer</header-name> </map:matcher> + <map:matcher name="mount-table" src="org.apache.cocoon.matching.MountTableMatcher"> + <map:parameter name="ignore-missing-tables" value="true"/> + </map:matcher> </map:matchers> <!--+ @@ -553,6 +556,14 @@ +--> <map:match pattern="api/**"> <map:read src="api/{1}"/> + </map:match> + + <!--+ + | Find a match in the "mount-table.xml" file, if present. It allows to mount other + | directories without touching this main sitemap (and thus loosing changes on rebuild). + +--> + <map:match type="mount-table" pattern="../../mount-table.xml"> + <map:mount src="{src}" uri-prefix="{uri-prefix}"/> </map:match> <!--+