forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r160143 - in forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo: resources/stylesheets/changes2document.xsl resources/stylesheets/todo2document.xsl status.xml
Date Tue, 05 Apr 2005 08:07:21 GMT
Author: crossley
Date: Tue Apr  5 01:07:20 2005
New Revision: 160143

URL: http://svn.apache.org/viewcvs?view=rev&rev=160143
Log:
Use the "title" attribute of "changes" and "todo" tags if it exists,
otherwise use the hard-coded values.
fixes-bug="FOR-455" due-to="Cyriaque Dupoirieux"

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

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=160142&r2=160143
==============================================================================
--- 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
Tue Apr  5 01:07:20 2005
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!--
-  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  Copyright 2002-2005 The Apache Software Foundation or its licensors,
   as applicable.
 
   Licensed under the Apache License, Version 2.0 (the "License");
@@ -32,7 +32,16 @@
  <xsl:template match="changes">
   <document>
    <header>
-    <title>History of Changes</title>
+    <title>
+    <xsl:choose>
+     <xsl:when test="@title!=''">
+       <xsl:value-of select="@title"/>
+     </xsl:when>
+     <xsl:otherwise>
+       <xsl:text>History of Changes</xsl:text>
+     </xsl:otherwise>
+    </xsl:choose>
+   </title>
    </header>
    <body>
     <p><link href="changes.rss"><img src="images/rss.png" alt="RSS"/></link></p>
   

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/todo2document.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/todo2document.xsl?view=diff&r1=160142&r2=160143
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/todo2document.xsl
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/todo2document.xsl
Tue Apr  5 01:07:20 2005
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!--
-  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  Copyright 2002-2005 The Apache Software Foundation or its licensors,
   as applicable.
 
   Licensed under the Apache License, Version 2.0 (the "License");
@@ -27,7 +27,16 @@
  <xsl:template match="todo">
   <document>
    <header>
-    <title>Todo List</title>
+    <title>
+    <xsl:choose>
+     <xsl:when test="@title!=''">
+       <xsl:value-of select="@title"/>
+     </xsl:when>
+     <xsl:otherwise>
+       <xsl:text>Todo List</xsl:text>
+     </xsl:otherwise>
+    </xsl:choose>
+    </title>
    </header>
    <body>
     <xsl:apply-templates/>

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=160142&r2=160143
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/status.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/status.xml Tue Apr  5 01:07:20
2005
@@ -26,6 +26,11 @@
   <changes>
     <!-- Add new releases here -->
     <release version="0.1" date="unreleased">
+      <action dev="DC" type="add" 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">
         Move ToDo and Changes pipelines to this plugin, from core.
       </action>



Mime
View raw message