forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: rev 36216 - in forrest/trunk/src/core/context: . resources/stylesheets
Date Wed, 11 Aug 2004 10:32:42 GMT
Author: crossley
Date: Wed Aug 11 03:32:39 2004
New Revision: 36216

Modified:
   forrest/trunk/src/core/context/resources/stylesheets/changes2rss.xsl
   forrest/trunk/src/core/context/status.xmap
Log:
Was using a hard-coded path for skinconf.xml and anyway the path was incorrect.


Modified: forrest/trunk/src/core/context/resources/stylesheets/changes2rss.xsl
==============================================================================
--- forrest/trunk/src/core/context/resources/stylesheets/changes2rss.xsl	(original)
+++ forrest/trunk/src/core/context/resources/stylesheets/changes2rss.xsl	Wed Aug 11 03:32:39
2004
@@ -16,13 +16,13 @@
 -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-  <xsl:param name="config-file" select="'../../skinconf.xml'"/>
+  <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($config/project-url, 'changes.html')"/>
 
     <rss version="0.91">
       <channel>

Modified: forrest/trunk/src/core/context/status.xmap
==============================================================================
--- forrest/trunk/src/core/context/status.xmap	(original)
+++ forrest/trunk/src/core/context/status.xmap	Wed Aug 11 03:32:39 2004
@@ -57,7 +57,9 @@
 
       <map:match pattern="changes.rss">
         <map:generate src="{project:status}" />
-        <map:transform src="{forrest:stylesheets}/changes2rss.xsl" />
+        <map:transform src="{forrest:stylesheets}/changes2rss.xsl">
+          <map:parameter name="config-file" value="{project:skinconf}"/>
+        </map:transform>      
         <map:serialize type="rss091" />
       </map:match>
 

Mime
View raw message