DITA OT - GENERATE PDF - CHAPTER

Oxygen general issues.
ESTRADE
Posts: 46
Joined: Mon Aug 22, 2011 3:53 pm

DITA OT - GENERATE PDF - CHAPTER

Post by ESTRADE »

Hi,

It's possible to modifie out PDF for page chapter ?
Actuelly i obtains ;
Chapter
N° chapter
Title
Topics :
list of totpics


Thank you


Best regards
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA OT - GENERATE PDF - CHAPTER

Post by Radu »

Hi Jean,

All the customizations can be made in the XSLT stylesheets used to build the XSL-FO (from which Apache FOP will build the final PDF output).
You should set the xml:lang="fr-fr" attribute on the DITA Map root element in order for the PDF transformation to know in what language the static texts should be used. You should also specify this attribute on every DITA topic in order for this to work properly for XHTML-based transformations.

What exactly do you want to change?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ESTRADE
Posts: 46
Joined: Mon Aug 22, 2011 3:53 pm

Re: DITA OT - GENERATE PDF - CHAPTER

Post by ESTRADE »

Hi,

For example, the Number of chapter is below the mention Chapter, why not on the same line ?

Topics is not centred, they are in a list at the left ?

...


Best regards
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA OT - GENERATE PDF - CHAPTER

Post by Radu »

Hi,

For placing the chapter name and number on the same line, the stylesheet:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/commons.xsl

contains a template called:

<xsl:template name="insertChapterFirstpageStaticContent">

in it there is a:

Code: Select all

<fo:block xsl:use-attribute-sets="__chapter__frontmatter__number__container">
<xsl:value-of select="$chapterNumber"/>
</fo:block>
which can be replaced by:

Code: Select all

<fo:inline xsl:use-attribute-sets="__chapter__frontmatter__number__container">
<xsl:value-of select="$chapterNumber"/>
</fo:inline>
The list of topics is not centered probably because the chapter may have its own content which appears in the right part of the topics list.
You can also probably make some XSLT changes to customize the behavior.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ESTRADE
Posts: 46
Joined: Mon Aug 22, 2011 3:53 pm

Re: DITA OT - GENERATE PDF - CHAPTER

Post by ESTRADE »

Hi Radu,

Again thank you

Best regards

Jean
Post Reply