I have run into one problem with last-page-number references. If you are
using double-sided output and your content ends on an odd-numbered page,
then your last page reference will be to that odd-numbered page. But the
page count ends on the generated blank even-numbered page. I usually solve
this problem by turning off the page numbering on the last page, if that is
acceptable for the design.
I've also tried adding a page-master selected by page-position="last" and
putting an empty block with the last page id in its static content. This
worked in Antenna House, but not XEP, I think because linking to static
content is not defined in the XSL-FO spec (or is it?).
Has anyone else solved this problem?
Bob Stayton
Sagehill Enterprises
DocBook Consulting
----- Original Message -----
From: "Mauritz Jeanson" <>
To: "'Sheldon Plankton'" <>;
<>
Sent: Monday, February 20, 2006 9:01 AM
Subject: RE: [docbook-apps] How to get total number of pages in the footer?
> > -----Original Message-----
> > From: Sheldon Plankton
> >
> > How can I get output like this ...
> >
> > page 2 of 10
> > END OF PAGE
> >
> > ... would guess I would do something like this ...
> >
> > <fo:block>
> > <xsl:text>page </xsl:test><fo:page-number/> of
> > <fo:??????>
> > </fo:block>
> > <fo:block>
> > <xsl:text>END OF PAGE</xsl:text>
> > </fo:block>
> >
> > ... but I do not know what contains the value of the
> > total number of pages.
>
>
> See these posts:
> http://lists.oasis-open.org/archives/docbook-apps/200507/msg00138.html
> http://lists.oasis-open.org/archives/docbook-apps/200509/msg00187.html
>
> /MJ
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
>
>
>