This is an unfortunate quirk of the fo header templates. The template named
header.content is called by a template named header.table that lays out the
three column table that makes up the header. Inside the header.table
template in fo/pagesetup.xsl is this bit of code that turns off the entire
header table on the first titlepage of a book:
<!-- Really output a header? -->
<xsl:choose>
<xsl:when test="$pageclass = 'titlepage' and $gentext-key = 'book'
and $sequence='first'">
<!-- no, book titlepages have no headers at all -->
</xsl:when>
<xsl:when test="$sequence = 'blank' and $headers.on.blank.pages = 0">
<!-- no output -->
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$candidate"/>
</xsl:otherwise>
</xsl:choose>
So getting a header table on the first title page of a book requires copying
this template to a customization layer and modifying it to turn off this
behavior.
I think this bit of code is obsolete because the header.content template can
turn off the titlepage header just as well. If you file this as a bug
report on SourceForge, it will get fixed at some point.
Bob Stayton
Sagehill Enterprises
[EMAIL PROTECTED]
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Docbook-Apps" <[email protected]>
Sent: Friday, November 28, 2008 5:43 AM
Subject: [docbook-apps] Header and footer on titlepage
Hi!
I am customizing the title page and I want to have specific header and
footer for title page. When I do like this in fo/pagesetup.xsl in
header.content:
<xsl:when test="$pageclass='titlepage' and $gentext-key = 'book' and
$sequence = 'odd'">
<fo:block>
sometext
</fo:block>
<fo:block>
sometext
</fo:block>
</xsl:when>
Is there any place where I have to "switch on" headers on title page?
On the first page I cant see anything. I use FOP 0.95 with XML mind
Editor.
Kind Regards,
Jacek
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]