cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r596918 - in /cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation: ./ stylesheets/
Date Wed, 21 Nov 2007 03:26:03 GMT
Author: vgritsenko
Date: Tue Nov 20 19:26:02 2007
New Revision: 596918

URL: http://svn.apache.org/viewvc?rev=596918&view=rev
Log:
refresh aggregation samples

Modified:
    cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/aggregate.xml
    cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/samples.xml
    cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/sitemap.xmap
    cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/moreover.xsl
    cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/news.xsl
    cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/slashdot.xsl
    cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/xmlhack.xsl
    cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/xaggregate.xml

Modified: cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/aggregate.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/aggregate.xml?rev=596918&r1=596917&r2=596918&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/aggregate.xml
(original)
+++ cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/aggregate.xml
Tue Nov 20 19:26:02 2007
@@ -16,16 +16,16 @@
   limitations under the License.
 -->
 
-<!-- CVS $Id$ -->
-
+<!--
+  - Example showing aggrgation of 3 sources using Include transformer.
+  -
+  - $Id$
+  -->
 <page xmlns:i="http://apache.org/cocoon/include/1.0">
-  <slashdot>
-    <i:include src="cocoon:/slashdot"/>
-  </slashdot>
-  <moreover>
-    <i:include src="cocoon:/moreover"/>
-  </moreover>
-  <xmlhack>
-    <i:include src="cocoon:/xmlhack"/>
-  </xmlhack>
+  <group name="Include Transformer Aggregation">
+    <note>This page was assembled using include transformer.</note>
+  </group>
+  <i:include src="cocoon:/slashdot.xml"/>
+  <i:include src="cocoon:/moreover.xml"/>
+  <i:include src="cocoon:/xmlhack.xml"/>
 </page>

Modified: cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/samples.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/samples.xml?rev=596918&r1=596917&r2=596918&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/samples.xml
(original)
+++ cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/samples.xml
Tue Nov 20 19:26:02 2007
@@ -57,13 +57,9 @@
       content from each aggregated source. This is useful when
       aggregating several sources with large latency.
     </sample>
-    <sample name="CInclude Content Aggregation" href="aggregate4">
-      Same as 'Flexible Content Aggregation' sample above, using
-      CInclude transformer.
-    </sample>
     <sample name="XInclude Content Aggregation" href="aggregate5">
       Same as 'Flexible Content Aggregation' sample above, using
-      XInclude transformer.
+      XInclude transformer which supports standard XInclude syntax.
     </sample>
   </group>
   

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=596918&r1=596917&r2=596918&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
Tue Nov 20 19:26:02 2007
@@ -29,7 +29,6 @@
     </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>
@@ -61,30 +60,47 @@
         - samples.
         -->
 
-      <map:match pattern="slashdot">
+      <map:match pattern="slashdot.xml">
         <map:generate src="http://slashdot.org/slashdot.xml"/>
         <map:transform src="stylesheets/slashdot.xsl"/>
-        <map:serialize/>
+        <map:serialize type="xml"/>
+      </map:match>
+
+      <map:match pattern="moreover.xml">
+        <map:generate src="http://www.moreover.com/cgi-local/page?o=xml&amp;c=Developer%20news"/>
+        <map:transform src="stylesheets/moreover.xsl"/>
+        <map:serialize type="xml"/>
       </map:match>
 
-      <map:match pattern="**.gif">
-        <map:read mime-type="image/gif" src="http://images.slashdot.org/topics/{1}.gif"/>
+      <map:match pattern="xmlhack.xml">
+        <map:generate src="http://www.xmlhack.com/cdf.cdf"/>
+        <map:transform src="stylesheets/xmlhack.xsl"/>
+        <map:serialize type="xml"/>
       </map:match>
 
