You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2006/06/09 14:03:05 UTC
svn commit: r413022 -
/forrest/trunk/plugins/org.apache.forrest.plugin.input.projectInfo/resources/stylesheets/changes-to-document.xsl
Author: rgardler
Date: Fri Jun 9 05:03:04 2006
New Revision: 413022
URL: http://svn.apache.org/viewvc?rev=413022&view=rev
Log:
fine tune use of Meunchian method to ensure all contributors are listed
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=413022&r1=413021&r2=413022&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 Fri Jun 9 05:03:04 2006
@@ -41,7 +41,7 @@
<xsl:param name="bugtracking-url" select="$bugzilla"/>
<xsl:key name="contexts" match="changes/release/action" use="concat(../@version, '_', @context)"/>
- <xsl:key name="distinct-contributor" match="changes/release/action" use="@due-to"/>
+ <xsl:key name="distinct-contributor" match="changes/release/action" use="concat(../@version, '_', @due-to)"/>
<xsl:template match="/">
<xsl:apply-templates select="//changes"/>
@@ -135,11 +135,14 @@
contributions.</p>
<p>
- <xsl:for-each select="action[@due-to and count(. | key('distinct-contributor', @due-to)[1]) = 1 and not(@due-to='')]">
+ <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"/>
- <xsl:if test="not(position()=last())">
+ <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>