Author: rgardler
Date: Fri Aug  4 03:53:08 2006
New Revision: 428690

URL: http://svn.apache.org/viewvc?rev=428690&view=rev
Log:
add caching to the site.xml generation

Modified:
    
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources.xmap
    
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl

Modified: 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources.xmap
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources.xmap?rev=428690&r1=428689&r2=428690&view=diff
==============================================================================
--- 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources.xmap
 (original)
+++ 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources.xmap
 Fri Aug  4 03:53:08 2006
@@ -16,6 +16,14 @@
   limitations under the License.
 -->
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
+  <map:components>
+    <map:pipes>
+      <map:pipe name="navigation"
+        
src="org.apache.cocoon.components.pipeline.impl.ExpiresCachingProcessingPipeline">
+        <parameter name="cache-expires" value="600"/> <!-- Expires in seconds 
-->
+      </map:pipe>
+    </map:pipes>
+  </map:components>
 
        <map:pipelines>
                <!-- 
============================================================== -->
@@ -47,7 +55,7 @@
    <!-- Navigation elements                                          -->
    <!-- ============================================================ -->
   
-    <map:pipeline>      
+    <map:pipeline ype="navigation">      
       <map:match pattern="daisy.site.*">
         <map:generate 
src="{project:daisy.publisher.URL}blob?documentId={1}&amp;version=live&amp;partType=1"
 />
         <map:transform 
src="{forrest:plugins}/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-siteSnippet.xsl">

Modified: 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl
URL: 
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl?rev=428690&r1=428689&r2=428690&view=diff
==============================================================================
--- 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl
 (original)
+++ 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl
 Fri Aug  4 03:53:08 2006
@@ -39,6 +39,10 @@
             name="lm" 
             
src="org.apache.forrest.locationmap.WildcardLocationMapHintMatcher"/>
         </matchers>
+        <selectors default="exists">
+              <selector name="exists" logger="sitemap.selector.exists"  
+                        
src="org.apache.forrest.sourceexists.SourceExistsSelector" />
+        </selectors>
       </components>
       
       <locator>
@@ -55,8 +59,8 @@
         
        <match pattern="**/*.daisy.source">
            <location>
-             <xsl:attribute name="src"><xsl:value-of 
select="$publisherURL"/>document?documentId={2}&amp;includeNavigation=false&amp;locale=en_US&amp;version=live</xsl:attribute>
-           </location>
+               <xsl:attribute name="src"><xsl:value-of 
select="$publisherURL"/>document?documentId={2}&amp;includeNavigation=false&amp;locale=en_US&amp;version=live</xsl:attribute>
+           </location> 
        </match>
      
        <match pattern="**/*.daisy.img">