cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r539290 - /cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-sample/src/main/resources/COB-INF/intercepted-flow/sitemap.xmap
Date Fri, 18 May 2007 06:47:55 GMT
Author: felixk
Date: Thu May 17 23:47:54 2007
New Revision: 539290

URL: http://svn.apache.org/viewvc?view=rev&rev=539290
Log:
- move to servlet-service

Modified:
    cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-sample/src/main/resources/COB-INF/intercepted-flow/sitemap.xmap

Modified: cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-sample/src/main/resources/COB-INF/intercepted-flow/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-sample/src/main/resources/COB-INF/intercepted-flow/sitemap.xmap?view=diff&rev=539290&r1=539289&r2=539290
==============================================================================
--- cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-sample/src/main/resources/COB-INF/intercepted-flow/sitemap.xmap
(original)
+++ cocoon/trunk/blocks/cocoon-scratchpad/cocoon-scratchpad-sample/src/main/resources/COB-INF/intercepted-flow/sitemap.xmap
Thu May 17 23:47:54 2007
@@ -21,25 +21,30 @@
     <!-- =========================== Views =================================== -->
 
     <map:views>
-        <map:view from-label="content" name="content">
+        <map:view name="content" from-label="content">
             <map:serialize type="xml" />
         </map:view>
 
         <map:view from-label="content" name="pretty-content">
-            <map:transform src="context://stylesheets/system/xml2html.xslt" />
-            <map:serialize type="html" />
+            <!-- Make use of servlet services -->
+            <map:serialize type="servletService">
+                <map:parameter name="service" value="servlet:style-default:/service/system/xml2html"
/>
+            </map:serialize>
         </map:view>
 
-        <map:view from-position="last" name="links">
+        <map:view name="links" from-position="last">
             <map:serialize type="links" />
         </map:view>
     </map:views>
 
-    <!-- indicates what flowscript to attach to this sitemap -->
+    <!-- =========================== Flowscripts ================================= -->
+
     <map:flow language="intercepted-javascript">
         <map:script src="basescript.js" />
     </map:flow>
 
+    <!-- =========================== Pipelines ================================= -->
+
     <map:pipelines>
         <map:pipeline>
 
@@ -52,13 +57,10 @@
                 +-->
             <map:match pattern="page/*">
                 <map:generate src="screens/{1}.xml" />
-                <map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl">
-                    <map:parameter name="servletPath" value="{request:servletPath}" />
-                    <map:parameter name="sitemapURI" value="{request:sitemapURI}" />
-                    <map:parameter name="contextPath" value="{request:contextPath}" />
-                    <map:parameter name="remove" value="{0}" />
-                </map:transform>
-                <map:serialize />
+                <!-- Make use of servlet services -->
+                <map:serialize type="servletService">
+                    <map:parameter name="service" value="servlet:style-default:/service/common/simple-samples2html"
/>
+                </map:serialize>
             </map:match>
         </map:pipeline>
 



Mime
View raw message