Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

XSL-FO flow object


May 28, 2021 XSL-FO


Table of contents


XSL-FO flow object

XSL-FO flow object XSL-FO reference manual

This section introduces you to the use of XSL-FO flow objects.


Definitions and usages

The content from the object fills the XSL-FO page.

The object contains all the elements you want to print to the page.

When the page is full, the same master page is reused until all the text is printed.

The object has a "flow-name" property that defines where the content will go.


Grammar

<fo:flow>
<!--
Contents:(block|block-container|
table-and-caption|table|
list-block)+
-->
</fo:flow> 

Property

Attributes
flow-name

Instance 1

A "real" XSL-FO instance:

<?xml version="1.0" encoding="ISO-8859-1"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

<fo:layout-master-set>
<fo:simple-page-master master-name="A4">
</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">
<fo:block>Hello W3CSchool</fo:block>
</fo:flow>
</fo:page-sequence>

</fo:root>

The output of the code above looks like this:

Hello W3CSchool


XSL-FO flow object XSL-FO reference manual