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 2006/06/10 09:36:34 UTC
svn commit: r413263 -
/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes-to-document.xsl
Author: crossley
Date: Sat Jun 10 00:36:33 2006
New Revision: 413263
URL: http://svn.apache.org/viewvc?rev=413263&view=rev
Log:
includeContributorList=true will show the Contributors section and list of committers.
If there are also contributors (action/@due-to) then list them too.
Modified:
forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes-to-document.xsl
Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes-to-document.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes-to-document.xsl?rev=413263&r1=413262&r2=413263&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes-to-document.xsl (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes-to-document.xsl Sat Jun 10 00:36:33 2006
@@ -144,7 +144,7 @@
</ul>
</section>
</xsl:for-each>
- <xsl:if test="$projectInfo.changes.includeContributorList = 'true' and action[@due-to]">
+ <xsl:if test="$projectInfo.changes.includeContributorList = 'true'">
<section>
<title>Contributors to this release</title>
<p>We thank the following people for their contributions to this release.</p>
@@ -163,20 +163,22 @@
</xsl:if>
</xsl:for-each>
</p>
- <p>This is a list of other contributors:<br/>
- <xsl:for-each select="action[generate-id()=generate-id(key('distinct-contributor', concat(../@version, '_', @due-to)))]">
- <xsl:sort select="@due-to"/>
- <xsl:value-of select="@due-to"/>
- <!-- FIXME: There must be an extra node here from the entries
- that do not have @due-to. Workaround is to skip position #1 -->
- <xsl:if test="not(position()=1) and not(position()=last())">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <xsl:if test="position()=last()">
- <xsl:text>.</xsl:text>
- </xsl:if>
- </xsl:for-each>
- </p>
+ <xsl:if test="action[@due-to]">
+ <p>This is a list of other contributors:<br/>
+ <xsl:for-each select="action[generate-id()=generate-id(key('distinct-contributor', concat(../@version, '_', @due-to)))]">
+ <xsl:sort select="@due-to"/>
+ <xsl:value-of select="@due-to"/>
+ <!-- FIXME: There must be an extra node here from the entries
+ that do not have @due-to. Workaround is to skip position #1 -->
+ <xsl:if test="not(position()=1) and not(position()=last())">
+ <xsl:text>, </xsl:text>
+ </xsl:if>
+ <xsl:if test="position()=last()">
+ <xsl:text>.</xsl:text>
+ </xsl:if>
+ </xsl:for-each>
+ </p>
+ </xsl:if>
</section>
</xsl:if>
</section>