forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r160775 - in forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo: input.xmap resources/stylesheets/changes2document.xsl resources/stylesheets/dotdots.xsl status.xml
Date Sun, 10 Apr 2005 14:06:30 GMT
Author: crossley
Date: Sun Apr 10 07:06:29 2005
New Revision: 160775

URL: http://svn.apache.org/viewcvs?view=rev&rev=160775
Log:
Enable changes.html and todo.html to also be in subdirectories.
Use relative location of images directory obtained via dotdots template.

Added:
    forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/dotdots.xsl
      - copied unchanged from r160752, forrest/trunk/main/webapp/skins/common/xslt/html/dotdots.xsl
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=160774&r2=160775
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/input.xmap (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/input.xmap Sun Apr 10 07:06:29
2005
@@ -33,7 +33,8 @@
         <map:generate type="file" src="{project:status}" />
         <map:transform src="resources/stylesheets/changes2document.xsl" >
           <map:parameter name="bugtracking-url" value="{defaults:bugtracking-url}"/>
-        </map:transform >
+          <map:parameter name="path" value="{1}{2}"/>
+        </map:transform>
         <map:serialize type="xml-document"/>
       </map:match>
 

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=160774&r2=160775
==============================================================================
--- 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
Sun Apr 10 07:06:29 2005
@@ -20,6 +20,16 @@
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     version="1.0"> 
 
+  <xsl:param name="path"/>
+  <xsl:include href="dotdots.xsl"/> <!-- FIXME: howto include from forrest core
-->
+
+  <!-- Calculate path to site root, eg '../../' -->
+  <xsl:variable name="root">
+    <xsl:call-template name="dotdots">
+      <xsl:with-param name="path" select="$path"/>
+    </xsl:call-template>
+  </xsl:variable>
+
  <!-- FIXME (JJP):  bugzilla is hardwired -->
  <xsl:variable name="bugzilla" select="'http://issues.apache.org/bugzilla/buglist.cgi?bug_id='"/>
 
@@ -44,7 +54,7 @@
    </title>
    </header>
    <body>
-    <p><link href="changes.rss"><img src="images/rss.png" alt="RSS"/></link></p>
   
+    <p><link href="changes.rss"><img src="{$root}images/rss.png" alt="RSS"/></link></p>
   
     <xsl:apply-templates/>
    </body>
   </document>
@@ -67,7 +77,7 @@
 
  <xsl:template match="action">
   <li>
-   <icon src="images/{@type}.jpg" alt="{@type}"/>
+   <icon src="{$root}images/{@type}.jpg" alt="{@type}"/>
    <xsl:apply-templates/>
    <xsl:text>(</xsl:text><xsl:value-of select="@dev"/><xsl:text>)</xsl:text>
 

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=160774&r2=160775
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/status.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/status.xml Sun Apr 10 07:06:29
2005
@@ -25,6 +25,13 @@
   <changes>
     <!-- Add new releases here -->
     <release version="0.1" date="unreleased">
+      <action context="xsl" type="fix" dev="DC">
+        Use relative location of images directory.
+      </action>
+      <action dev="DC" type="add" context="xmap">
+       Added better sitemap match using regexp to deal
+       with sub-directories too.
+      </action>
       <action context="code" type="fix" dev="DC">
         Replace use of document() function in changes2rss.xml with
         sitemap aggregation.



Mime
View raw message