Page numbers

We already saw an example of page numbering via fo:page-number in Figure 977, “Parameterizing header and footer. ”. Sometimes a different style for page numbering is desired. The default page numbering style may be changed by means of the fo:page-sequence element's attribute format. For a closer explanation the W3X XSLT standards documentation may be consulted:

Figure 983. Roman style page numbers. Create comment in forum

(Animated PDF Version)

<fo:page-sequence format="i"
    <fo:block text-align-last='justify'>
      <fo:leader leader-pattern="rule"
    <fo:block font-weight="bold">

  <fo:flow flow-name="xsl-region-body">
    <fo:block>Some text...</fo:block>
    <fo:block>More text, more text,
      more text.</fo:block>
    <fo:block>More text, more text,
       more text.</fo:block>
    <fo:block>Enough text.</fo:block>
</fo:page-sequence> ...
Roman style page numbers.