DITA OT - GENERATE PDF - CHAPTER
Oxygen general issues.
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA OT - GENERATE PDF - CHAPTER
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA OT - GENERATE PDF - CHAPTER
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:
which can be replaced by:
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
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>
Code: Select all
<fo:inline xsl:use-attribute-sets="__chapter__frontmatter__number__container">
<xsl:value-of select="$chapterNumber"/>
</fo:inline>
You can also probably make some XSLT changes to customize the behavior.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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