]> granicus.if.org Git - docbook-dsssl/commitdiff
Abort if there's no @cols
authorNorman Walsh <ndw@nwalsh.com>
Thu, 8 Jan 2004 13:12:29 +0000 (13:12 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 8 Jan 2004 13:12:29 +0000 (13:12 +0000)
xsl/fo/table.xsl
xsl/html/table.xsl

index 500ea6314d1335646a9261a31a1ce9601185f59f..a0c99b65f10d92e3279b9d6d6123ec86defb2f12 100644 (file)
@@ -139,6 +139,12 @@ to be incomplete. Don't forget to read the source, too :-)</para>
 <!-- ==================================================================== -->
 
 <xsl:template match="tgroup" name="tgroup">
+  <xsl:if test="not(@cols)">
+    <xsl:message terminate="yes">
+      <xsl:text>Error: CALS tables must specify the number of columns.</xsl:text>
+    </xsl:message>
+  </xsl:if>
+
   <xsl:variable name="explicit.table.width">
     <xsl:call-template name="dbfo-attribute">
       <xsl:with-param name="pis"
index ab9d02090e4b8c45f50bbdaa8d017911b01d7ea9..60819bb0d92d89c653c735431e85f8c57234453c 100644 (file)
 <!-- ==================================================================== -->
 
 <xsl:template match="tgroup" name="tgroup">
+  <xsl:if test="not(@cols)">
+    <xsl:message terminate="yes">
+      <xsl:text>Error: CALS tables must specify the number of columns.</xsl:text>
+    </xsl:message>
+  </xsl:if>
+
   <xsl:variable name="summary">
     <xsl:call-template name="dbhtml-attribute">
       <xsl:with-param name="pis"