Creating TH for header rows
Description
Creating a TH tag for the header tags in table output.
What to override
Look for the following code in content.xsl:
<!-- Emit cell --> <!-- --> <html:td>
Replace with:
<!-- Determine table cell tag -->
<!-- -->
<xsl:variable name="VarCellTag">
<xsl:choose>
<xsl:when test="local-name($VarSection) = 'TableHead'">
<xsl:text>th</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>td</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Emit cell -->
<!-- -->
<xsl:element name="{$VarCellTag}" namespace="{$GlobalDefaultNamespace}">You would normally see the closing </html:td> tag, but since we are create extra XSL code you will close the element by using this tag </xsl:element>