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
DITA-OT PDF plugin notices
-
- Posts: 384
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: DITA-OT PDF plugin notices
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.
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Re: DITA-OT PDF plugin notices
Thanks for your response. I hacked something together so it does what I want.
Re: DITA-OT PDF plugin notices
SimonH,
Can you post what you figured out? I have a similar issue with notices.
Thanks,
C
Can you post what you figured out? I have a similar issue with notices.
Thanks,
C