You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2006/08/04 12:53:09 UTC
svn commit: r428690 - in
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy:
resources.xmap resources/stylesheets/navigation-to-locationmap.xsl
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}&version=live&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}&includeNavigation=false&locale=en_US&version=live</xsl:attribute>
- </location>
+ <xsl:attribute name="src"><xsl:value-of select="$publisherURL"/>document?documentId={2}&includeNavigation=false&locale=en_US&version=live</xsl:attribute>
+ </location>
</match>
<match pattern="**/*.daisy.img">