You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2005/03/31 18:24:58 UTC

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

Author: rgardler
Date: Thu Mar 31 08:24:57 2005
New Revision: 159613

URL: http://svn.apache.org/viewcvs?view=rev&rev=159613
Log:
use resources.xmap to generate rss feed - this prevents the need to use (*.rss.xml)

Added:
    forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources.xmap   (with props)
Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/input.xmap
    forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/changes2document.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/status.xml

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/input.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/input.xmap?view=diff&r1=159612&r2=159613
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/input.xmap (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/input.xmap Thu Mar 31 08:24:57 2005
@@ -28,14 +28,6 @@
 
   <map:pipelines>
     <map:pipeline>
-
-      <map:match pattern="changes.rss.xml">
-        <map:generate src="{project:status}" />
-        <map:transform src="resources/stylesheets/changes2rss.xsl">
-          <map:parameter name="config-file" value="{project:skinconf}"/>
-        </map:transform>      
-        <map:serialize type="rss091" />
-      </map:match>
     
       <map:match pattern="changes.xml">
         <map:generate type="file" src="{project:status}" />

Added: 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=auto&rev=159613
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources.xmap (added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources.xmap Thu Mar 31 08:24:57 2005
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+  <map:components>
+    <map:serializers default="html">
+      <map:serializer name="rss091" mime-type="text/xml" src="org.apache.cocoon.serialization.XMLSerializer">
+        <doctype-public>-//Netscape Communications//DTD RSS 0.91//EN</doctype-public>
+        <doctype-system>http://my.netscape.com/publish/formats/rss-0.91.dtd</doctype-system>
+        <encoding>ISO-8859-1</encoding>
+      </map:serializer>
+    </map:serializers>
+  </map:components>
+
+  <map:pipelines>
+    <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:serialize type="rss091" />
+      </map:match>
+
+    </map:pipeline>
+  </map:pipelines>
+</map:sitemap>

Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/changes2document.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/changes2document.xsl?view=diff&r1=159612&r2=159613
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/changes2document.xsl (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/changes2document.xsl Thu Mar 31 08:24:57 2005
@@ -35,7 +35,7 @@
     <title>History of Changes</title>
    </header>
    <body>
-    <p><link href="changes.rss.xml"><img src="images/rss.png" alt="RSS"/></link></p>    
+    <p><link href="changes.rss"><img src="images/rss.png" alt="RSS"/></link></p>    
     <xsl:apply-templates/>
    </body>
   </document>

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=159612&r2=159613
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/status.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/status.xml Thu Mar 31 08:24:57 2005
@@ -26,12 +26,6 @@
   <changes>
     <!-- Add new releases here -->
     <release version="0.1" date="unreleased">
-      <action context="code" dev="open" type="update">
-        <p>Since input plugins can only respond to resource requests and **.xml
-        requests it has been necessary to change the URL for the RSS feed
-        of the recent changes to "changes.rss.xml"</p>
-        
-      </action>
       <action context="code" type="update" dev="rdg">
         Move ToDo and Changes pipelines to this plugin, from core.
       </action>