Footnotes

Contact Us or call 1-877-932-8228
Footnotes

Footnotes

Footnotes can be added to any element with the footnote FO, which takes two children: inline and footnote-body. The syntax is shown below:

<fo:footnote> <fo:inline>1</fo:inline> <fo:footnote-body> <fo:block>1. This is the footnote.</fo:block> </fo:footnote-body> </fo:footnote>

By default, footnotes inherit the properties of their parent elements. If you want a footnote to be formatted differently, which you usually do, you should specify them in the footnote tags.

xsl-footnote-separator

There is a special region called "xsl-footnote-separator," which is used to create a separator between body content and footnotes.

The example below illustrates how footnotes are created.

Code Sample:

FootnotesAndFloats/Demos/Footnote.fo
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<fo:layout-master-set>
		<fo:simple-page-master master-name="Page" margin="1in" page-height="4in" page-width="8.5in">
			<fo:region-body/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="Page">
		<fo:static-content flow-name="xsl-footnote-separator">
			<fo:block>
				<fo:leader leader-pattern="rule" leader-length="100%"/>
			</fo:block>
		</fo:static-content>
		<fo:flow flow-name="xsl-region-body">
			<fo:block>
				This is the text.
				<fo:footnote>
					<fo:inline font-size="8pt" alignment-baseline="hanging">1</fo:inline>
					<fo:footnote-body>
						<fo:block font-size="8pt">1. This is the footnote.</fo:block>
					</fo:footnote-body>
				</fo:footnote>
			</fo:block>
		</fo:flow>
	</fo:page-sequence>
</fo:root>

The output is shown below.

Next