DITA-OT PDF plugin notices

Here should go questions about transforming XML with XSLT and FOP.
Posts: 19

DITA-OT PDF plugin notices

Mon Apr 25, 2016 10:43 am

I've added a notices section to a DITA bookmap. The notices refers to a concept topic that contains copyright and trademark information. On PDF output I would like the text to be styled in a smaller font-size. However, it gets all the default sizes that any other topic would as expected. I tried putting the font-size in the page definition etc. or font-size="60%" but this is overridden when the conbody and lower elements are output.

What would be a good/easy way to modify the OT to output force the notices in a smaller 6pt font?

Posts: 336
Location: Craiova

Re: DITA-OT PDF plugin notices

Mon Apr 25, 2016 3:40 pm

Hi Simon,

I am affraid that there is no easy way to modify the font size for the DITA 'notices' or topics that are child of the 'notices' topic.

In your case, you need to override some XSLT templates that generate the XSL-FO for the 'notices' topic.

To modify the font size for notices, you should override the 'processTopicNotices' XSLT template and set the 'font-size' property for an 'fo:block'.
The 'processTopicNotices' template is defined in [oXygenInstallDir]/frameworks/dita/DITA-OT2.x/plugins/org.dita.pdf2/xsl/fo/commons.xsl.

However, this customization will not impose the font size for all Notices topic's children. For this, you should override the specific XSLT templates and check the type of parent topic (if it is a 'Notices') and set your custom font size.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
Posts: 19

Re: DITA-OT PDF plugin notices

Thu Apr 28, 2016 3:59 pm

Thanks for your response. I hacked something together so it does what I want.
Posts: 4

Re: DITA-OT PDF plugin notices

Wed May 25, 2016 6:45 pm


Can you post what you figured out? I have a similar issue with notices.



Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests