cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r539125 [2/2] - in /cocoon/trunk/blocks: cocoon-lucene/cocoon-lucene-sample/src/main/resources/COB-INF/ cocoon-mail/cocoon-mail-sample/src/main/resources/COB-INF/ cocoon-mail/cocoon-mail-sample/src/main/resources/COB-INF/mail/ cocoon-mail/c...
Date Thu, 17 May 2007 21:37:26 GMT
Modified: cocoon/trunk/blocks/cocoon-petstore/cocoon-petstore-sample/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-petstore/cocoon-petstore-sample/src/main/resources/COB-INF/sitemap.xmap?view=diff&rev=539125&r1=539124&r2=539125
==============================================================================
--- cocoon/trunk/blocks/cocoon-petstore/cocoon-petstore-sample/src/main/resources/COB-INF/sitemap.xmap
(original)
+++ cocoon/trunk/blocks/cocoon-petstore/cocoon-petstore-sample/src/main/resources/COB-INF/sitemap.xmap
Thu May 17 14:37:25 2007
@@ -16,84 +16,108 @@
   limitations under the License.
 -->
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
-  <!-- ======================== Views ================================ -->
-  <!--
-  The debug view can be used to output an intermediate
-  snapshot of the pipeline.
-  Pass cocoon-view=debug as a URL parameter to see
-  the pipeline output produced by the transofrmer
-  labeled "debug". You can move the label to different
-  transformers to understand each processing
-  stage better.
--->
-  <map:views>
-    <map:view name="debug" from-label="debug">
-      <map:serialize type="xml"/>
-    </map:view>
-    <map:view name="debug1" from-label="debug1">
-      <map:serialize type="xml"/>
-    </map:view>
-  </map:views>
-  <!-- ======================== Resources ============================ -->
-  <map:resources>
-    <map:resource name="html">
-      <map:transform src="stylesheets/site2html.xsl"/>
-      <map:serialize type="html"/>
-    </map:resource>
-  </map:resources>
-  <!-- ======================== Flow ================================= -->
-  <map:flow language="javascript">
-    <map:script src="flow/PetStoreImpl.js"/>
-    <map:script src="flow/petstore.js"/>
-  </map:flow>
-  <!-- ======================== Pipelines ============================ -->
-  <map:pipelines>
-    <map:pipeline>
-      <map:match pattern="*.kont">
-        <!-- This handles sendPage*() continuations.-->
-        <map:call continuation="{1}"/>
-      </map:match>
-      <map:match pattern="*.do">
-        <map:call function="main">
-          <map:parameter name="page" value="{1}"/>
-        </map:call>
-      </map:match>
-      <map:match pattern="">
-        <map:call function="index"/>
-      </map:match>
-    </map:pipeline>
-    <map:pipeline>
-      <map:match pattern="view/*.xsp">
-        <map:generate src="view/xsp/{1}.xsp" type="serverpages" label="debug"/>
-        <map:call resource="html"/>
-      </map:match>
-      <map:match pattern="view/*.jxpath">
-        <map:generate src="view/jxpath/{1}.xml" type="file"/>
-        <map:transform type="jx" label="debug"/>
-        <map:call resource="html"/>
-      </map:match>
-      <map:match pattern="view/*.jexl">
-        <map:generate src="view/jexl/{1}.xml" type="jx" label="debug"/>
-        <map:call resource="html"/>
-      </map:match>
-      <map:match pattern="view/*.vm">
-        <map:generate src="view/velocity/{1}.vm" type="velocity" label="debug"/>
-        <map:serialize type="html"/>
-      </map:match>
-      <map:match pattern="view/*.cforms">
-        <map:generate src="view/forms/{1}_t.xml" label="debug"/>
-        <map:transform type="forms" label="debug1"/>
-        <map:call resource="html"/>
-      </map:match>
-    </map:pipeline>
-    <map:pipeline>
-      <map:match pattern="images/*.gif">
-        <map:read mime-type="image/gif" src="images/{1}.gif"/>
-      </map:match>
-      <map:match pattern="images/*.jpg">
-        <map:read mime-type="image/jpeg" src="images/{1}.jpg"/>
-      </map:match>
-    </map:pipeline>
-  </map:pipelines>
+
+    <!-- =========================== Views =================================== -->
+
+    <map:views>
+        <map:view from-label="content" name="content">
+            <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:serialize>
+        </map:view>
+
+        <map:view from-position="last" name="links">
+            <map:serialize type="links" />
+        </map:view>
+
+        <!--
+            The debug view can be used to output an intermediate
+            snapshot of the pipeline.
+            Pass cocoon-view=debug as a URL parameter to see
+            the pipeline output produced by the transofrmer
+            labeled "debug". You can move the label to different
+            transformers to understand each processing
+            stage better.
+        -->
+        <map:view name="debug" from-label="debug">
+            <map:serialize type="xml" />
+        </map:view>
+
+        <map:view name="debug1" from-label="debug1">
+            <map:serialize type="xml" />
+        </map:view>
+
+    </map:views>
+
+    <!-- ======================== Resources ============================ -->
+
+    <map:resources>
+        <map:resource name="html">
+            <map:transform src="stylesheets/site2html.xsl" />
+            <map:serialize type="html" />
+        </map:resource>
+    </map:resources>
+
+    <!-- ======================== Flow ================================= -->
+
+    <map:flow language="javascript">
+        <map:script src="flow/PetStoreImpl.js" />
+        <map:script src="flow/petstore.js" />
+    </map:flow>
+
+    <!-- ======================== Pipelines ============================ -->
+
+    <map:pipelines>
+        <map:pipeline>
+            <map:match pattern="*.kont">
+                <!-- This handles sendPage*() continuations.-->
+                <map:call continuation="{1}" />
+            </map:match>
+            <map:match pattern="*.do">
+                <map:call function="main">
+                    <map:parameter name="page" value="{1}" />
+                </map:call>
+            </map:match>
+            <map:match pattern="">
+                <map:call function="index" />
+            </map:match>
+        </map:pipeline>
+        <map:pipeline>
+            <map:match pattern="view/*.xsp">
+                <map:generate src="view/xsp/{1}.xsp" type="serverpages" label="debug"
/>
+                <map:call resource="html" />
+            </map:match>
+            <map:match pattern="view/*.jxpath">
+                <map:generate src="view/jxpath/{1}.xml" type="file" />
+                <map:transform type="jx" label="debug" />
+                <map:call resource="html" />
+            </map:match>
+            <map:match pattern="view/*.jexl">
+                <map:generate src="view/jexl/{1}.xml" type="jx" label="debug" />
+                <map:call resource="html" />
+            </map:match>
+            <map:match pattern="view/*.vm">
+                <map:generate src="view/velocity/{1}.vm" type="velocity" label="debug"
/>
+                <map:serialize type="html" />
+            </map:match>
+            <map:match pattern="view/*.cforms">
+                <map:generate src="view/forms/{1}_t.xml" label="debug" />
+                <map:transform type="forms" label="debug1" />
+                <map:call resource="html" />
+            </map:match>
+        </map:pipeline>
+        <map:pipeline>
+            <map:match pattern="images/*.gif">
+                <map:read mime-type="image/gif" src="images/{1}.gif" />
+            </map:match>
+            <map:match pattern="images/*.jpg">
+                <map:read mime-type="image/jpeg" src="images/{1}.jpg" />
+            </map:match>
+        </map:pipeline>
+    </map:pipelines>
 </map:sitemap>
