logo       
Google Custom Search
    AddThis Social Bookmark Button

svn commit: r191548 - /lenya/trunk/src/webapp/global-sitemap.xmap: msg#00231

Subject: svn commit: r191548 - /lenya/trunk/src/webapp/global-sitemap.xmap
Author: chestnut
Date: Mon Jun 20 12:52:32 2005
New Revision: 191548

URL: http://svn.apache.org/viewcvs?rev=191548&view=rev
Log:
fixed PROPFIND match on publications root for webDAV, and added fallback: proto 
to access resources sitemap for templating 

Modified:
    lenya/trunk/src/webapp/global-sitemap.xmap

Modified: lenya/trunk/src/webapp/global-sitemap.xmap
URL: 
http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/global-sitemap.xmap?rev=191548&r1=191547&r2=191548&view=diff
==============================================================================
--- lenya/trunk/src/webapp/global-sitemap.xmap (original)
+++ lenya/trunk/src/webapp/global-sitemap.xmap Mon Jun 20 12:52:32 2005
@@ -316,7 +316,10 @@
       <map:match pattern="*">
         <map:select type="request-method">
           <map:when test="PROPFIND">
-            <map:generate type="file" 
src="fallback://lenya/usecases/webdav/init.xml"/>
+            <map:generate type="file" 
src="fallback://lenya/usecases/webdav/dummy.xml"/>
+            <map:transform src="fallback://lenya/usecases/webdav/init.xsl">
+              <map:parameter name="pubid" 
value="{page-envelope:publication-id}"/>
+            </map:transform>
             <map:serialize type="xml" status-code="207"/>
           </map:when>
           <map:when test="OPTIONS">
@@ -325,10 +328,13 @@
         </map:select>
       </map:match> 
 
-      <map:match pattern="*/">
+      <map:match pattern="{page-envelope:publication-id}/">
         <map:select type="request-method">
           <map:when test="PROPFIND">
-            <map:generate type="file" 
src="fallback://lenya/usecases/webdav/init.xml"/>
+           <map:generate type="file" 
src="fallback://lenya/usecases/webdav/dummy.xml"/>
+            <map:transform src="fallback://lenya/usecases/webdav/init.xsl">
+              <map:parameter name="pubid" 
value="{page-envelope:publication-id}"/>            
+            </map:transform>
             <map:serialize type="xml" status-code="207"/>
           </map:when>
           <map:when test="OPTIONS">
@@ -369,12 +375,12 @@
         <map:act type="resource-exists-enhanced">
           <map:parameter name="url" value="fallback://resources/{2}/{3}"/>
           <map:parameter name="type" value="file"/>
-          <map:mount uri-prefix="" src="lenya/resources.xmap" 
check-reload="true" reload-method="synchron"/>
+          <map:mount uri-prefix="" src="{fallback://lenya/resources.xmap}" 
check-reload="true" reload-method="synchron"/>
         </map:act>
         <map:act type="resource-exists-enhanced">
           <map:parameter name="url" value="fallback://resources/shared/{3}"/>
           <map:parameter name="type" value="file"/>
-          <map:mount uri-prefix="" src="lenya/resources-shared.xmap" 
check-reload="true" reload-method="synchron"/>
+          <map:mount uri-prefix="" 
src="{fallback://lenya/resources-shared.xmap}" check-reload="true" 
reload-method="synchron"/>
         </map:act>
       </map:match>



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>