-      <map:match pattern="**.jpg">
-        <map:read mime-type="image/jpg" src="http://images.slashdot.org/topics/{1}.jpg"/>
+      <!--
+        - News sources, transformed to HTML for display
+        -->
+
+      <map:match pattern="slashdot">
+        <map:generate src="cocoon:/slashdot.xml"/>
+        <map:serialize type="servletService">
+          <map:parameter name="service" value="servlet:style-default:/service/common/simple-samples2html"/>
+        </map:serialize>
       </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="cocoon:/moreover.xml"/>
+        <map:serialize type="servletService">
+          <map:parameter name="service" value="servlet:style-default:/service/common/simple-samples2html"/>
+        </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="cocoon:/xmlhack.xml"/>
+        <map:serialize type="servletService">
+          <map:parameter name="service" value="servlet:style-default:/service/common/simple-samples2html"/>
+        </map:serialize>
       </map:match>
 
       <!--
@@ -125,12 +141,14 @@
             -
             - 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:part src="cocoon:/slashdot.xml" element="samples"/>
+          <map:part src="cocoon:/moreover.xml" element="samples"/>
+          <map:part src="cocoon:/xmlhack.xml" element="samples"/>
         </map:aggregate>
         <map:transform src="stylesheets/news.xsl"/>
-        <map:serialize/>
+        <map:serialize type="servletService">
+          <map:parameter name="service" value="servlet:style-default:/service/common/simple-samples2html"/>
+        </map:serialize>
       </map:match>
 
       <!-- Aggregation using the include transformer -->
@@ -138,7 +156,9 @@
         <map:generate src="aggregate.xml"/>
         <map:transform type="include"/>
         <map:transform src="stylesheets/news.xsl"/>
-        <map:serialize/>
+        <map:serialize type="servletService">
+          <map:parameter name="service" value="servlet:style-default:/service/common/simple-samples2html"/>
+        </map:serialize>
       </map:match>
 
       <!-- Aggregation using the include transformer, done in parallel threads -->
@@ -148,7 +168,9 @@
           <map:parameter name="parallel" value="true"/>
         </map:transform>
         <map:transform src="stylesheets/news.xsl"/>
-        <map:serialize/>
+        <map:serialize type="servletService">
+          <map:parameter name="service" value="servlet:style-default:/service/common/simple-samples2html"/>
+        </map:serialize>
       </map:match>
 
       <!-- Aggregation using the CInclude transformer -->
@@ -156,7 +178,9 @@
         <map:generate src="aggregate.xml"/>
         <map:transform type="cinclude"/>
         <map:transform src="stylesheets/news.xsl"/>
-        <map:serialize/>
+        <map:serialize type="servletService">
+          <map:parameter name="service" value="servlet:style-default:/service/common/simple-samples2html"/>
+        </map:serialize>
       </map:match>
 
       <!-- Aggregation using the XInclude transformer -->
@@ -164,7 +188,9 @@
         <map:generate src="xaggregate.xml"/>
         <map:transform type="xinclude"/>
         <map:transform src="stylesheets/news.xsl"/>
-        <map:serialize/>
+        <map:serialize type="servletService">
+          <map:parameter name="service" value="servlet:style-default:/service/common/simple-samples2html"/>
+        </map:serialize>
       </map:match>
 
       <!--
@@ -177,7 +203,6 @@
           <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:serialize>
@@ -190,7 +215,6 @@
       <map:match pattern="*.html">
         <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:serialize>

Modified: cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/moreover.xsl
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/moreover.xsl?rev=596918&r1=596917&r2=596918&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/moreover.xsl
(original)
+++ cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/moreover.xsl
Tue Nov 20 19:26:02 2007
@@ -17,67 +17,26 @@
 -->
 
 <!--
-    [XSL-XSLT] This stylesheet automatically updated from an IE5-compatible XSL stylesheet
to XSLT.
-    The following problems which need manual attention may exist in this stylesheet:
-    -->
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+  - $Id$
+  -->
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-	<!-- [XSL-XSLT] Simulate lack of built-in templates -->
-	<xsl:template match="@*|/|node()"/>
-	<!-- Match The Root Node -->
 	<xsl:template match="/">
