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

XSL-FO flow


May 28, 2021 XSL-FO


Table of contents


XSL-FO flow


In XSL-FO, how should you populate the content of the page? This section answers this question.

The XSL-FO page is populated with data from the element.


XSL-FO Page Series (Page Sequences)

XSL-FO defines the output page using the element of the .lt;fo:page-sequence..

Each output page references a page master that defines the layout.

Each output page has an element that defines the output of the .lt;fo:flow>

Each output page is printed or displayed in sequence (in order).


XSL-FO Stream (Flow)

The XSL-FO page is populated with content from the elements of the .lt;fo:flow.gt;

The element contains all the elements that are printed to the page.

When the page is printed, the same page master is used over and over again until all the text is printed.


Where does it flow?

The element has a "flow-name" property.

The value of the flow-name property defines where the contents of the element will go.

Legal value:

  • xsl-region-body (enter region-body)
  • xsl-region-before (enter region-before)
  • xsl-region-after (enter region-after)
  • xsl-region-start (enter region-start)
  • xsl-region-end (enter region-end)

In the next section, we'll show you the pages of XSL-FO.