From: Robert S. <bob...@us...> - 2005-03-08 09:02:52
|
Update of /cvsroot/docbook/xsl/html In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26604 Modified Files: block.xsl titlepage.xsl Log Message: Fixed bug 1123291: more than one authorinitials in revhistory. Index: block.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/block.xsl,v retrieving revision 1.20 retrieving revision 1.21 diff -u -U2 -r1.20 -r1.21 --- block.xsl 25 May 2004 10:37:09 -0000 1.20 +++ block.xsl 8 Mar 2005 09:02:41 -0000 1.21 @@ -342,8 +342,8 @@ <xsl:template match="revhistory/revision"> - <xsl:variable name="revnumber" select=".//revnumber"/> - <xsl:variable name="revdate" select=".//date"/> - <xsl:variable name="revauthor" select=".//authorinitials"/> - <xsl:variable name="revremark" select=".//revremark|.//revdescription"/> + <xsl:variable name="revnumber" select="revnumber"/> + <xsl:variable name="revdate" select="date"/> + <xsl:variable name="revauthor" select="authorinitials"/> + <xsl:variable name="revremark" select="revremark|revdescription"/> <tr> <td align="left"> @@ -369,5 +369,10 @@ <xsl:otherwise> <td align="left"> - <xsl:apply-templates select="$revauthor"/> + <xsl:for-each select="$revauthor"> + <xsl:apply-templates select="."/> + <xsl:if test="position() != last()"> + <xsl:text>, </xsl:text> + </xsl:if> + </xsl:for-each> </td> </xsl:otherwise> Index: titlepage.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/titlepage.xsl,v retrieving revision 1.30 retrieving revision 1.31 diff -u -U2 -r1.30 -r1.31 --- titlepage.xsl 13 Aug 2004 07:35:36 -0000 1.30 +++ titlepage.xsl 8 Mar 2005 09:02:41 -0000 1.31 @@ -672,8 +672,8 @@ <xsl:template match="revhistory/revision" mode="titlepage.mode"> <xsl:param name="numcols" select="'3'"/> - <xsl:variable name="revnumber" select=".//revnumber"/> - <xsl:variable name="revdate" select=".//date"/> - <xsl:variable name="revauthor" select=".//authorinitials"/> - <xsl:variable name="revremark" select=".//revremark|.//revdescription"/> + <xsl:variable name="revnumber" select="revnumber"/> + <xsl:variable name="revdate" select="date"/> + <xsl:variable name="revauthor" select="authorinitials"/> + <xsl:variable name="revremark" select="revremark|revdescription"/> <tr> <td align="left"> @@ -692,5 +692,10 @@ <xsl:when test="$revauthor"> <td align="left"> - <xsl:apply-templates select="$revauthor[1]" mode="titlepage.mode"/> + <xsl:for-each select="$revauthor"> + <xsl:apply-templates select="." mode="titlepage.mode"/> + <xsl:if test="position() != last()"> + <xsl:text>, </xsl:text> + </xsl:if> + </xsl:for-each> </td> </xsl:when> |