Rotate Text in Table Header
Posted: Sat Aug 12, 2023 12:08 am
Using the following code, I can rotate text in table body cells but not in table header cells. I am setting the attribute to in both cases.
and
XSL Code
Is there a setting elsewhere preventing the table header text from being rotated?
Regards
Tinmen
Code: Select all
rotate="1"
Code: Select all
<thead>
<row>
<entry rotate="1">Description</entry>
</row>
</thead>
Code: Select all
<tbody>
<row>
<entry rotate="1">Rotate this text.</entry>
</row>
</tbody>
Code: Select all
<xsl:template match="*[contains(@class, ' topic/thead ')]/*[contains(@class, ' topic/row ')]/*[contains(@class, ' topic/entry ')]" mode="rotateTableEntryContent">
<fo:block-container reference-orientation="-90" width="150px" height="80px">
<fo:block xsl:use-attribute-sets="thead.row.entry__content">
<xsl:apply-templates select="." mode="ancestor-start-flag"/>
<xsl:call-template name="processEntryContent"/>
<xsl:apply-templates select="." mode="ancestor-end-flag"/>
</fo:block>
</fo:block-container>
</xsl:template>
<xsl:template match="*[contains(@class, ' topic/tbody ')]/*[contains(@class, ' topic/row ')]/*[contains(@class, ' topic/entry ')]" mode="rotateTableEntryContent">
<fo:block-container reference-orientation="-90" width="120px" height="50px" margin-left="25%" white-space="nowrap">
<fo:block xsl:use-attribute-sets="tbody.row.entry__content">
<xsl:apply-templates select="." mode="ancestor-start-flag"/>
<xsl:call-template name="processEntryContent"/>
<xsl:apply-templates select="." mode="ancestor-end-flag"/>
</fo:block>
</fo:block-container>
</xsl:template>
Regards
Tinmen