diff options
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 34838a5177..e6d6838b7e 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -777,9 +777,27 @@ <xsl:template match="table" mode="embedded"><xsl:call-template name="inserttable"/></xsl:template> <!-- TABLECELL --> -<xsl:template match="tablecell"><td valign="top"><xsl:apply-templates /></td></xsl:template> +<xsl:template match="tablecell"> + <xsl:choose> + <xsl:when test="paragraph[@role='tablehead']"> + <td class='tableheadcell'><xsl:apply-templates /></td> + </xsl:when> + <xsl:otherwise> + <td><xsl:apply-templates /></td> + </xsl:otherwise> + </xsl:choose> +</xsl:template> <xsl:template match="tablecell" mode="icontable"><td valign="top"><xsl:apply-templates/></td></xsl:template> -<xsl:template match="tablecell" mode="embedded"><td valign="top"><xsl:apply-templates mode="embedded"/></td></xsl:template> +<xsl:template match="tablecell" mode="embedded"> + <xsl:choose> + <xsl:when test="paragraph[@role='tablehead']"> + <td class='tableheadcell'><xsl:apply-templates mode="embedded"/></td> + </xsl:when> + <xsl:otherwise> + <td><xsl:apply-templates mode="embedded"/></td> + </xsl:otherwise> + </xsl:choose> +</xsl:template> <!-- TABLEROW --> <xsl:template match="tablerow"><tr><xsl:apply-templates /></tr></xsl:template> |