I am trying to alter the page numbering sequence of a report generated by
fop.
The relevant code is:

<fo:block background-color="#cccccc" text-align="start" font-size="8pt"
font-family="Helvetica">
   <xsl:text>Page </xsl:text>
   <fo:inline><fo:page-number/></fo:inline>
   <xsl:text> of </xsl:text>
   <fo:inline><fo:page-number-citation
ref-id="last-page-number"/></fo:inline>
</fo:block>

this is inside

<fo:page-sequence ...><fo:flow ...>

tags.
What I want to do is skip certain pages (separator pages) and not include
them in the page numbering sequence, i.e. (--------------------- represents
a new
page)

---------------------
AA header

page 1 of 5
---------------------
AA header

page 2 of 5
---------------------
(separator page)
---------------------
BB header

page 3 of 5
---------------------
(separator page)
---------------------
CC header

page 4 of 5
---------------------
CC header

page 5 of 5
---------------------



Is there a way to do this with fo, without resetting the fo:page-sequence
initial-page-number="1"
attribute?
Thanks.




Reply via email to