-<!-- end of file -->

Modified: cocoon/trunk/blocks/cocoon-poi/cocoon-poi-sample/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-poi/cocoon-poi-sample/src/main/resources/COB-INF/sitemap.xmap?view=diff&rev=539125&r1=539124&r2=539125
==============================================================================
--- cocoon/trunk/blocks/cocoon-poi/cocoon-poi-sample/src/main/resources/COB-INF/sitemap.xmap
(original)
+++ cocoon/trunk/blocks/cocoon-poi/cocoon-poi-sample/src/main/resources/COB-INF/sitemap.xmap
Thu May 17 14:37:25 2007
@@ -17,132 +17,133 @@
 -->
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
 
-<!-- =========================== Components =================================== -->
+    <!-- =========================== Components =================================== -->
 
- <map:components>
-  <map:serializers default="html">
-    <map:serializer name="xls" src="org.apache.cocoon.serialization.HSSFSerializer"/>
-  </map:serializers>
- </map:components>
-
-<!-- =========================== Views =================================== -->
-
-  <map:views>
-    <map:view from-label="content" name="content">
-      <map:serialize type="xml"/>
-    </map:view>
-
-    <map:view from-label="content" name="pretty-content">
-      <map:transform src="servlet:style-default:/stylesheets/system/xml2html.xslt"/>
-      <map:transform type="servletLinkRewriter" />
-      <map:serialize type="html"/>
-    </map:view>
-
-    <map:view from-position="last" name="links">
-      <map:serialize type="links"/>
-    </map:view>
-  </map:views>
-
-<!-- =========================== Pipelines ================================= -->
-
- <map:pipelines>
-  <map:pipeline>
- 
-   <map:match pattern="">
-    <map:redirect-to uri="welcome"/>
-   </map:match>
-
-   <map:match pattern="welcome">
-    <map:generate src="samples.xml"/>
-    <map:transform src="servlet:style-default:/common/style/xsl/html/simple-samples2html.xsl"
/>
-    <map:transform type="servletLinkRewriter" />
-    <map:serialize/>
-   </map:match>
-
-   <map:match pattern="hello.xls">
-    <map:generate src="servlet:main-sample:/hello-world/hello.xml"/>
-    <map:transform src="servlet:main-sample:/hello-world/style/xsl/page2xls.xsl"/>
-    <map:serialize type="xls"/>
-   </map:match>
-
-   <map:match pattern="*.xls">
-    <map:generate src="content/{1}.xml"/>
-    <map:serialize type="xls"/>
-   </map:match>
-<!--
-   <map:match pattern="statetax-sql.xml">
-    <map:generate src="content/dynamic/statetax.xml"/>
-    <map:transform type="sql">
-      <map:parameter name="use-connection" value="personnel"/>
-    </map:transform>
-    <map:serialize type="xml"/>
-   </map:match>
-
-   <map:match pattern="statetax.xml">
-    <map:generate src="content/dynamic/statetax.xml"/>
-    <map:transform type="sql">
-      <map:parameter name="use-connection" value="personnel"/>
-    </map:transform>
-    <map:transform src="stylesheets/statetax-sql2xls.xsl"/> 
-    <map:serialize type="xml"/>
-   </map:match>
-
-   <map:match pattern="statetax.xls">
-    <map:generate src="content/dynamic/statetax.xml"/>
-    <map:transform type="sql">
-      <map:parameter name="use-connection" value="personnel"/>
-    </map:transform>
-    <map:transform src="stylesheets/statetax-sql2xls.xsl"/>
-    <map:serialize type="xls"/>
-   </map:match>
-   
-   <map:match pattern="statetax2.xls">
-    <map:generate src="content/dynamic/statetax2.xsp" type="serverpages"/>
-    <map:transform src="stylesheets/statetax-esql2xls.xsl"/>
-    <map:serialize type="xls"/>
-   </map:match>
-
-   <map:match pattern="sql-xls/*.xls">
-    <map:generate src="context://samples/docs/samples/sql/{1}.xml"/>
-    <map:transform type="sql">
-     <map:parameter name="use-connecton" value="personnel"/>
-    </map:transform>
-
-   <map:transform src="stylesheets/simple-sql2xls.xsl"/>
-    <map:serialize type="xls"/>
-   </map:match>
-
-   <map:match pattern="xsp/*">
-    <map:generate src="content/dynamic/{1}.xsp" type="serverpages"/>-->
-<!--
-     <map:transform src="context://samples/blocks/dynamic-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="file" value=".xsp"/>
-     </map:transform>
--->
-<!--    <map:serialize type="xml"/>
-   </map:match>
-   
-
-   <map:match pattern="xspxml/*">
-    <map:generate src="content/dynamic/{1}.xsp" type="serverpages"/>
-    <map:transform src="stylesheets/statetax-esql2xls.xsl"/>
-    <map:serialize type="html"/>
-   </map:match>
--->
+    <map:components>
 
-   <!-- delegate to parent sitemap 
-   <map:handle-errors/> -->
+        <!-- =========================== Serializers ===================================
-->
 
-  </map:pipeline>
+        <map:serializers default="html">
+            <map:serializer name="xls" src="org.apache.cocoon.serialization.HSSFSerializer"
/>
+        </map:serializers>
+
+    </map:components>
+
+    <!-- =========================== Views =================================== -->
+
+    <map:views>
+        <map:view from-label="content" name="content">
+            <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:serialize>
+        </map:view>
+
+        <map:view from-position="last" name="links">
+            <map:serialize type="links" />
+        </map:view>
+    </map:views>
+
+    <!-- =========================== Pipelines ================================= -->
+
+    <map:pipelines>
+        <map:pipeline>
+
+            <map:match pattern="">
+                <map:redirect-to uri="welcome" />
+            </map:match>
+
+            <map:match pattern="welcome">
+                <map:generate src="samples.xml" />
+                <!-- Make use of servlet services -->
+                <map:serialize type="servletService" mime-type="text/html">
+                    <map:parameter name="service" value="servlet:style-default:/service/common/simple-samples2html"
/>
+                </map:serialize>
+            </map:match>
+
+            <map:match pattern="hello.xls">
+                <map:generate src="servlet:main-sample:/hello-world/hello.xml" />
+                <map:transform src="servlet:main-sample:/hello-world/style/xsl/page2xls.xsl"
/>
+                <map:serialize type="xls" />
+            </map:match>
+
+            <map:match pattern="*.xls">
+                <map:generate src="content/{1}.xml" />
+                <map:serialize type="xls" />
+            </map:match>
+            <!--
+                <map:match pattern="statetax-sql.xml">
+                <map:generate src="content/dynamic/statetax.xml"/>
+                <map:transform type="sql">
+                <map:parameter name="use-connection" value="personnel"/>
+                </map:transform>
+                <map:serialize type="xml"/>
+                </map:match>
+                
+                <map:match pattern="statetax.xml">
+                <map:generate src="content/dynamic/statetax.xml"/>
+                <map:transform type="sql">
+                <map:parameter name="use-connection" value="personnel"/>
+                </map:transform>
+                <map:transform src="stylesheets/statetax-sql2xls.xsl"/> 
+                <map:serialize type="xml"/>
+                </map:match>
+                
+                <map:match pattern="statetax.xls">
+                <map:generate src="content/dynamic/statetax.xml"/>
+                <map:transform type="sql">
+                <map:parameter name="use-connection" value="personnel"/>
+                </map:transform>
+                <map:transform src="stylesheets/statetax-sql2xls.xsl"/>
+                <map:serialize type="xls"/>
+                </map:match>
+                
+                <map:match pattern="statetax2.xls">
+                <map:generate src="content/dynamic/statetax2.xsp" type="serverpages"/>
+                <map:transform src="stylesheets/statetax-esql2xls.xsl"/>
+                <map:serialize type="xls"/>
+                </map:match>
+                
+                <map:match pattern="sql-xls/*.xls">
+                <map:generate src="context://samples/docs/samples/sql/{1}.xml"/>
+                <map:transform type="sql">
+                <map:parameter name="use-connecton" value="personnel"/>
+                </map:transform>
+                
+                <map:transform src="stylesheets/simple-sql2xls.xsl"/>
+                <map:serialize type="xls"/>
+                </map:match>
+                
+                <map:match pattern="xsp/*">
+                <map:generate src="content/dynamic/{1}.xsp" type="serverpages"/>-->
+            <!--
+                <map:transform src="context://samples/blocks/dynamic-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="file" value=".xsp"/>
+                </map:transform>
+            -->
+            <!--    <map:serialize type="xml"/>
+                </map:match>
+                
+                
+                <map:match pattern="xspxml/*">
+                <map:generate src="content/dynamic/{1}.xsp" type="serverpages"/>
+                <map:transform src="stylesheets/statetax-esql2xls.xsl"/>
+                <map:serialize type="html"/>
+                </map:match>
+            -->
 
- </map:pipelines>
-
-</map:sitemap>
+            <!-- delegate to parent sitemap 
+                <map:handle-errors/> -->
 
+        </map:pipeline>
 
+    </map:pipelines>
 
-<!-- end of file -->
-
+</map:sitemap>



Mime
View raw message