Specify style of draft comments in DITA to PDF output

Post here questions and problems related to editing and publishing DITA content.
rheath
Posts: 2
Joined: Fri Jul 22, 2016 12:04 am

Specify style of draft comments in DITA to PDF output

Post by rheath »

I'd like to change the color of draft comments in PDF output from DITA source files. The default colors are red text on pink background. The combination make the text difficult to read, let alone stomach.

Would someone point me to the CSS file that controls the style of <draft-comment> tags in PDF output?
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Specify style of draft comments in DITA to PDF output

Post by Radu »

Hi,

The default PDF publishing is based on XSL-FO, so it is not CSS based.
If you look in the XSLT stylesheet:

OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT2.x/plugins/org.dita.pdf2/cfg/fo/attrs/commons-attr.xsl

it defines at some point an attribute set:

Code: Select all

    <xsl:attribute-set name="draft-comment" use-attribute-sets="common.border">
<xsl:attribute name="background-color">#FF99FF</xsl:attribute>
<xsl:attribute name="color">#CC3333</xsl:attribute>
</xsl:attribute-set>
Usually a PDF XSLT customization is done not by directly modifying the XSLT stylesheet but by creating a PDF customization folder:
http://oxygenxml.com/doc/versions/18/ug ... ation.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply