From ead0dbca8c94b25b15e6d9ead3de6589be93f022 Mon Sep 17 00:00:00 2001
From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 3 May 2001 21:27:04 +0000
Subject: [PATCH] Process head/body/foot in the right order

---
 xsl/fo/table.xsl   | 4 +++-
 xsl/html/table.xsl | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/xsl/fo/table.xsl b/xsl/fo/table.xsl
index 6b1790a8a..2db447af5 100644
--- a/xsl/fo/table.xsl
+++ b/xsl/fo/table.xsl
@@ -154,7 +154,9 @@ to be incomplete. Don't forget to read the source, too :-)</para>
     </xsl:otherwise>
   </xsl:choose>
 
-  <xsl:apply-templates/>
+  <xsl:apply-templates select="thead"/>
+  <xsl:apply-templates select="tbody"/>
+  <xsl:apply-templates select="tfoot"/>
 </xsl:template>
 
 <xsl:template match="colspec"></xsl:template>
diff --git a/xsl/html/table.xsl b/xsl/html/table.xsl
index d76fe3acc..627cc19dd 100644
--- a/xsl/html/table.xsl
+++ b/xsl/html/table.xsl
@@ -165,7 +165,9 @@
       </xsl:otherwise>
     </xsl:choose>
 
-    <xsl:apply-templates/>
+    <xsl:apply-templates select="thead"/>
+    <xsl:apply-templates select="tbody"/>
+    <xsl:apply-templates select="tfoot"/>
 
     <xsl:if test=".//footnote">
       <tr>
-- 
2.40.0