DITA-OT PDF plugin notices
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 19
- Joined: Thu Mar 29, 2012 4:45 pm
DITA-OT PDF plugin notices
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
What would be a good/easy way to modify the OT to output force the notices in a smaller 6pt font?
-Simon
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: DITA-OT PDF plugin notices
Post by radu_pisoi »
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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service