XML technologies / XSL-FO / Reference / Attributes in XSL-FO / page-citation-strategy

(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

Recommendation section: 7.30.10

Category: 7.29 Writing-mode-related Properties

Description

When outputting the page number of the last page in a page sequence (<fo:page-sequence>), this specifies which page counts as the last. It determines whether trailing blank pages inserted by the formatter are ignored, or pages generated by Footnotes (<fo:footnote>) or float areas (<fo:float>).

Values

all

The page number of the very last page is output.

normal

The page number of the last page with normal content is output. Pages generated by footnotes or float areas, or inserted by the formatter, are ignored.

non-blank

The page number of the last page with content is output, including pages generated by footnotes or float areas. Pages automatically inserted by the formatter are ignored.

Inherited:

yes

Default value: all

XSL-FO version: 1.1

Allowed in:

<fo:page-number-citation-last>

This element references the number of the last page containing an area that (a) is returned by the referenced formatting object and (b) has an area-class compatible with the specified page citation strategy.

Support:

Conformance level

Antenna House

FOP

RenderX XEP

Altsoft XML2PDF

Compart DocBridge

Extended

Y

N

-

N

N

XSL-FO example:

<fo:root font-family="Arial" font-size="10pt" line-height="1.2em" 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">
<fo:layout-master-set>
<fo:simple-page-master master-name="site">
<fo:region-body margin="10mm"/>
<fo:region-after extent="10mm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="index">
<fo:region-body margin="10mm" column-count="3"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="site" id="page-sequence-id" initial-page-number="1">
<fo:static-content flow-name="xsl-region-after">
<fo:block text-align="center">
- 
<fo:page-number/>
 -
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body" id="flow-id">
<fo:block page-break-after="always">
<fo:block>
Seite 1
</fo:block>
<fo:table width="100%">
<fo:table-column width="70%"/>
<fo:table-column width="30%"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>
 <fo:page-number-citation-last ref-id="flow-id"
                page-citation-strategy="non-blank"/> 
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:page-number-citation-last ref-id="flow-id" page-citation-strategy="non-blank"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>
 <fo:page-number-citation-last ref-id="flow-id"
                page-citation-strategy="normal"/> 
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:page-number-citation-last ref-id="flow-id" page-citation-strategy="normal"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>
 <fo:page-number-citation-last ref-id="flow-id"
                page-citation-strategy="all"/> 
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:page-number-citation-last ref-id="flow-id" page-citation-strategy="all"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>
 <fo:page-number-citation-last ref-id="page-sequence-id"
                page-citation-strategy="normal"/> 
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:page-number-citation-last ref-id="page-sequence-id" page-citation-strategy="normal"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>
 <fo:page-number-citation-last ref-id="page-sequence-id"
                page-citation-strategy="non-blank"/> 
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:page-number-citation-last ref-id="page-sequence-id" page-citation-strategy="non-blank"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>
 <fo:page-number-citation-last ref-id="page-sequence-id"
                page-citation-strategy="all"/> 
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:page-number-citation-last ref-id="page-sequence-id" page-citation-strategy="all"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
<fo:block page-break-after="always">
Seite 2
<fo:footnote>
<fo:inline baseline-shift="70%" font-size="70%">
1
</fo:inline>
<fo:footnote-body>
<fo:block line-height="3em" font-size="18pt">
<fo:block>
Fußnote 1
</fo:block>
<fo:block>
Fußnote 1
</fo:block>
<fo:block>
Fußnote 1
</fo:block>
<fo:block>
Fußnote 1
</fo:block>
<fo:block>
Fußnote 1
</fo:block>
<fo:block>
Fußnote 1
</fo:block>
<fo:block>
Fußnote 1
</fo:block>
<fo:block>
Fußnote 1
</fo:block>
<fo:block>
Fußnote 1
</fo:block>
<fo:block>
Fußnote 1
</fo:block>
<fo:block>
Fußnote 1
</fo:block>
<fo:block>
Fußnote 1
</fo:block>
<fo:block>
Fußnote 1
</fo:block>
<fo:block>
Fußnote 1
</fo:block>
<fo:block>
Fußnote 1
</fo:block>
</fo:block>
</fo:footnote-body>
</fo:footnote>
</fo:block>
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-reference="site" id="flow2" initial-page-number="auto-odd">
<fo:static-content flow-name="xsl-region-after">
<fo:block text-align="center">
- 
<fo:page-number/>
 -
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block page-break-after="always">
Neues Kapitel
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Download the examples

In the output:

Page 2

Page 3

Page 4

Page 5

Excerpt from the W3C Recommendation:

More information online about

Rendering of the property in the XSL-FO reference

back to top