cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r588473 - in /cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples: group2samples.xsl sitemap.xmap
Date Fri, 26 Oct 2007 02:21:36 GMT
Author: vgritsenko
Date: Thu Oct 25 19:21:34 2007
New Revision: 588473

URL: http://svn.apache.org/viewvc?rev=588473&view=rev
Log:
fix views.
sort sample groups alphabetically.

Modified:
    cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/group2samples.xsl
    cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/sitemap.xmap

Modified: cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/group2samples.xsl
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/group2samples.xsl?rev=588473&r1=588472&r2=588473&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/group2samples.xsl
(original)
+++ cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/group2samples.xsl
Thu Oct 25 19:21:34 2007
@@ -27,7 +27,9 @@
 
   <xsl:template match="/">
     <samples name="Cocoon Blocks">
-      <xsl:apply-templates/>
+      <xsl:apply-templates select="//group">
+        <xsl:sort select="@name"/>
+      </xsl:apply-templates>
     </samples>    
   </xsl:template>
   

Modified: cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/sitemap.xmap?rev=588473&r1=588472&r2=588473&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/sitemap.xmap (original)
+++ cocoon/trunk/blocks/cocoon-welcome/src/main/resources/COB-INF/samples/sitemap.xmap Thu
Oct 25 19:21:34 2007
@@ -23,6 +23,26 @@
   - $Id$
   -->
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <!-- =========================== 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="../stylesheets/xml2html.xslt"/>
+      <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="">
@@ -31,7 +51,7 @@
           <map:parameter name="depth" value="2"/>
           <map:parameter name="xmlFiles" value="\.xsamples$"/>
         </map:generate>
-        <map:transform src="group2samples.xsl"/>
+        <map:transform src="group2samples.xsl" label="content"/>
         <map:transform src="../stylesheets/simple-samples2html.xsl">
           <map:parameter name="contextPath" value="{request:contextPath}"/>
         </map:transform>



Mime
View raw message