XML technologies / XSL-FO / Reference / Antenna House Formatter XSL Extensions / Elements / footnote-number

(Excerpt from "XSL-FO ― Die Referenz" by Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Category Footnote >> Footnote Numbering

Common Usage:

Generates a footnote number. [no-LT]

Areas:

Generates and returns a single normal inline-area.

Constraints:

<axf:footnote-number> can be specified only as an anchor area. That is, it can be specified only as a descendant of <fo:inline> which is a child of <fo:footnote>.

Contents:

EMPTY

This element is not available with AH Formatter V6.3 Lite.

XSL-FO sample:

<fo:root font-size="12pt" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<axf:document-info name="author" value="Alex Critchfield, Antenna House"/>
<axf:document-info name="keywords" value="extensions, document-info"/>
<axf:document-info name="subject" value="document-info extension"/>
<axf:document-info name="title" value="document-info extension demonstration"/>
<fo:layout-master-set>
<fo:simple-page-master page-width="8.5in" page-height="11in" master-name="main">
<fo:region-body region-name="body" margin-top="1in" margin-bottom="1in" margin-left=".75in" margin-right=".75in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="main">
<fo:flow flow-name="body">
<fo:block>
This document has footnotes with automatically generated numbers. There are 5 footnotes at the end of this lineall of which have automatically generated numbers. In this sample I set the id numbers manually but normallythey would be generated during the XSLT stage. 
<fo:footnote>
<fo:inline font-size="0.83em" baseline-shift="super">
<axf:footnote-number id="f1"/>
</fo:inline>
<fo:footnote-body>
<fo:list-block provisional-distance-between-starts="20pt" provisional-label-separation="5pt">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block font-size="0.83em" line-height="0.9em">
<axf:footnote-number-citation ref-id="f1"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block font-size="0.83em" line-height="0.9em">
        content of first footnote 
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:footnote-body>
</fo:footnote>
<fo:footnote>
<fo:inline font-size="0.83em" baseline-shift="super">
<axf:footnote-number id="f2"/>
</fo:inline>
<fo:footnote-body>
<fo:list-block provisional-distance-between-starts="20pt" provisional-label-separation="5pt">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block font-size="0.83em" line-height="0.9em">
<axf:footnote-number-citation ref-id="f2"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block font-size="0.83em" line-height="0.9em">
        content of second 
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:footnote-body>
</fo:footnote>
<fo:footnote>
<fo:inline font-size="0.83em" baseline-shift="super">
<axf:footnote-number id="f3"/>
</fo:inline>
<fo:footnote-body>
<fo:list-block provisional-distance-between-starts="20pt" provisional-label-separation="5pt">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block font-size="0.83em" line-height="0.9em">
<axf:footnote-number-citation ref-id="f3"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block font-size="0.83em" line-height="0.9em">
        content of third footnote 
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:footnote-body>
</fo:footnote>
<fo:footnote>
<fo:inline font-size="0.83em" baseline-shift="super">
<axf:footnote-number id="f4"/>
</fo:inline>
<fo:footnote-body>
<fo:list-block provisional-distance-between-starts="20pt" provisional-label-separation="5pt">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block font-size="0.83em" line-height="0.9em">
<axf:footnote-number-citation ref-id="f4"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block font-size="0.83em" line-height="0.9em">
        content of fourth footnote 
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:footnote-body>
</fo:footnote>
<fo:footnote>
<fo:inline font-size="0.83em" baseline-shift="super">
<axf:footnote-number id="f5"/>
</fo:inline>
<fo:footnote-body>
<fo:list-block provisional-distance-between-starts="20pt" provisional-label-separation="5pt">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block font-size="0.83em" line-height="0.9em">
<axf:footnote-number-citation ref-id="f5"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block font-size="0.83em" line-height="0.9em">
        content of 5th footnote 
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:footnote-body>
</fo:footnote>
<fo:block space-before="10mm" font-family="monospace" linefeed-treatment="preserve">
    footnote anchor number code:    <axf:footnote-number id="f1"/>    footnote label code:    <axf:footnote-number-citation ref-id="f1"/> 
</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Download the examples

Output:

back to top