XSL-FO Flow Objects
XSL-FO uses page sequences and flow elements to define how content fills pages. When a page reaches capacity, the system automatically creates a new page using the same page master — a process PdfBroker.io handles transparently during PDF generation.
Page Sequences
XSL-FO uses <fo:page-sequence> elements to define output pages. Each page sequence references a master layout definition and contains a flow element specifying content to render sequentially.
XSL-FO Flow
The <fo:flow> element serves as the primary content container. XSL-FO pages are filled with content from the flow element. When a page reaches capacity, the system reapplies the same page master to continue rendering the remaining content.
Where to Flow?
The flow-name attribute determines which region receives the content:
| flow-name Value | Target Region |
|---|---|
xsl-region-body |
Main page content |
xsl-region-before |
Header region |
xsl-region-after |
Footer region |
xsl-region-start |
Left sidebar region |
xsl-region-end |
Right sidebar region |