]> granicus.if.org Git - docbook-dsssl/commitdiff
Add colgroup around bare col element in variablelist table to
authorBob Stayton <bobs@sagehill.net>
Mon, 30 Jan 2012 18:01:09 +0000 (18:01 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 30 Jan 2012 18:01:09 +0000 (18:01 +0000)
conform to html5.

xsl/html/lists.xsl

index 0afbee302e5233470d9f141718eb6e8c7490828b..90c47b8628275b08912a68f428e8be337d80d4d1 100644 (file)
           <xsl:call-template name="generate.class.attribute">
             <xsl:with-param name="class" select="$default.class"/>
           </xsl:call-template>
-          <col align="{$direction.align.start}" valign="top"/>
+          <colgroup>
+            <col align="{$direction.align.start}" valign="top"/>
+          </colgroup>
           <tbody>
             <xsl:apply-templates 
                 mode="orderedlist-table"
               <xsl:value-of select="$table-summary"/>
             </xsl:attribute>
           </xsl:if>
-          <col align="{$direction.align.start}" valign="top">
-            <xsl:if test="$term-width != ''">
-              <xsl:attribute name="width">
-                <xsl:value-of select="$term-width"/>
-              </xsl:attribute>
-            </xsl:if>
-          </col>
+          <colgroup>
+            <col align="{$direction.align.start}" valign="top">
+              <xsl:if test="$term-width != ''">
+                <xsl:attribute name="width">
+                  <xsl:value-of select="$term-width"/>
+                </xsl:attribute>
+              </xsl:if>
+            </col>
+          </colgroup>
           <tbody>
             <xsl:apply-templates mode="varlist-table"
               select="varlistentry