0
votes

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

1

1 Answers

0
votes

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: