XML technologies / DocBook / Generating FO (PDF) / Editing headers and footers / Changing header and footer text

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

The templates header.content and footer.content generate headers and footers and are called with these parameters: 

Table: Header and footer parameter descriptions

Parameters

Value

Meaning

pageclass

identifies the page type associated with a design. Each type corresponds to a set of fo:simple-page-master elements.

titlepage

Title page of a book, part, chapter, etc.

lot

Page for a table of contents, list of figures or tables, etc.

front

Front matter, such as a preface or dedication

body

Main content

back

Pages for appendices, glossaries, etc.

index

Index pages

sequence

Within pageclass additional design requirements may apply. Headers and footers are often suppressed on the first pages of a page type.
When front and back are not distinguished, even and odd pages are identical.

first

for the first page

even

for all even pages

odd

for all odd pages

blank

for blank pages

position

specifies the text position within the header or footer. Allowed values are left, center or right.

gentext-key

expects a key contained in the language files common/*.xml.  

Two additional parameters guide these decisions:

double.sided

specifies single- or double-sided layout. Double-sided layout (value 1) distinguishes front and back, with a larger binding margin. Single-sided layout (the default, value 0) uses fronts only.

draft.mode

controls draft mode. If draft.mode is set to yes, the entire document is treated as a draft. With the value no this does not apply. To base the decision on the attribute status use the value maybe (the default).

  

back to top