]> granicus.if.org Git - docbook-dsssl/commitdiff
Add template for tfoot
authorNorman Walsh <ndw@nwalsh.com>
Mon, 16 Jul 2001 14:32:37 +0000 (14:32 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Mon, 16 Jul 2001 14:32:37 +0000 (14:32 +0000)
xsl/fo/table.xsl

index a0e5722e51b954399891e070d02f0fd34e8ebfd4..72cc0382bb7f42dc76b0c8fc64b6fa91978b4175 100644 (file)
@@ -187,6 +187,30 @@ to be incomplete. Don't forget to read the source, too :-)</para>
   </fo:table-header>
 </xsl:template>
 
+<xsl:template match="tfoot">
+  <xsl:variable name="tgroup" select="parent::*"/>
+  <xsl:variable name="frame" select="$tgroup/parent::*/@frame"/>
+
+  <fo:table-footer>
+    <xsl:choose>
+      <xsl:when test="$frame='topbot' or $frame='top'">
+        <xsl:call-template name="border">
+          <xsl:with-param name="side" select="'top'"/>
+        </xsl:call-template>
+      </xsl:when>
+      <xsl:when test="$frame='sides'">
+        <xsl:call-template name="border">
+          <xsl:with-param name="side" select="'left'"/>
+        </xsl:call-template>
+        <xsl:call-template name="border">
+          <xsl:with-param name="side" select="'right'"/>
+        </xsl:call-template>
+      </xsl:when>
+    </xsl:choose>
+    <xsl:apply-templates/>
+  </fo:table-footer>
+</xsl:template>
+
 <xsl:template match="tbody">
   <xsl:variable name="tgroup" select="parent::*"/>
   <xsl:variable name="frame" select="$tgroup/parent::*/@frame"/>