XML technologies / XSL-FO / Reference / Elements in XSL-FO / fo:repeatable-page-master-reference

(Excerpt from "XSL-FO ― Die Referenz" by Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Recommendation section: 6.4.10

Category: 6.4 Declarations and Pagination and Layout Formatting Objects

Description

This element defines the repetition of a single page master.

XSL-FO version: 1.0

Parent elements

<fo:page-sequence-master>

This element defines the order of the page masters to use. The required master-name attribute references the page master to use.

Attributes

master-reference

This attribute references individual page masters (fo:simple-page-master) or complete page sequence masters (fo:page-sequence-master). They receive a name in a master-name attribute, and this name must be supplied in master-reference. The name must occur in at least one master-name attribute. If a page master and a page sequence master share a name, the page sequence master is referenced unless the reference is within a fo:simple-page-master element. If two page masters share a master-name, the first one defined is referenced.

maximum-repeats

For a page sequence (page-sequence), the corresponding child elements fo:repeatable-page-master-alternatives or fo:repeatable-master-reference can specify the maximum number of pages to generate for the corresponding subsequence.

Support:

Conformance level

Antenna House

FOP

RenderX XEP

Altsoft XML2PDF

Compart DocBridge

Basic

Y

Y

Y

Y

Y

XSL-FO example:

<fo:root font-family="Arial" font-size="10pt" line-height="1.2em" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:layout-master-set>
<fo:simple-page-master master-name="Erste_Seite" page-height="210mm" page-width="148mm">
<fo:region-body margin="13mm 35mm 20mm
                        25mm"/>
<fo:region-before extent="5mm"/>
<fo:region-after extent="15mm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="Rest" page-height="210mm" page-width="148mm">
<fo:region-body margin="13mm 25mm 20mm
                        35mm"/>
<fo:region-before extent="5mm"/>
<fo:region-after extent="15mm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="Seitenfolge">
<fo:single-page-master-reference master-reference="Erste_Seite"/>
<fo:repeatable-page-master-reference master-reference="Rest"/>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Seitenfolge">
<fo:flow flow-name="xsl-region-body" font="30pt
                      Arial">
<fo:block>
 Startseite 
</fo:block>
<fo:block break-before="page">
 Zweite Seite
              
</fo:block>
<fo:block break-before="page">
 Dritte Seite 
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Download the examples

More information online about

Introduction: "Page layout">

Practical example: "Complex page sequence masters">

Practical example: "Multi-column pages with column rules">

Rendering of the element in the XSL-FO reference

In the output:

Page 2

Page 3

Excerpt from the W3C Recommendation:

back to top