DITA CUSTOMIZE PDF EXPLICATION
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 46
- Joined: Mon Aug 22, 2011 3:53 pm
DITA CUSTOMIZE PDF EXPLICATION
Hi,
I would like to understand how ditaOT
I changed the file en.xml I copied before modification in Customization and the result is correct.
Now I copy the file cfg/fo/attrs/front-matter-attr.xsl in Customization/fo/attrs, I make changes to display the first page, the result is not OK (no change)
. If I change the file cfg/fo/attrs/front-matter-attr.xsl, the change is OK ?
Why file Customization/fo/attrs/front-matter-attr.xsl is not considered
File catalog.xml in Customization :
An other question : why in file catalog.xml when i use common i must indicate / (cfg:/common/) while for fo i not indicate / (cfg:fo/) ?
Thank you for help
I would like to understand how ditaOT
I changed the file en.xml I copied before modification in Customization and the result is correct.
Now I copy the file cfg/fo/attrs/front-matter-attr.xsl in Customization/fo/attrs, I make changes to display the first page, the result is not OK (no change)

Why file Customization/fo/attrs/front-matter-attr.xsl is not considered
File catalog.xml in Customization :
Code: Select all
<uri name="cfg:/common/vars/en.xml" uri="common/vars/en.xml"/>
<uri name="cfg:fo/attrs/front-matter-attr.xsl" uri="fo/attrs/front-matter-attr.xsl"/>
Thank you for help
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: DITA CUSTOMIZE PDF EXPLICATION
Post by sorin_ristache »
Hi,
The README.txt file from directory [Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\Customization explains the possible customizations for the DITA PDF transformations:
Regards,
Sorin
The README.txt file from directory [Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\Customization explains the possible customizations for the DITA PDF transformations:
It says nothing about adding any lines in catalog.xml like:Things you can currently override include:
- Custom XSL via fo/xsl/custom.xsl, xhtml/xsl/custom.xsl and fo/attrs/custom.xsl
- Font overrides via fo/font-mappings.xml
- Per-locale variable overrides via common/vars/[locale].xml
- I18N configuration via fo/i18n/[locale].xml
- Index configuration via fo/index/[locale].xml
When customizing any of these areas, modify the relevant file(s) in fo/Customization. Then, to enable the changes in the publishing process, you find the corresponding entry for each file you modified in fo/Customization/catalog.xml. It should look like this:
<!--uri name="cfg:fo/attrs/custom.xsl" uri="fo/attrs/custom.xsl"/-->
Remove the comment markers "!--" and "--" to enable the change:
<uri name="cfg:fo/attrs/custom.xsl" uri="fo/attrs/custom.xsl"/>
Your customization should now be enabled as part of the publishing process.
You are allowed only to uncomment the lines that are commented in catalog.xml.<uri name="cfg:/common/vars/en.xml" uri="common/vars/en.xml"/>
<uri name="cfg:fo/attrs/front-matter-attr.xsl" uri="fo/attrs/front-matter-attr.xsl"/>
Regards,
Sorin
-
- Posts: 46
- Joined: Mon Aug 22, 2011 3:53 pm
Re: DITA CUSTOMIZE PDF EXPLICATION
thank you for response.
I search format of en.xml file, i search if exists others attributes for <param
I want to indicate a param left and an other param right on same line in footer
thank you
I search format of en.xml file, i search if exists others attributes for <param
I want to indicate a param left and an other param right on same line in footer
thank you
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: DITA CUSTOMIZE PDF EXPLICATION
Post by sorin_ristache »
Hi,
You can customize the following two templates that create the page footer content in the DITA PDF transformation and that are located in the file [Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\xsl\fo\static-content.xsl:
There are also other templates for the front matter footer, TOC footer, preface footer, index footer, etc, located in the same file. If you want to customize only the footer of the pages from the main content of the PDF document (the body), excluding the front matter, TOC, index, etc, then you need to customize only the above two templates, following the rules from the README.txt file located in directory [Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\org.dita.pdf2.
Regards,
Sorin
You can customize the following two templates that create the page footer content in the DITA PDF transformation and that are located in the file [Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\xsl\fo\static-content.xsl:
Code: Select all
<xsl:template name="insertBodyEvenFooter">
<xsl:template name="insertBodyOddFooter">
Regards,
Sorin
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)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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