W3C home > Mailing lists > Public > www-xsl-fo@w3.org > September 2002

Re: Page X of Y

From: Mike Haarman <mhaarma@socsci.umn.edu>
Date: Mon, 16 Sep 2002 11:44:44 -0500 (CDT)
To: <www-xsl-fo@w3.org>
Message-ID: <Pine.GSO.4.30.0209161137480.13429-100000@trickster.hist.umn.edu>

On Mon, 16 Sep 2002, Al-Dhahir, Haitham wrote:

> I have a multi-page document, and on each page I'd like to display the page
> number. However, I want to display this in the form:
>
> Page X of Y

<fo:block>Page <fo:page-number/> of
<fo:page-number-citation ref-id="endofdoc"/></fo:block>

And place an empty block labled "endofdoc" at the end of the content of
the document like so:

<fo:block id="endofdoc"/>


> A follow-up question: if I have a two-page document, and I want the page
> number to be displayed in a different position on the second page than it is
> on the first page, how can I achieve this?

The following article contains an nice discussion of how to accomplish
this.  You'll use fo:repeatable-page-master-alternatives:

http://www.xml.com/pub/a/2001/01/17/xsl-fo/index.html?page=1

> Many thanks,

Many welcomes.


----------------------------------------------------------------
Mike Haarman
mhaarma@socsci.umn.edu
Received on Monday, 16 September 2002 12:44:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT