DITA-OT PDF plugin notices

Here should go questions about transforming XML with XSLT and FOP.
SimonH
Posts: 19
Joined: Thu Mar 29, 2012 4:45 pm

DITA-OT PDF plugin notices

Post by SimonH » 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?

-Simon

radu_pisoi
Posts: 350
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: DITA-OT PDF plugin notices

Post by radu_pisoi » 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
http://www.oxygenxml.com

SimonH
Posts: 19
Joined: Thu Mar 29, 2012 4:45 pm

Re: DITA-OT PDF plugin notices

Post by SimonH » Thu Apr 28, 2016 3:59 pm

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

Cmarine
Posts: 4
Joined: Wed May 25, 2016 6:43 pm

Re: DITA-OT PDF plugin notices

Post by Cmarine » Wed May 25, 2016 6:45 pm

SimonH,

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

Thanks,

C

Post Reply