If a colspec has a colname attribute, add it to the HTML col
authorBob Stayton <bobs@sagehill.net>
Thu, 3 Dec 2009 06:04:51 +0000 (06:04 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 3 Dec 2009 06:04:51 +0000 (06:04 +0000)
element as a class attribute so it can be styled.

xsl/html/table.xsl

index 50e679ec9dcfd331f9da57df78be184ca1f861bf..682cfe6cd29dade163624e490743f906727f7cd5 100644 (file)
                 <xsl:value-of select="$colspec/@char"/>
               </xsl:attribute>
             </xsl:if>
+            
             <xsl:if test="$colspec/@charoff">
               <xsl:attribute name="charoff">
                 <xsl:value-of select="$colspec/@charoff"/>
               </xsl:attribute>
             </xsl:if>
+
+            <xsl:if test="$colspec/@colname">
+              <xsl:attribute name="class">
+                <xsl:value-of select="$colspec/@colname"/>
+              </xsl:attribute>
+            </xsl:if>
           </col>
         </xsl:when>
         <xsl:otherwise>