Contents | < Pagination | Markers >
A footnote is an out-of-line object composed from two elements: a fo:inline used to insert a symbol in the document and a fo:footnote-body containing the text that the symbol is referring to.
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="all-pages"gt;
<fo:region-body region-name="Content" margin="0.7in"
column-count="2" />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="all-pages">
<fo:static-content flow-name="xsl-footnote-separator" >
<fo:block>-------------------</fo:block>
</fo:static-content>
<fo:flow flow-name="Content" font-family="Verdana" font-size="10pt"
text-align="justify">
<fo:block>
The body region's content flows in two columns.
...
The body<fo:footnote >
<fo:inline baseline-shift="super" font-size="8pt"
color="red">(1)</fo:inline>
<fo:footnote-body >
<fo:block font="8pt Verdana">
1) This is the first footnote.
</fo:block>
</fo:footnote-body>
</fo:footnote> region's content flows in two columns.
The body region's content flows in two columns.
...
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
![]() | For the complete source code for this code example see "Tutorial/Footnotes.fo" located under XML Documents Samples/Tutorial folder. |
The rendering result is displayed in the next figure.

Figure 1
The important points in this document are the following:
We set the number of columns for the main flow to 2.
A special area ("xsl-footnote-separator" is a reserved name) is created to hold the separator between the footnotes and the document body. This region is optional.
The footnote object is declared, inline with the text. The first child element, fo:inline is used to format the number/symbol of the footnote.
Footnote's body is defined.
Contents | < Pagination | Markers >