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/07/02 04:04:13 UTC
svn commit: r208815 - in
/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo:
resources/stylesheets/changes2document.xsl
resources/stylesheets/releaseNotes2document.xsl status.xml
Author: crossley
Date: Fri Jul 1 19:04:12 2005
New Revision: 208815
URL: http://svn.apache.org/viewcvs?rev=208815&view=rev
Log:
Use the value "current" for the releaseNotes_* URI or specify a version number.
Submitted by: Cyriaque Dupoirieux
Issue: FOR-564 "... what's new for the latest release"
Modified:
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes2document.xsl
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/releaseNotes2document.xsl
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml
Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes2document.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes2document.xsl?rev=208815&r1=208814&r2=208815&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes2document.xsl (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes2document.xsl Fri Jul 1 19:04:12 2005
@@ -59,7 +59,14 @@
<p><link href="changes.rss"><img src="{$root}images/rss.png" alt="RSS"/></link></p>
<xsl:choose>
<xsl:when test="$versionNumber">
- <xsl:apply-templates select="release[@version=$versionNumber]"/>
+ <xsl:choose>
+ <xsl:when test="$versionNumber='current'">
+ <xsl:apply-templates select="//release[1]"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="//release[@version=$versionNumber]"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/releaseNotes2document.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/releaseNotes2document.xsl?rev=208815&r1=208814&r2=208815&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/releaseNotes2document.xsl (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/releaseNotes2document.xsl Fri Jul 1 19:04:12 2005
@@ -30,6 +30,18 @@
</xsl:call-template>
</xsl:variable>
+ <!-- versionNumber: detect the value "current" or use the number that was supplied -->
+ <xsl:variable name="realVersionNumber">
+ <xsl:choose>
+ <xsl:when test="$versionNumber='current'">
+ <xsl:value-of select="//release[1]/@version"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$versionNumber"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
<!-- FIXME (JJP): bugzilla is hardwired -->
<xsl:variable name="bugzilla" select="'http://issues.apache.org/bugzilla/buglist.cgi?bug_id='"/>
@@ -54,17 +66,17 @@
</title>
</header>
<body>
- <xsl:if test="contains($versionNumber, 'dev')">
- <warning>Version <xsl:value-of select="$versionNumber"/> is a development release,
+ <xsl:if test="contains($realVersionNumber, 'dev')">
+ <warning>Version <xsl:value-of select="$realVersionNumber"/> is a development release,
these notes are therefore not complete, they are intended to be an indicator
of the major features that are so far included in this version.</warning>
</xsl:if>
- <xsl:if test="release[@version=$versionNumber]/notes">
- <xsl:apply-templates select="release[@version=$versionNumber]/notes"/>
+ <xsl:if test="release[@version=$realVersionNumber]/notes">
+ <xsl:apply-templates select="release[@version=$realVersionNumber]/notes"/>
</xsl:if>
- <xsl:apply-templates select="release[@version=$versionNumber]"/>
+ <xsl:apply-templates select="release[@version=$realVersionNumber]"/>
</body>
</document>
</xsl:template>
Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml?rev=208815&r1=208814&r2=208815&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/status.xml Fri Jul 1 19:04:12 2005
@@ -46,6 +46,10 @@
<p>In fact, we have already extended the functionality in a couple of important
ways. See the changelog for more details.</p>
</notes>
+ <action dev="DC" type="fix" context="code"
+ fixes-bug="FOR-564" due-to="Cyriaque Dupoirieux">
+ Use the value "current" for the releaseNotes_* URI or specify a version number.
+ </action>
<action context="docs" type="add" dev="RDG" importance="high">
Basic documentation on how to create release notes are now included on the
plugins documentation index page.