-		<HTML>
-		<BODY>
-		<xsl:apply-templates select="*"></xsl:apply-templates>
-		</BODY>
-		</HTML>
+    <samples name="Moreover News Page">
+      <group name="Moreover News">
+        <xsl:apply-templates select="moreovernews"/>
+      </group>
+    </samples>
 	</xsl:template>
-	<!-- Match Everything Else -->
-	<xsl:template match="*|@*|text()|node()|comment()|processing-instruction()">
-		<xsl:copy>
-			<xsl:apply-templates select="*|@*|text()|node()|comment()|processing-instruction()"></xsl:apply-templates>
-		</xsl:copy>
-	</xsl:template>
-	<!-- Individual Templates -->
+
 	<xsl:template match="moreovernews">
-		<table border="0" width="100%">
-			<tr>
-				<td colspan="3" STYLE="background-color : #B0E0E6; font : x-small Arial, Helvetica,
sans-serif;">
-					<CENTER>
-					<b>Current News from moreover.com</b>
-					</CENTER>
-				</td>
-			</tr>
-			<xsl:apply-templates select="article"></xsl:apply-templates>
-		</table>
+    <xsl:apply-templates select="article"/>
 	</xsl:template>
-	<xsl:template match="article">
-		<tr>
-			<xsl:if test="(position() mod 2) = 1">
-				<xsl:attribute name="STYLE">background-color : lightgrey; font : x-small Arial,
Helvetica, sans-serif;</xsl:attribute>
-			</xsl:if>
-			<xsl:if test="(position() mod 2) = 0">
-				<xsl:attribute name="STYLE">font : x-small Arial, Helvetica, sans-serif;</xsl:attribute>
-			</xsl:if>
-			<td STYLE="font : bold;" width="50%">
-				<a>
-					<xsl:attribute name="HREF"><xsl:value-of select="url"></xsl:value-of></xsl:attribute>
-					<xsl:attribute name="STYLE">text-decoration : none;</xsl:attribute>
-					<xsl:attribute name="TARGET">_blank</xsl:attribute>
-					<xsl:value-of select="headline_text"></xsl:value-of>
-				</a>
-			</td>
-			<td STYLE="font-variant : small-caps;">
-				<a>
-					<xsl:attribute name="HREF"><xsl:value-of select="document_url"></xsl:value-of></xsl:attribute>
-					<xsl:attribute name="STYLE">text-decoration : none;</xsl:attribute>
-					<xsl:attribute name="TARGET">_blank</xsl:attribute>
-					<xsl:value-of select="source"></xsl:value-of>
-				</a>
-			</td>
-			<td>
-				<xsl:value-of select="harvest_time"></xsl:value-of>
-			</td>
-		</tr>
+
+  <xsl:template match="article">
+    <sample name="{headline_text}" href="{url}">
+      <br/>By <xsl:value-of select="source"/> at <xsl:value-of select="harvest_time"/>.
+    </sample>
 	</xsl:template>
 </xsl:stylesheet>

Modified: cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/news.xsl
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/news.xsl?rev=596918&r1=596917&r2=596918&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/news.xsl
(original)
+++ cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/news.xsl
Tue Nov 20 19:26:02 2007
@@ -16,25 +16,22 @@
   limitations under the License.
 -->
 
+<!--
+  - $Id$
+  -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-	<!-- Match The Root Node -->
 	<xsl:template match="page">
-		<html>
-            <body>
-                <xsl:apply-templates/>
-            </body>
-		</html>
+    <samples name="Aggregated News Page">
+      <xsl:apply-templates/>
+		</samples>
 	</xsl:template>
 
