<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<!-- page masters -->
</fo:layout-master-set>
<fo:page-sequence master-reference="first">
<!-- data to place on the page -->
</fo:page-sequence>
</fo:root>
The formatting engine uses the layout master set to create a page.
Then it adds content to the page from the
fo:page-sequence until the page is full. Then it
creates the next page in the sequence and places the next batch of
content on that page. This process continues until all the content
has been positioned.