I am trying to customize the pdf2 plugin in DITA OT. I want to apply small caps to the string "Chapter" and chapter number that appear at the start of every chapter.
What I did so far
In my custom plugin, I modified the following the __chapter__frontmatter__name__container
attribute-set in the static-content-attr.xsl file to include <xsl:attribute name="font-variant">small-caps</xsl:attribute>
:
<xsl:attribute-set name="__chapter__frontmatter__name__container">
<xsl:attribute name="font-size">14pt</xsl:attribute>
<xsl:attribute name="font-weight">none</xsl:attribute>
<xsl:attribute name="border-before-style">none</xsl:attribute>
<xsl:attribute name="border-after-style">none</xsl:attribute>
<xsl:attribute name="border-before-width">0pt</xsl:attribute>
<xsl:attribute name="border-after-width">0pt</xsl:attribute>
<xsl:attribute name="padding-top">10pt</xsl:attribute>
<xsl:attribute name="font-variant">small-caps</xsl:attribute>
</xsl:attribute-set>
Actual Result
small-caps is not applied to the string.
Expected Result
How can I make font-variant work in XSL FO?
XML Framework : DITA
Publishing Engine : DITA OT 3x
plugin : pdf2, apache fo.
question from:
https://stackoverflow.com/questions/66063729/how-to-apply-small-caps-to-a-string-via-xsl-fo 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…