Hi all,
I am trying to customise Docbook PDF output, and have a problem with
headers/footers. I want the section title and page number in the outer
part of the header (ie right on recto, left on verso) and footer empty.
The problem is that I get this on all pages, including the first one,
which I am trying explicitly to disallow.
Am using the following templates:
|<xsl:template name="header.content">
| <xsl:param name="pageclass" select="''"/>
| <xsl:param name="sequence" select="''"/>
| <xsl:param name="position" select="''"/>
| <xsl:message><xsl:value-of select="$sequence"/></xsl:message>
| <fo:block>
| <xsl:if test="$sequence != 'first'">
| <xsl:message> yes</xsl:message>
| <xsl:choose>
| <xsl:when test="$sequence = 'even' and $position='left'">
| <fo:page-number/>
| <fo:leader leader-length="1em"/>
| <fo:retrieve-marker retrieve-class-name="section.head.marker"
|
retrieve-position="first-including-carryover"/>
| </xsl:when>
| <xsl:when test="$sequence = 'odd' and $position='right'">
| <fo:retrieve-marker retrieve-class-name="section.head.marker"
|
retrieve-position="first-including-carryover"/>
| <fo:leader leader-length="1em"/>
| <fo:page-number/>
| </xsl:when>
| </xsl:choose>
| </xsl:if>
| </fo:block>
|</xsl:template>
|
|<xsl:template name="footer.content"/>
and get this screen output from xsltproc:
first
first
first
odd
yes
odd
yes
odd
yes
even
yes
even
yes
even
yes
blank
yes
blank
yes
blank
yes
The document has four pages, with headers on all four. The messages
clearly seem to suggest that the header is not created for the `first'
page by this template, so where does it come from?
Any help appreciated.
/Tomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]