You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2007/11/15 14:37:41 UTC

svn commit: r595298 - /cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/sitemap.xmap

Author: vgritsenko
Date: Thu Nov 15 05:37:41 2007
New Revision: 595298

URL: http://svn.apache.org/viewvc?rev=595298&view=rev
Log:
xsltc not working - replace with default xslt transform

Modified:
    cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/sitemap.xmap

Modified: cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/sitemap.xmap?rev=595298&r1=595297&r2=595298&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/sitemap.xmap (original)
+++ cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/sitemap.xmap Thu Nov 15 05:37:41 2007
@@ -16,26 +16,27 @@
   limitations under the License.
 -->
 
-<!-- CVS $Id$ -->
-
+<!--
+  - $Id$
+  -->
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
 
   <!-- =========================== Views =================================== -->
 
   <map:views>
     <map:view name="content" from-label="content">
-      <map:serialize type="xml" />
+      <map:serialize type="xml"/>
     </map:view>
 
     <map:view from-label="content" name="pretty-content">
       <!-- Make use of servlet services -->
       <map:serialize type="servletService">
-        <map:parameter name="service" value="servlet:style-default:/service/system/xml2html" />
+        <map:parameter name="service" value="servlet:style-default:/service/system/xml2html"/>
       </map:serialize>
     </map:view>
 
     <map:view name="links" from-position="last">
-      <map:serialize type="links" />
+      <map:serialize type="links"/>
     </map:view>
   </map:views>
 
@@ -45,162 +46,160 @@
     <map:pipeline>
 
       <map:match pattern="">
-        <map:generate src="samples.xml" />
-        <!-- Make use of servlet services -->
+        <map:generate src="samples.xml"/>
         <map:serialize type="servletService">
-          <map:parameter name="service" value="servlet:style-default:/service/common/simple-samples2html" />
+          <map:parameter name="service" value="servlet:style-default:/service/common/simple-samples2html"/>
         </map:serialize>
       </map:match>
 
       <map:match pattern="sitemap.xmap">
-        <map:read src="sitemap.xmap" mime-type="text/xml" />
+        <map:read src="sitemap.xmap" mime-type="text/xml"/>
       </map:match>
 
       <!--
         - News sources, post processed using XSLT, for content aggregation
         - samples.
-      -->
+        -->
 
       <map:match pattern="slashdot">
-        <map:generate src="http://slashdot.org/slashdot.xml" />
-        <map:transform src="stylesheets/slashdot.xsl" />
-        <map:serialize />
+        <map:generate src="http://slashdot.org/slashdot.xml"/>
+        <map:transform src="stylesheets/slashdot.xsl"/>
+        <map:serialize/>
       </map:match>
 
       <map:match pattern="**.gif">
-        <map:read mime-type="image/gif" src="http://images.slashdot.org/topics/{1}.gif" />
+        <map:read mime-type="image/gif" src="http://images.slashdot.org/topics/{1}.gif"/>
       </map:match>
 
       <map:match pattern="**.jpg">
-        <map:read mime-type="image/jpg" src="http://images.slashdot.org/topics/{1}.jpg" />
+        <map:read mime-type="image/jpg" src="http://images.slashdot.org/topics/{1}.jpg"/>
       </map:match>
 
       <map:match pattern="moreover">
-        <map:generate src="http://www.moreover.com/cgi-local/page?o=xml&amp;c=Developer%20news" />
-        <map:transform src="stylesheets/moreover.xsl" />
-        <map:serialize />
+        <map:generate src="http://www.moreover.com/cgi-local/page?o=xml&amp;c=Developer%20news"/>
+        <map:transform src="stylesheets/moreover.xsl"/>
+        <map:serialize/>
       </map:match>
 
       <map:match pattern="xmlhack">
-        <map:generate src="http://www.xmlhack.com/cdf.cdf" />
-        <map:transform src="stylesheets/xmlhack.xsl" />
-        <map:serialize />
+        <map:generate src="http://www.xmlhack.com/cdf.cdf"/>
+        <map:transform src="stylesheets/xmlhack.xsl"/>
+        <map:serialize/>
       </map:match>
 
-
       <!--
         - Content aggregation samples
-      -->
+        -->
 
       <!-- Aggregation using the sitemap aggregator -->
       <map:match pattern="aggregate">
         <map:aggregate element="page">
