You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2005/04/08 03:16:03 UTC

svn commit: r160501 - in forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo: resources.xmap resources/stylesheets/changes2rss.xsl status.xml

Author: crossley
Date: Thu Apr  7 18:16:01 2005
New Revision: 160501

URL: http://svn.apache.org/viewcvs?view=rev&rev=160501
Log:
Replaced use of document() function in changes2rss.xml with sitemap aggregation.
Due to (XALANJ-1856) the parser was going to the website to get the skinconf DTD.
Also aggregation is more efficient.

Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources.xmap
    forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/changes2rss.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/status.xml

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources.xmap?view=diff&r1=160500&r2=160501
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources.xmap (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources.xmap Thu Apr  7 18:16:01 2005
@@ -30,10 +30,11 @@
     <map:pipeline>
 
       <map:match pattern="**changes.rss">
-        <map:generate src="{project:status}" />
-        <map:transform src="resources/stylesheets/changes2rss.xsl">
-          <map:parameter name="config-file" value="{project:skinconf}"/>
-        </map:transform>      
+        <map:aggregate element="agg">
+          <map:part src="cocoon://skinconf.xml"/>
+          <map:part src="{project:status}"/>
+        </map:aggregate>
+        <map:transform src="resources/stylesheets/changes2rss.xsl"/>
         <map:serialize type="rss091" />
       </map:match>
 

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/changes2rss.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/changes2rss.xsl?view=diff&r1=160500&r2=160501
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/changes2rss.xsl (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/changes2rss.xsl Thu Apr  7 18:16:01 2005
@@ -17,21 +17,18 @@
 -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-  <xsl:param name="config-file"/>
-  <xsl:variable name="config" select="document($config-file)/skinconfig"/>
-
   <xsl:template match="status">
 
     <xsl:variable name="changes-url"
-      select="concat($config/project-url, 'changes.html')"/>
+      select="concat(../skinconfig/project-url, 'changes.html')"/>
 
     <rss version="0.91">
       <channel>
-        <title><xsl:value-of select="$config/project-name"/> Changes</title>
+        <title><xsl:value-of select="../skinconfig/project-name"/> Changes</title>
 
         <link><xsl:value-of select="$changes-url"/></link>
 
-        <description><xsl:value-of select="$config/project-name"/> Changes</description>
+        <description><xsl:value-of select="../skinconfig/project-name"/> Changes</description>
 
         <language>en-us</language>
 
@@ -68,5 +65,7 @@
       </channel>
     </rss>
   </xsl:template>
+
+  <xsl:template match="skinconfig"/>
 </xsl:stylesheet>
 

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/status.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/status.xml?view=diff&r1=160500&r2=160501
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/status.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/status.xml Thu Apr  7 18:16:01 2005
@@ -19,19 +19,22 @@
 <status>
 
   <developers>
-    <person name="Ross Gardler" email="rgardler@apache.org" id="RDG" />
     <person name="Volunteer needed" email="dev@forrest.apache.org" id="open"/>
   </developers>
 
   <changes>
     <!-- Add new releases here -->
     <release version="0.1" date="unreleased">
-      <action dev="DC" type="add" context="xsl"
+      <action context="code" type="fix" dev="DC">
+        Replace use of document() function in changes2rss.xml with
+        sitemap aggregation.
+      </action>
+      <action dev="DC" type="fix" context="xsl"
        fixes-bug="FOR-455" due-to="Cyriaque Dupoirieux">
        Use the "title" attribute of "changes" and "todo" tags if it exists,
        otherwise use the hard-coded values.
       </action>
-      <action context="code" type="update" dev="rdg">
+      <action context="code" type="update" dev="RDG">
         Move ToDo and Changes pipelines to this plugin, from core.
       </action>
       <action dev="RDG" type="add" context="admin">