I am writing documentation in DocBook and want to publish it in PDF format with headers and footers. For this, I have this style:
<xsl:template name="header.content">
<xsl:param name="pageclass" select="''"/>
<xsl:param name="sequence" select="''"/>
<xsl:param name="position" select="''"/>
<xsl:param name="gentext-key" select="''"/>
<fo:block>
<xsl:choose>
<xsl:when test="$sequence = 'blank'">
</xsl:when>
<xsl:when test="$position='left'">
<xsl:call-template name="draft.text"/>
<xsl:apply-templates select="." mode="titleabbrev.markup"/>
</xsl:when>
</xsl:choose>
<xsl:when test="$position='right'">
<fo:page-number/>
</xsl:when>
</fo:block>
</xsl:template>
Using this piece of code, I get the following header:
My first chapter blah-blah 1
I want to get the following:
Chapter 1: My first chapter blah-blah 1
What patterns should I call to create such an auto text?
source
share