forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r581248 - in /forrest/trunk/plugins/org.apache.forrest.plugin.input.feeder: input.xmap resources/stylesheets/rss-to-document.xsl
Date Tue, 02 Oct 2007 14:10:29 GMT
Author: rgardler
Date: Tue Oct  2 07:10:28 2007
New Revision: 581248

URL: http://svn.apache.org/viewvc?rev=581248&view=rev
Log:
Use a sensible header for tag aggregates

Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.input.feeder/input.xmap
    forrest/trunk/plugins/org.apache.forrest.plugin.input.feeder/resources/stylesheets/rss-to-document.xsl

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.feeder/input.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.feeder/input.xmap?rev=581248&r1=581247&r2=581248&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.feeder/input.xmap (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.feeder/input.xmap Tue Oct  2 07:10:28
2007
@@ -26,7 +26,9 @@
       
       <map:match pattern="**/*.tagFeed.rss.xml">
         <map:generate src="cocoon://{1}/{2}.tagFeed.rss"/>
-        <map:transform src="{lm:feeder.transform.rss.document}"/>
+        <map:transform src="{lm:feeder.transform.rss.document}">
+          <map:parameter name="title" value="Items tagged with {2}"/> 
+        </map:transform>
         <map:serialize type="xml"/>
       </map:match>
       

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.feeder/resources/stylesheets/rss-to-document.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.feeder/resources/stylesheets/rss-to-document.xsl?rev=581248&r1=581247&r2=581248&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.feeder/resources/stylesheets/rss-to-document.xsl
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.feeder/resources/stylesheets/rss-to-document.xsl
Tue Oct  2 07:10:28 2007
@@ -17,10 +17,19 @@
 -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:strip-space elements="*"/>
+  <xsl:param name="title"/>
+  
   <xsl:template match="rss">
     <document>
       <header>
-        <title><xsl:value-of select="channel/title"/></title>
+        <xsl:choose>
+          <xsl:when test="$title">
+            <title><xsl:value-of select="$title"/></title>
+          </xsl:when>
+          <xsl:otherwise>
+            <title><xsl:value-of select="channel/title"/></title>
+          </xsl:otherwise>
+        </xsl:choose>
       </header>
       <body>
         <xsl:apply-templates select="channel"/>



Mime
View raw message