haul 2002/07/05 07:38:37
Modified: src/webapp sitemap.xmap
Log:
Put "mount" back into main sitemap. OK, this one looks big but it's the only
solution I found for all cases.
mount
mount/
mount/sample
mount/sample/page
mount/sample/sub/page
...
Revision Changes Path
1.69 +27 -0 xml-cocoon2/src/webapp/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/webapp/sitemap.xmap,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- sitemap.xmap 3 Jul 2002 21:23:35 -0000 1.68
+++ sitemap.xmap 5 Jul 2002 14:38:37 -0000 1.69
@@ -427,6 +427,33 @@
</map:match>
</map:pipeline>
+
+ <!-- pipeline mounting mount/* -->
+ <map:pipeline>
+ <!-- first match only mount (without trailing slash) and forward to -->
+ <!-- "mount/" because relative URLs would otherwise be handled incorrectly -->
+ <!-- by the client. -->
+ <map:match pattern="mount">
+ <map:redirect-to uri="mount/"/>
+ </map:match>
+ <!-- second, generate a directory listing for mount -->
+ <map:match pattern="mount/">
+ <map:generate type="directory" src="mount"/>
+ <map:transform src="samples/common/style/xsl/html/directory2html.xsl"/>
+ <map:serialize/>
+ </map:match>
+ <!-- third, if a locating deeper than 1 is called, mount the first level -->
+ <!-- and delegate to sitemap contained in that directory. -->
+ <map:match pattern="mount/*/**">
+ <map:mount check-reload="yes" src="mount/{1}/" uri-prefix="mount/{1}"/>
+ </map:match>
+ <!-- fourth, locations contained in "mount" can be mounted directly -->
+ <map:match pattern="mount/*">
+ <map:mount check-reload="yes" src="mount/{1}/" uri-prefix="mount/{1}"/>
+ </map:match>
+ </map:pipeline>
+
+
<!-- pipeline mounting samples sitemaps -->
<map:pipeline>
<!-- mount everything else -->
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]