-          <!--+
-            | Aggregation is a very powerful concept that allows a document
-            | be generated from several other documents. Strictly speaking,
-            | all parts are just concatenated in this order to a new
-            | document.
-            |
-            | Several things to note here:
-            |
-            |   "cocoon:" is a pseudo protocol and refers to another
-            |   pipeline. "cocoon:/" refers to a pipeline from the current
-            |   sitemap while "cocoon://" refers to a pipeline from the root
-            |   sitemap.
-            |
-            | Other pseudo protocols exist:
-            |
-            |   "context:" is another pseudo protocol, "context://" is
-            |   refering to a resource using the servlet context.
-            |
-            |   "resource:" is yet another pseudo protocol, "resource://" is
-            |   refering to a resource from the context classloader.
-            |
-            | All these pseudo protocols are declared in the cocoon.xconf.
-            |
-            | Thus, the parts refer to the pipeline fragments above.
-            |
-            | The optional element attribute places the content in a new root
-            | element named as specified, using the namespace provided by an
-            | optional ns attribute.
-            |
-            | Please see docs for further explanations.
-            +-->
-          <map:part src="cocoon:/slashdot" element="slashdot" />
-          <map:part src="cocoon:/moreover" element="moreover" />
-          <map:part src="cocoon:/xmlhack" element="xmlhack" />
+          <!--
+            - Aggregation is a very powerful concept that allows a document
+            - be generated from several other documents. Strictly speaking,
+            - all parts are just concatenated in this order to a new
+            - document.
+            -
+            - Several things to note here:
+            -
+            -   "cocoon:" is a pseudo protocol and refers to another
+            -   pipeline. "cocoon:/" refers to a pipeline from the current
+            -   sitemap while "cocoon://" refers to a pipeline from the root
+            -   sitemap.
+            -
+            - Other pseudo protocols exist:
+            -
+            -   "context:" is another pseudo protocol, "context://" is
+            -   refering to a resource using the servlet context.
+            -
+            -   "resource:" is yet another pseudo protocol, "resource://" is
+            -   refering to a resource from the context classloader.
+            -
+            - All these pseudo protocols are declared in the cocoon.xconf.
+            -
+            - Thus, the parts refer to the pipeline fragments above.
+            -
+            - The optional element attribute places the content in a new root
+            - element named as specified, using the namespace provided by an
+            - optional ns attribute.
+            -
+            - Please see docs for further explanations.
+            -->
+          <map:part src="cocoon:/slashdot" element="slashdot"/>
+          <map:part src="cocoon:/moreover" element="moreover"/>
+          <map:part src="cocoon:/xmlhack" element="xmlhack"/>
         </map:aggregate>
-        <map:transform src="stylesheets/news.xsl" />
-        <map:serialize />
+        <map:transform src="stylesheets/news.xsl"/>
+        <map:serialize/>
       </map:match>
 
       <!-- Aggregation using the include transformer -->
       <map:match pattern="aggregate2">
-        <map:generate src="aggregate.xml" />
-        <map:transform type="include" />
-        <map:transform type="xsltc" src="stylesheets/news.xsl" />
-        <map:serialize />
+        <map:generate src="aggregate.xml"/>
+        <map:transform type="include"/>
+        <map:transform src="stylesheets/news.xsl"/>
+        <map:serialize/>
       </map:match>
 
       <!-- Aggregation using the include transformer, done in parallel threads -->
       <map:match pattern="aggregate3">
-        <map:generate src="aggregate.xml" />
+        <map:generate src="aggregate.xml"/>
         <map:transform type="include">
-          <map:parameter name="parallel" value="true" />
+          <map:parameter name="parallel" value="true"/>
         </map:transform>
-        <map:transform type="xsltc" src="stylesheets/news.xsl" />
-        <map:serialize />
+        <map:transform src="stylesheets/news.xsl"/>
+        <map:serialize/>
       </map:match>
 
       <!-- Aggregation using the CInclude transformer -->
       <map:match pattern="aggregate4">
-        <map:generate src="aggregate.xml" />
-        <map:transform type="cinclude" />
-        <map:transform type="xsltc" src="stylesheets/news.xsl" />
-        <map:serialize />
+        <map:generate src="aggregate.xml"/>
+        <map:transform type="cinclude"/>
+        <map:transform src="stylesheets/news.xsl"/>
+        <map:serialize/>
       </map:match>
 
       <!-- Aggregation using the XInclude transformer -->
       <map:match pattern="aggregate5">
-        <map:generate src="xaggregate.xml" />
-        <map:transform type="xinclude" />
-        <map:transform type="xsltc" src="stylesheets/news.xsl" />
-        <map:serialize />
+        <map:generate src="xaggregate.xml"/>
+        <map:transform type="xinclude"/>
+        <map:transform src="stylesheets/news.xsl"/>
+        <map:serialize/>
       </map:match>
 
-
       <!--
         - Include Samples
-      -->
+        -->
+
       <map:match pattern="include-*-*-*">
-        <map:generate src="content/i{3}.xml" />
+        <map:generate src="content/i{3}.xml"/>
         <map:transform type="include">
-          <map:parameter name="parallel" value="{1}" />
-          <map:parameter name="recursive" value="{2}" />
+          <map:parameter name="parallel" value="{1}"/>
+          <map:parameter name="recursive" value="{2}"/>
         </map:transform>
         <!-- Make use of servlet services -->
         <map:serialize type="servletService">
-          <map:parameter name="service" value="servlet:style-default:/service/common/simple-page2html" />
+          <map:parameter name="service" value="servlet:style-default:/service/common/simple-page2html"/>
         </map:serialize>
       </map:match>
 
-
       <!--
         - XInclude Samples
-      -->
+        -->
+
       <map:match pattern="*.html">
-        <map:generate src="content/{1}.xml" />
-        <map:transform type="xinclude" />
+        <map:generate src="content/{1}.xml"/>
+        <map:transform type="xinclude"/>
         <!-- Make use of servlet services -->
         <map:serialize type="servletService">
-          <map:parameter name="service" value="servlet:style-default:/service/common/simple-page2html" />
+          <map:parameter name="service" value="servlet:style-default:/service/common/simple-page2html"/>
         </map:serialize>
       </map:match>
 
       <!-- Source Files -->
       <map:match pattern="*.xml">
-        <map:generate src="content/{1}.xml" />
-        <map:serialize />
+        <map:generate src="content/{1}.xml"/>
+        <map:serialize/>
       </map:match>
 
     </map:pipeline>