]> granicus.if.org Git - docbook-dsssl/commitdiff
Modified declaration of the "col" parameter in the template with
authorMauritz Jeanson <mj@johanneberg.com>
Thu, 25 Sep 2008 16:55:09 +0000 (16:55 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Thu, 25 Sep 2008 16:55:09 +0000 (16:55 +0000)
match="entry|entrytbl". This is a workaround for bug #1816373.
The parameter was reset to 1 for cells with @revisionflag when
using changebars.xsl, which resulted in malformed output.

xsl/html/table.xsl

index c1905713d293f02f77285ed942ab37706e45c59c..ab8f3c5cfea135743ba4f57c827abaa60ee4f773 100644 (file)
 </xsl:template>
 
 <xsl:template match="entry|entrytbl" name="entry">
-  <xsl:param name="col" select="1"/>
+  <xsl:param name="col">
+    <xsl:choose>
+      <xsl:when test="@revisionflag">
+       <xsl:number from="row"/>
+      </xsl:when>
+      <xsl:otherwise>1</xsl:otherwise>
+    </xsl:choose>
+  </xsl:param>
+
   <xsl:param name="spans"/>
 
   <xsl:variable name="cellgi">