OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Header and footer on titlepage

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:when test="$pageclass = 'titlepage' and $gentext-key = 'book'
                    and $sequence='first'">
      <!-- no, book titlepages have no headers at all -->
    <xsl:when test="$sequence = 'blank' and $headers.on.blank.pages = 0">
      <!-- no output -->
      <xsl:copy-of select="$candidate"/>

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 

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

----- Original Message ----- 
From: <Jacek.Lewandowski@ifb-group.com>
To: "Docbook-Apps" <docbook-apps@lists.oasis-open.org>
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: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]