DITA CUSTOMIZE PDF EXPLICATION

Post here questions and problems related to editing and publishing DITA content.
ESTRADE
Posts: 46
Joined: Mon Aug 22, 2011 3:53 pm

DITA CUSTOMIZE PDF EXPLICATION

Post by ESTRADE »

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 :

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"/>
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
sorin_ristache
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:
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.
It says nothing about adding any lines in catalog.xml like:
<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"/>
You are allowed only to uncomment the lines that are commented in catalog.xml.


Regards,
Sorin
ESTRADE
Posts: 46
Joined: Mon Aug 22, 2011 3:53 pm

Re: DITA CUSTOMIZE PDF EXPLICATION

Post by ESTRADE »

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
sorin_ristache
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:

Code: Select all

<xsl:template name="insertBodyEvenFooter">

<xsl:template name="insertBodyOddFooter">
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
Post Reply