Screen tag cannot be customized in Oxygen 16
Posted: Sat May 24, 2014 6:03 pm
I've upgraded to Oxygen 16 from Oxygen 15.1 and my customization settings for the <screen> tag now no longer work for DITA PDF output.
I've customized the screen tag text for the font size, as well as added a border and changed the background colour, but none of it works now. Even if I strip everything back to the basic screen tag settings and change something simple, like the background colour, the customization doesn't work. I've tried changing it in the DITA-OT/plugins/org.dita.pdf2 directory and my Customization folder but in either case nothing works.
The DITA-OT attribute settings for screen are as follows:
Changing anything here has no effect on the finished PDF. For example, change the background color to red (ridiculous but easy to see):
I really can't see what the problem is as everything worked perfectly in 15.1.
I've customized the screen tag text for the font size, as well as added a border and changed the background colour, but none of it works now. Even if I strip everything back to the basic screen tag settings and change something simple, like the background colour, the customization doesn't work. I've tried changing it in the DITA-OT/plugins/org.dita.pdf2 directory and my Customization folder but in either case nothing works.
The DITA-OT attribute settings for screen are as follows:
Code: Select all
<xsl:attribute-set name="screen" use-attribute-sets="base-font">
<xsl:attribute name="space-before">1.2em</xsl:attribute>
<xsl:attribute name="space-after">0.8em</xsl:attribute>
<xsl:attribute name="white-space-treatment">preserve</xsl:attribute>
<xsl:attribute name="white-space-collapse">false</xsl:attribute>
<xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
<xsl:attribute name="background-color">#f0f0f0</xsl:attribute>
<xsl:attribute name="font-family">monospace</xsl:attribute>
<xsl:attribute name="line-height">106%</xsl:attribute>
</xsl:attribute-set>
Code: Select all
<xsl:attribute-set name="screen" use-attribute-sets="base-font">
<xsl:attribute name="space-before">1.2em</xsl:attribute>
<xsl:attribute name="space-after">0.8em</xsl:attribute>
<xsl:attribute name="white-space-treatment">preserve</xsl:attribute>
<xsl:attribute name="white-space-collapse">false</xsl:attribute>
<xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
<xsl:attribute name="background-color">red</xsl:attribute>
<xsl:attribute name="font-family">monospace</xsl:attribute>
<xsl:attribute name="line-height">106%</xsl:attribute>
</xsl:attribute-set>