Including Prolog content in PDF output
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 2
- Joined: Thu Jan 09, 2020 3:34 am
Including Prolog content in PDF output
Post by SrTechWriter01 »
Is there a way to customize the out-of-the box DITA2 PDF transform so that the <Prolog> element can be included in PDF output?
I have heard this is possible and even fairly simple, but have not been able to find details.
I have heard this is possible and even fairly simple, but have not been able to find details.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Including Prolog content in PDF output
Hi,
There is an XSLT stylesheet which matches the DITA prolog element:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT3.x/plugins/org.dita.pdf2/xsl/fo/topic.xsl
As you see it does nothing by default. You could try to replace it with something like:
Ideally you should not modify directly the publishing stylesheet, you can create your own PDF customization plugin which overwrites a certain template from the base plugins:
https://www.oxygenxml.com/doc/versions/ ... _logo.html
Regards,
Radu
There is an XSLT stylesheet which matches the DITA prolog element:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT3.x/plugins/org.dita.pdf2/xsl/fo/topic.xsl
Code: Select all
<xsl:template match="*[contains(@class,' topic/prolog ')]"/>
Code: Select all
<xsl:template match="*[contains(@class,' topic/prolog ')]">
<fo:block xsl:use-attribute-sets="prolog">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
https://www.oxygenxml.com/doc/versions/ ... _logo.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Thu Jan 09, 2020 3:34 am
Re: Including Prolog content in PDF output
Post by SrTechWriter01 »
Thank you Radu!
I will try your suggestion and let you know how it goes.
I will try your suggestion and let you know how it goes.
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
Re: Including Prolog content in PDF output
Please also read:
https://www.oxygenxml.com/doc/versions/ ... aid-title5
You can extract the desired meta information using oxy_xpath and use it in the cover page, or in synthetic pages.
https://www.oxygenxml.com/doc/versions/ ... aid-title5
You can extract the desired meta information using oxy_xpath and use it in the cover page, or in synthetic pages.
Return to “DITA (Editing and Publishing DITA Content)”
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