sunil
sunil

Reputation: 30

I want the four different footer on last page, first-page, odd-page, even-page using XSL-FO

I am making an XSL:FO file which contains four pages where first-page header contains the title of the chapter, and the odd and even pages has the footer of page numbers and last-page contains the footer of small table

Upvotes: 0

Views: 327

Answers (1)

Tony Graham
Tony Graham

Reputation: 8068

Look at fo:page-sequence-master (see https://www.w3.org/TR/xsl11/#fo_page-sequence-master) and particularly at fo:repeatable-page-master-alternatives (see https://www.w3.org/TR/xsl11/#fo_repeatable-page-master-alternatives).

You essentially want to set up your alternatives in the sequence 'first', 'last', 'rest'. (You could also set it up to have different page masters for odd and even pages if you wanted.)

See, for example:

Upvotes: 0

Related Questions