Rotate Text in Table Header
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 21
- Joined: Wed Jun 28, 2023 11:49 pm
Rotate Text in Table Header
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
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service