cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r538605 - /cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/sitemap.xmap
Date Wed, 16 May 2007 14:08:59 GMT
Author: felixk
Date: Wed May 16 07:08:59 2007
New Revision: 538605

URL: http://svn.apache.org/viewvc?view=rev&rev=538605
Log:
add pipeline for servlet services

Modified:
    cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/sitemap.xmap

Modified: cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/sitemap.xmap?view=diff&rev=538605&r1=538604&r2=538605
==============================================================================
--- cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/sitemap.xmap
(original)
+++ cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/sitemap.xmap
Wed May 16 07:08:59 2007
@@ -18,26 +18,52 @@
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
   
   <map:pipelines>
-    <map:pipeline>
-      <map:match pattern="**.css">
-        <map:read src="resources/{1}.css"/>
-      </map:match>
-      <map:match pattern="**.js">
-        <map:read type="servletLinkRewriter" src="resources/{1}.js"/>
-      </map:match>      
-      <map:match pattern="**.gif">
-        <map:read src="resources/{1}.gif"/>
-      </map:match>      
-      <map:match pattern="**.ico">
-        <map:read src="resources/{1}.ico"/>
-      </map:match>      
-    </map:pipeline>    
-    <map:pipeline>
-      <map:match pattern="**">
-        <map:read type="servletLinkRewriter" src="{1}"/>
-      </map:match>
-    </map:pipeline>
+      <map:pipeline id="service-resource">
+          <!-- 
+              All matcher in this pipeline are intended to be called
+              when making use of servlet services from other blocks 
+          -->
+          <map:match pattern="service/blocks/*">
+              <map:generate src="service-consumer:" />
+              <map:transform src="blocks/{1}.xsl" />
+              <map:transform type="servletLinkRewriter" />
+              <map:serialize type="html" />
+          </map:match>
+          <map:match pattern="service/common/*">
+              <map:generate src="service-consumer:" />
+              <map:transform src="common/style/xsl/html/{1}.xsl" />
+              <map:transform type="servletLinkRewriter" />
+              <map:serialize type="html" />
+          </map:match>
+          <map:match pattern="service/system/*">
+              <map:generate src="service-consumer:" />
+              <map:transform src="stylesheets/system/{1}.xslt" />
+              <map:transform type="servletLinkRewriter" />
+              <map:serialize type="html" />
+          </map:match>
+      </map:pipeline>
+
+      <map:pipeline id="internal-resource">
+          <map:match pattern="**.css">
+              <map:read src="resources/{1}.css" />
+          </map:match>
+          <map:match pattern="**.gif">
+              <map:read src="resources/{1}.gif" />
+          </map:match>
+          <map:match pattern="**.ico">
+              <map:read src="resources/{1}.ico" />
+          </map:match>
+      </map:pipeline>
+
+      <map:pipeline id="external-resource">
+          <map:match pattern="**.js">
+              <map:read type="servletLinkRewriter" src="resources/{1}.js" />
+          </map:match>
+          <map:match pattern="**">
+              <map:read type="servletLinkRewriter" src="{1}" />
+          </map:match>
+      </map:pipeline>
   </map:pipelines>
-  
+
 </map:sitemap>
 



Mime
View raw message