XML technologies / XSL-FO / Reference / Attributes in XSL-FO / extent

(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: 7.27.4

Category: 7.27 Pagination and Layout Properties

Description

This attribute sets the width or height of the secondary regions of a page master. For the header region (<fo:region-start>) and footer region (<fo:region-after>), it specifies the height; for the right (<fo:region-end>) or left secondary region (<fo:region-before>), it specifies the width.

Values

percentage

The width or height of the secondary region is specified by a number (possibly negative or decimal) followed by the percent sign (%). The value is relative to the total height or width of the page.

length

The width or height of the secondary region is specified as an absolute measurement (length). The value must be a number (possibly negative or decimal) followed by a unit (em, ex, px, pt, in, cm, mm, pc).

Inherited:

yes

Default value: 0pt

XSL-FO version: 1.0

Allowed in:

<fo:region-after>

This element configures the area below the fo:region-body region, that is, the page footer area.

<fo:region-before>

This element configures the area above the fo:region-body region, that is, the page header area.

<fo:region-end>

The region to the right of <fo:region-body> for left-to-right writing.

<fo:region-start>

The region to the left of <fo:region-body> for left-to-right writing.

Support:

Conformance level

Antenna House

FOP

RenderX XEP

Altsoft XML2PDF

Compart DocBridge

Extended

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="Inhalt-Seiten" margin="0mm 0mm 0mm
                      0mm" page-height="297mm" page-width="210mm">
<fo:region-body margin="26mm 55mm 41mm
                        55mm" display-align="center"/>
<fo:region-before extent="20mm" region-name="kopf" display-align="center" border="1pt
                      solid"/>
<fo:region-after extent="20mm" region-name="fuß" display-align="center" border="1pt
                      solid"/>
<fo:region-start extent="40mm" region-name="links" display-align="center" border="1pt
                      solid"/>
<fo:region-end extent="40mm" region-name="rechts" display-align="center" border="1pt
                      solid"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Inhalt-Seiten" font-family="Arial Unicode MS">
<fo:static-content flow-name="kopf">
<fo:block text-align="center" font-family="Arial Unicode MS">
↑
<fo:block/>
region-before
<fo:block/>
extent="20mm"
<fo:block/>
↓
</fo:block>
</fo:static-content>
<fo:static-content flow-name="fuß">
<fo:block text-align="center" font-family="Arial Unicode MS">
↑
<fo:block/>
region-after
<fo:block/>
extent="20mm"
<fo:block/>
↓
</fo:block>
</fo:static-content>
<fo:static-content flow-name="links">
<fo:block text-align="center" font-family="Arial Unicode MS">
← region-start
                →
<fo:block/>
extent="40mm"
</fo:block>
</fo:static-content>
<fo:static-content flow-name="rechts">
<fo:block text-align="center" font-family="Arial Unicode MS">
← region-end →
<fo:block/>
extent="40mm"
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block text-align="center" font-family="Arial Unicode MS">
region-body
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Download the examples

In the output:

Excerpt from the W3C Recommendation:

More information online about

Introduction: "Page layout">

Practical example: "Page masters and simple page sequence masters">

Practical example: "Complex page sequence masters">

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

Rendering of the property in the XSL-FO reference

back to top