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 2006/07/27 19:07:23 UTC

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

Author: chestnut
Date: Thu Jul 27 10:07:23 2006
New Revision: 426145

URL: http://svn.apache.org/viewvc?rev=426145&view=rev
Log:
fix pdf byte-range requests for pdf resources

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

Modified: lenya/trunk/src/pubs/default/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/pubs/default/sitemap.xmap?rev=426145&r1=426144&r2=426145&view=diff
==============================================================================
--- lenya/trunk/src/pubs/default/sitemap.xmap (original)
+++ lenya/trunk/src/pubs/default/sitemap.xmap Thu Jul 27 10:07:23 2006
@@ -277,6 +277,12 @@
       
     <map:pipeline>
       <map:match pattern="*/**.*">
+        <!-- TODO: http://marc.theaimsgroup.com/?l=xml-cocoon-dev&amp;m=112496255207733&amp;w=2 -->
+        <map:match type="regexp" pattern="(.*\.)(pdf|PDF|Pdf)$"> 
+            <map:read src="lenyadoc:/{page-envelope:document-language}/{page-envelope:document-id}" mime-type="application/pdf">
+              <map:parameter name="byte-ranges" value="false"/>
+            </map:read>
+        </map:match>      
         <map:act type="language-exists">
           <map:read src="lenyadoc:/{page-envelope:document-language}/{page-envelope:document-id}"/>
         </map:act>



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