Adding title to PDF output
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Adding title to PDF output
Hi,
You need good knowledge of XSLT and XPath in order to make customizations in the Docbook stylesheets.
Also this manual is a very good resource:
http://sagehill.net/docbookxsl/CustomizingPart.html
I'll try to give you some hints, but it's also a good idea to register and ask customization questions on the Docbook Apps users list which is very active.
We are using DITA for our user manual so I might not give you the best possible way.
So in the stylesheet:
OXYGEN_INSTALL_DIR/frameworks/docbook/xsl/fo/pagesetup.xsl
there is an XSLT template called header.table which is used to render the content in the header which gets repeated on each page.
This template calls a template called header.content which has in it code like:
That apply templates then matches templates located in the stylesheet:
OXYGEN_INSTALL_DIR/frameworks/docbook/xsl/common/titles.xsl
You can use our XSLT debugger to see from which location in the stylesheet the header content is computed in the output XSL-FO and maybe attempt some modifications.
Regards,
Radu
You need good knowledge of XSLT and XPath in order to make customizations in the Docbook stylesheets.
Also this manual is a very good resource:
http://sagehill.net/docbookxsl/CustomizingPart.html
I'll try to give you some hints, but it's also a good idea to register and ask customization questions on the Docbook Apps users list which is very active.
We are using DITA for our user manual so I might not give you the best possible way.
So in the stylesheet:
OXYGEN_INSTALL_DIR/frameworks/docbook/xsl/fo/pagesetup.xsl
there is an XSLT template called header.table which is used to render the content in the header which gets repeated on each page.
This template calls a template called header.content which has in it code like:
Code: Select all
<xsl:when test="($sequence='odd' or $sequence='even') and $position='center'">
<xsl:if test="$pageclass != 'titlepage'">
<xsl:choose>
<xsl:when test="ancestor::d:book and ($double.sided != 0)">
<fo:retrieve-marker retrieve-class-name="section.head.marker"
retrieve-position="first-including-carryover"
retrieve-boundary="page-sequence"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="titleabbrev.markup"/>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:when>
OXYGEN_INSTALL_DIR/frameworks/docbook/xsl/common/titles.xsl
You can use our XSLT debugger to see from which location in the stylesheet the header content is computed in the output XSL-FO and maybe attempt some modifications.
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)
- ↳ 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