]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug in handling of columns width sum.
authorBob Stayton <bobs@sagehill.net>
Mon, 23 Apr 2007 05:55:02 +0000 (05:55 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 23 Apr 2007 05:55:02 +0000 (05:55 +0000)
xsl/fo/table.xsl

index 628d995dee8f91ec1ecd9f70cc9dc3031b92f13c..ba79f81569b7533ca0f6724aef0cd8cb969a40c9 100644 (file)
@@ -559,9 +559,9 @@ to be incomplete. Don't forget to read the source, too :-)</para>
   <xsl:variable name="column.sum">
     <xsl:choose>
       <!-- CALS table -->
-      <xsl:when test="tgroup[1][@cols]">
-        <xsl:if test="count(tgroup[1]/colspec) = tgroup/@cols">
-          <xsl:for-each select="tgroup[1]/colspec">
+      <xsl:when test="@cols">
+        <xsl:if test="count(colspec) = @cols">
+          <xsl:for-each select="colspec">
             <xsl:if test="position() != 1">
               <xsl:text> + </xsl:text>
             </xsl:if>