You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ch...@apache.org on 2005/09/30 18:24:23 UTC

svn commit: r292803 - /lenya/trunk/src/webapp/lenya/pubs/default/sitemap.xmap

Author: chestnut
Date: Fri Sep 30 09:24:21 2005
New Revision: 292803

URL: http://svn.apache.org/viewcvs?rev=292803&view=rev
Log:
new set-header ("Last-Modified") action broke site view, this fixes 36875
thanks to a patch by Josias Thoeny

Modified:
    lenya/trunk/src/webapp/lenya/pubs/default/sitemap.xmap

Modified: lenya/trunk/src/webapp/lenya/pubs/default/sitemap.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/default/sitemap.xmap?rev=292803&r1=292802&r2=292803&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/pubs/default/sitemap.xmap (original)
+++ lenya/trunk/src/webapp/lenya/pubs/default/sitemap.xmap Fri Sep 30 09:24:21 2005
@@ -186,8 +186,8 @@
             <map:select type="resource-exists">
               <!-- Read from cache -->
               <!-- If configured within Apache then mod_lenya will nevertheless read from cache -->
-              <map:when test="{global:cache-dir}/{../1}/{../2}.htmlDISABLED">
-                <map:read src="{global:cache-dir}/{../1}/{../2}.html" mime-type="text/html"/>
+              <map:when test="{global:cache-dir}/{../../1}/{../../2}.htmlDISABLED">
+                <map:read src="{global:cache-dir}/{../../1}/{../../2}.html" mime-type="text/html"/>
               </map:when>
               <!-- Write to cache and serialize -->
               <map:otherwise>
@@ -197,21 +197,21 @@
                 <map:select type="browser">
                   <map:when test="mozilla5DISABLED">
                     <map:match pattern="authoring/**.html">
-                      <map:transform src="cocoon://lenya-page/{page-envelope:publication-id}/{../../1}/{../../2}.xml?doctype={page-envelope:document-type}&amp;uiml=xul"/>
+                      <map:transform src="cocoon://lenya-page/{page-envelope:publication-id}/{../../../1}/{../../../2}.xml?doctype={page-envelope:document-type}&amp;uiml=xul"/>
                     </map:match>
                     <map:serialize type="xml" mime-type="application/vnd.mozilla.xul+xml"/>
                   </map:when>
                   <map:otherwise>
                     <map:match pattern="authoring/**.html">
-                      <map:transform src="cocoon://lenya-page/{page-envelope:publication-id}/{../../1}/{../../2}.xml?doctype={page-envelope:document-type}"/>
+                      <map:transform src="cocoon://lenya-page/{page-envelope:publication-id}/{../../../1}/{../../../2}.xml?doctype={page-envelope:document-type}"/>
                     </map:match>
                     <map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>
                     <!-- Write to cache for requests from live area -->
                     <map:select type="parameter">
-                      <map:parameter name="parameter-selector-test" value="{../1}"/>
+                      <map:parameter name="parameter-selector-test" value="{../../1}"/>
                       <map:when test="live">
                         <map:transform src="fallback://lenya/xslt/authoring/edit/addSourceTags.xsl">
-                          <map:parameter name="source" value="{global:cache-dir}/{../1}/{../2}.html"/>
+                          <map:parameter name="source" value="{global:cache-dir}/{../../1}/{../../2}.html"/>
                         </map:transform>
                         <map:transform type="write-source">
                           <map:parameter name="serializer" value="xhtml"/>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org