-	<xsl:template match="slashdot | moreover | xmlhack">
-	    <xsl:variable name="ABC" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
-	    <xsl:variable name="abc" select="'abcdefghijklmnopqrstuvwxyz'"/>
-        <xsl:apply-templates select="*[translate(local-name(), $ABC, $abc) = 'html']/
-                                     *[translate(local-name(), $ABC, $abc) = 'body']/*"/>
-    </xsl:template>
+  <xsl:template match="samples">
+    <xsl:apply-templates/>
+  </xsl:template>
 
-	<xsl:template match="@*|*|text()" priority="-1">
+  <xsl:template match="@*|*|text()" priority="-1">
 		<xsl:copy>
 			<xsl:apply-templates select="@*|*|text()"/>
 		</xsl:copy>

Modified: cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/slashdot.xsl
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/slashdot.xsl?rev=596918&r1=596917&r2=596918&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/slashdot.xsl
(original)
+++ cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/slashdot.xsl
Tue Nov 20 19:26:02 2007
@@ -17,73 +17,26 @@
 -->
 
 <!--
-    [XSL-XSLT] This stylesheet automatically updated from an IE5-compatible XSL stylesheet
to XSLT.
-    The following problems which need manual attention may exist in this stylesheet:
-    -->
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+  - $Id$
+  -->
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+  <xsl:template match="/">
+    <samples name="Slashdot News Page">
+      <group name="Slashdot News">
+        <xsl:apply-templates select="backslash"/>
+      </group>
+    </samples>
+  </xsl:template>
 
-	<!-- [XSL-XSLT] Simulate lack of built-in templates -->
-	<xsl:template match="@*|/|node()"/>
-	<!-- Match The Root Node -->
-	<xsl:template match="/">
-		<HTML>
-		<BODY>
-		<xsl:apply-templates select="*"></xsl:apply-templates>
-		</BODY>
-		</HTML>
-	</xsl:template>
-	<!-- Match Everything Else -->
-	<xsl:template match="*|@*|text()|node()|comment()|processing-instruction()">
-		<xsl:copy>
-			<xsl:apply-templates select="*|@*|text()|node()|comment()|processing-instruction()"></xsl:apply-templates>
-		</xsl:copy>
-	</xsl:template>
-	<!-- Individual Templates -->
 	<xsl:template match="backslash">
-		<table border="0" width="100%">
-			<tr>
-				<td colspan="5" STYLE="background-color : #B0E0E6; font : x-small Arial, Helvetica,
sans-serif;">
-					<CENTER>
-					<b>Current News from Slashdot</b>
-					</CENTER>
-				</td>
-			</tr>
-			<xsl:apply-templates select="story"></xsl:apply-templates>
-		</table>
+    <xsl:apply-templates select="story"/>
 	</xsl:template>
-	<xsl:template match="story">
-		<tr>
-			<xsl:if test="(position() mod 2) = 1">
-				<xsl:attribute name="STYLE">background-color : lightgrey; font : x-small Arial,
Helvetica, sans-serif;</xsl:attribute>
-			</xsl:if>
-			<xsl:if test="(position() mod 2) = 0">
-				<xsl:attribute name="STYLE">font : x-small Arial, Helvetica, sans-serif;</xsl:attribute>
-			</xsl:if>
-			<td>
-			<CENTER>
-			<IMG WIDTH="25" HEIGHT="25" BORDER="0">
-				<xsl:attribute name="SRC"><xsl:value-of select="image"></xsl:value-of></xsl:attribute>
-				<xsl:attribute name="ALT"><xsl:value-of select="image"></xsl:value-of></xsl:attribute>
-			</IMG>
-			</CENTER>
-			</td>
-			<td STYLE="font : bold;" width="50%">
-				<a>
-					<xsl:attribute name="HREF"><xsl:value-of select="url"></xsl:value-of></xsl:attribute>
-					<xsl:attribute name="STYLE">text-decoration : none;</xsl:attribute>
-					<xsl:attribute name="TARGET">_blank</xsl:attribute>
-					<xsl:value-of select="title"></xsl:value-of>
-				</a>
-			</td>
-			<td STYLE="font-variant : small-caps;">
-				<xsl:value-of select="topic"></xsl:value-of>
-			</td>
-			<td STYLE="font-variant : small-caps;">
-				<xsl:value-of select="author"></xsl:value-of>
-			</td>
-			<td>
-				<xsl:value-of select="time"></xsl:value-of>
-			</td>
-		</tr>
+
+  <xsl:template match="story">
+    <sample name="{title}" href="{url}">
+      <br/>Posted by <xsl:value-of select="author"/> at <xsl:value-of select="time"/>,
<xsl:value-of select="comments"/> comments.
+    </sample>
 	</xsl:template>
 </xsl:stylesheet>

Modified: cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/xmlhack.xsl
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/xmlhack.xsl?rev=596918&r1=596917&r2=596918&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/xmlhack.xsl
(original)
+++ cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/stylesheets/xmlhack.xsl
Tue Nov 20 19:26:02 2007
@@ -16,50 +16,27 @@
   limitations under the License.
 -->
 
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<!--
+  - $Id$
+  -->
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-  <!-- Match The Root Node -->
   <xsl:template match="/">
-    <html>
-      <body>
-        <xsl:apply-templates/>
-      </body>
-    </html>
+    <samples name="XMLHack News Page">
+      <group name="XMLHack News">
+        <xsl:apply-templates select="CHANNEL"/>
+      </group>
+    </samples>
   </xsl:template>
 
   <xsl:template match="CHANNEL">
-    <table border="0" width="100%">
-      <tr>
-        <td colspan="3" style="background-color: #B0E0E6; font: x-small Arial, Helvetica,
sans-serif;">
-          <center><b>Current News from xmlhack.com</b></center>
-        </td>
-      </tr>
-      <xsl:apply-templates select="ITEM"/>
-    </table>
+    <xsl:apply-templates select="ITEM"/>
   </xsl:template>
 
   <xsl:template match="ITEM">
-    <tr>
-      <xsl:if test="(position() mod 2) = 1">
-        <xsl:attribute name="style">background-color: lightgrey; font: x-small Arial,
Helvetica, sans-serif;</xsl:attribute>
-      </xsl:if>
-      <xsl:if test="(position() mod 2) = 0">
-        <xsl:attribute name="style">background-color: #C0C0C0; font: x-small Arial,
Helvetica, sans-serif;</xsl:attribute>
-      </xsl:if>
-      <td STYLE="font: bold;" width="75%">
-        <a target="_blank" style="text-decoration: none;" href="{@href}">
-          <xsl:value-of select="TITLE"/>
-        </a>
-      </td>
-      <td>
-        <xsl:value-of select="@LASTMOD"/>
-      </td>
-    </tr>
-    <tr>
-      <td colspan="3">
-        <xsl:value-of select="ABSTRACT"/>
-      </td>
-    </tr>
+    <sample name="{TITLE}" href="{@href}">
+      <br/><xsl:value-of select="ABSTRACT"/> (at <xsl:value-of select="@LASTMOD"/>)
+    </sample>
   </xsl:template>
-
 </xsl:stylesheet>

Modified: cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/xaggregate.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/xaggregate.xml?rev=596918&r1=596917&r2=596918&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/xaggregate.xml
(original)
+++ cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/aggregation/xaggregate.xml
Tue Nov 20 19:26:02 2007
@@ -22,13 +22,10 @@
   - $Id$
   -->
 <page xmlns:x="http://www.w3.org/2001/XInclude">
-    <slashdot>
-        <x:include href="cocoon:/slashdot"/>
-    </slashdot>
-    <moreover>
-        <x:include href="cocoon:/moreover"/>
-    </moreover>
-    <xmlhack>
-        <x:include href="cocoon:/xmlhack"/>
-    </xmlhack>
+  <group name="Include Transformer Aggregation">
+    <note>This page was assembled using XInclude transformer.</note>
+  </group>
+  <x:include href="cocoon:/slashdot.xml"/>
+  <x:include href="cocoon:/moreover.xml"/>
+  <x:include href="cocoon:/xmlhack.xml"/>
 </page>



Mime
View raw message