From: Robert S. <bob...@us...> - 2004-04-12 02:53:24
|
Update of /cvsroot/docbook/xsl/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18191 Modified Files: table.xsl Log Message: Fixed bug #880044 in which rowsep or colsep attributes on the table or informaltable element had no effect. Index: table.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/common/table.xsl,v retrieving revision 1.14 retrieving revision 1.15 diff -u -U2 -r1.14 -r1.15 --- table.xsl 30 Nov 2003 19:45:09 -0000 1.14 +++ table.xsl 12 Apr 2004 02:39:39 -0000 1.15 @@ -249,4 +249,7 @@ <xsl:variable name="tgroup" select="$row/ancestor::tgroup[1]"/> + <xsl:variable name="table" select="($tgroup/ancestor::table + |$tgroup/ancestor::informaltable)[1]"/> + <xsl:variable name="entry.value"> <xsl:call-template name="get-attribute"> @@ -326,4 +329,11 @@ </xsl:variable> + <xsl:variable name="table.value"> + <xsl:call-template name="get-attribute"> + <xsl:with-param name="element" select="$table"/> + <xsl:with-param name="attribute" select="$attribute"/> + </xsl:call-template> + </xsl:variable> + <xsl:variable name="default.value"> <!-- This section used to say that rowsep and colsep have defaults based --> @@ -348,4 +358,10 @@ <xsl:value-of select="$row.value"/> </xsl:when> + <xsl:when test="$tgroup.value != ''"> + <xsl:value-of select="$tgroup.value"/> + </xsl:when> + <xsl:when test="$table.value != ''"> + <xsl:value-of select="$table.value"/> + </xsl:when> <xsl:when test="$span.value != ''"> <xsl:value-of select="$span.value"/> |