XML technologies / XSL-FO / Reference / Attributes in XSL-FO / region-name

(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.17

Category: 7.27 Pagination and Layout Properties

Description

This attribute assigns a name to a region. Static or flowing content in <fo:static-content> or <fo:flow> can then be assigned directly to that region. The flow-name value on these elements must match the region-name value of the region. However, region-name is not an ID value; two regions can be referenced at once.

Values

xsl-region-body

This is the default value for regions defined by <fo:region-body>.

xsl-region-start

This is the default value for regions defined by <fo:region-start>.

xsl-region-end

This is the default value for regions defined by <fo:region-end>.

xsl-region-after

This is the default value for regions defined by <fo:region-after>.

xsl-region-before

This is the default value for regions defined by <fo:region-before>.

Name

The value is a sequence of characters permitted by XML.

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-body>

This element names the central region, the main area of the page. The document’s main content is displayed here.

<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

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="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">
region-before
<fo:block/>
region-name="kopf"
</fo:block>
</fo:static-content>
<fo:static-content flow-name="fuß">
<fo:block text-align="center" font-family="Arial Unicode MS">
region-after
<fo:block/>
region-name="fuß"
</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/>
region-name="links"
</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/>
region-name="rechts"
</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