]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug #2574111 (missing rowsep border between tgroups in one table).
authorMauritz Jeanson <mj@johanneberg.com>
Sun, 15 Feb 2009 12:56:43 +0000 (12:56 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Sun, 15 Feb 2009 12:56:43 +0000 (12:56 +0000)
xsl/fo/table.xsl

index 705dedc5e19d579d5b4194caf764d918658dc908..d8613bc24ba5204a14a5804f7fa69506e8932829 100644 (file)
 
   <xsl:variable name="rowsep">
     <xsl:choose>
-      <!-- If this is the last row, rowsep never applies. -->
+      <!-- If this is the last row, rowsep never applies (except when 
+          the ancestor tgroup has a following sibling tgroup) -->
       <xsl:when test="not(ancestor-or-self::row[1]/following-sibling::row
                           or ancestor-or-self::thead/following-sibling::tbody
-                          or ancestor-or-self::tbody/preceding-sibling::tfoot)">
+                          or ancestor-or-self::tbody/preceding-sibling::tfoot)
+                         and not(ancestor::tgroup/following-sibling::tgroup)">
         <xsl:value-of select="0"/>
       </xsl:when>
       <xsl:otherwise>
 
   <xsl:variable name="rowsep">
     <xsl:choose>
-      <!-- If this is the last row, rowsep never applies. -->
+      <!-- If this is the last row, rowsep never applies (except when 
+          the ancestor tgroup has a following sibling tgroup) -->
       <xsl:when test="not(ancestor-or-self::row[1]/following-sibling::row
                           or ancestor-or-self::thead/following-sibling::tbody
-                          or ancestor-or-self::tbody/preceding-sibling::tfoot)">
+                          or ancestor-or-self::tbody/preceding-sibling::tfoot)
+                         and not(ancestor::tgroup/following-sibling::tgroup)">
         <xsl:value-of select="0"/>
       </xsl:when>
       <!-- Check for morerows too -->
       <xsl:when test="(@morerows and count(ancestor-or-self::row[1]/
                        following-sibling::row) = @morerows )
                       and not (ancestor-or-self::thead/following-sibling::tbody
-                       or ancestor-or-self::tbody/preceding-sibling::tfoot)">
+                       or ancestor-or-self::tbody/preceding-sibling::tfoot)
+                      and not(ancestor::tgroup/following-sibling::tgroup)">
         <xsl:value-of select="0"/>
       </xsl:when>
+
       <xsl:otherwise>
         <xsl:call-template name="inherited.table.attribute">
           <xsl:with-param name="entry" select="."/>