<xsl:include href="xref.xsl"/>
<xsl:include href="formal.xsl"/>
<xsl:include href="table.xsl"/>
+<xsl:include href="htmltbl.xsl"/>
<xsl:include href="sections.xsl"/>
<xsl:include href="inline.xsl"/>
<xsl:include href="footnote.xsl"/>
</xsl:template>
<xsl:template name="calsTable">
+ <xsl:if test="tgroup/tbody/tr
+ |tgroup/thead/tr
+ |tgroup/tfoot/tr">
+ <xsl:message terminate="yes">Broken table: tr descendent of CALS Table.</xsl:message>
+ </xsl:if>
+
<xsl:variable name="param.placement"
select="substring-after(normalize-space($formal.title.placement),
concat(local-name(.), ' '))"/>
</xsl:template>
<xsl:template name="htmlTable">
+ <xsl:if test="tgroup/tbody/row
+ |tgroup/thead/row
+ |tgroup/tfoot/row">
+ <xsl:message terminate="yes">Broken table: row descendent of HTML table.</xsl:message>
+ </xsl:if>
+
<xsl:apply-templates mode="htmlTable"/>
</xsl:template>
--- /dev/null
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+<xsl:template match="colgroup" mode="htmlTable">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates mode="htmlTable"/>
+ </xsl:copy>
+</xsl:template>
+
+<xsl:template match="col" mode="htmlTable">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ </xsl:copy>
+</xsl:template>
+
+<xsl:template match="caption" mode="htmlTable">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+
+ <xsl:apply-templates select=".." mode="object.title.markup">
+ <xsl:with-param name="allow-anchors" select="1"/>
+ </xsl:apply-templates>
+
+ </xsl:copy>
+</xsl:template>
+
+<xsl:template match="thead|tbody|tgroup|tr" mode="htmlTable">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates mode="htmlTable"/>
+ </xsl:copy>
+</xsl:template>
+
+<xsl:template match="th|td" mode="htmlTable">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates/> <!-- *not* mode=htmlTable -->
+ </xsl:copy>
+</xsl:template>
+
+</xsl:stylesheet>
-->
</xsl:template>
-<!-- ====================================================================== -->
-<!-- HTML Tables -->
-
-<xsl:template match="colgroup" mode="htmlTable">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="htmlTable"/>
- </xsl:copy>
-</xsl:template>
-
-<xsl:template match="col" mode="htmlTable">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- </xsl:copy>
-</xsl:template>
-
-<xsl:template match="caption" mode="htmlTable">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
-
- <xsl:apply-templates select=".." mode="object.title.markup">
- <xsl:with-param name="allow-anchors" select="1"/>
- </xsl:apply-templates>
-
- </xsl:copy>
-</xsl:template>
-
-<xsl:template match="thead|tbody|tgroup|tr" mode="htmlTable">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="htmlTable"/>
- </xsl:copy>
-</xsl:template>
-
-<xsl:template match="th|td" mode="htmlTable">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/> <!-- *not* mode=htmlTable -->
- </xsl:copy>
-</xsl:template>
-
</xsl:stylesheet>