XML technologies / XSL-FO / Reference / Elements in XSL-FO / fo:flow-map

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

Category: 6.4 Declarations and Pagination and Layout Formatting Objects

Description

This element assigns flows to regions.

XSL-FO version: 1.1

Parent elements

<fo:layout-master-set>

This element defines all the masters for the pages or page sequences to be used.

Child elements

<fo:flow-assignment>

This element assigns a sequence of flows to a sequence of regions.

Attributes

flow-map-name

This attribute specifies a reference name for a master containing rules for arranging flow regions in page sequences (fo:flow-map). In a page sequence (fo:page-sequence), the attribute flow-map-reference can reference this master.

Support:

Conformance level

Antenna House

FOP

RenderX XEP

Altsoft XML2PDF

Compart DocBridge

Extended

Y

N

-

Y

N

XSL-FO example:

<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="test">
<fo:region-body background-color="#DDD" margin="50mm"/>
<fo:region-before extent="5mm"/>
<fo:region-start extent="50mm"/>
<fo:region-end extent="5mm"/>
</fo:simple-page-master>
<fo:flow-map>
<fo:flow-assignment>
<fo:flow-source-list>
<fo:flow-name-specifier flow-name-reference="xsl-region-start"/>
</fo:flow-source-list>
<fo:flow-target-list>
<fo:region-name-specifier region-name-reference="xsl-region-body"/>
</fo:flow-target-list>
</fo:flow-assignment>
</fo:flow-map>
</fo:layout-master-set>
<fo:page-sequence master-reference="test">
<fo:static-content flow-name="xsl-region-end">
<fo:block>
Test
</fo:block>
</fo:static-content>
<fo:static-content flow-name="hallo">
<fo:block>
Test
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:block page-break-after="always">
Hallo-Welt
</fo:block>
<fo:block id="d2t" page-break-after="always">
data2type
</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Download the examples

Rendering of the element in the XSL-FO reference

In the output:

Page 2

Excerpt from the W3C Recommendation:

back to top