]> granicus.if.org Git - docbook-dsssl/commitdiff
Add support for default.table.frame parameter.
authorBob Stayton <bobs@sagehill.net>
Mon, 26 Feb 2007 08:31:32 +0000 (08:31 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 26 Feb 2007 08:31:32 +0000 (08:31 +0000)
Fix bug 1575446 rowsep last check for @morerows.

xsl/fo/table.xsl

index 8ea5501be4be522b0d0349e9c4bfed04fed58fde..fcd1ec50c8760db5486fbce2968f254b4900b8b2 100644 (file)
@@ -290,6 +290,9 @@ to be incomplete. Don't forget to read the source, too :-)</para>
       <xsl:when test="../@frame">
         <xsl:value-of select="../@frame"/>
       </xsl:when>
+      <xsl:when test="$default.table.frame != ''">
+        <xsl:value-of select="$default.table.frame"/>
+      </xsl:when>
       <xsl:otherwise>all</xsl:otherwise>
     </xsl:choose>
   </xsl:variable>
@@ -811,6 +814,13 @@ to be incomplete. Don't forget to read the source, too :-)</para>
                           or ancestor-or-self::tbody/preceding-sibling::tfoot)">
         <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)">
+        <xsl:value-of select="0"/>
+      </xsl:when>
       <xsl:otherwise>
         <xsl:call-template name="inherited.table.attribute">
           <xsl:with-param name="entry" select="."/>