RE: Accessing total page

2004-10-22 Thread Mark Donnelly
It is possible Alexis. See the following code:

At the end of your fo document put a variable like this:

snip

!-- id used to calculate total pages --
fo:block id=terminator/

Where you would like the page (x of y) printed put the following:

snip

fo:page-number/ of fo:page-number-citation ref-id=terminator/

That works nicely in my documents. 

A warning though, there is a notice about this potentially causing memory
problems in very large documents:

http://xml.apache.org/fop/running.html#memory

Hope this helps,

Mark

-Original Message-
From: MIDON ALEXIS [mailto:[EMAIL PROTECTED]
Sent: 22 October 2004 10:12
To: '[EMAIL PROTECTED]'
Subject: Accessing total page



hi,

is it possible to access the total page?

My goal is to format a footer like page 2 of 21

I am able to get the current page number (page-number) but the total remains
unknown.

Thx in advance.


Alexis

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Accessing total page

2004-10-22 Thread TAILLEZ Yannick
See http://xml.apache.org/fop/faq.html#fo-total-pages

-Original Message-
From: MIDON ALEXIS [mailto:[EMAIL PROTECTED]
Sent: Friday, October 22, 2004 11:12 AM
To: '[EMAIL PROTECTED]'
Subject: Accessing total page



hi,

is it possible to access the total page?

My goal is to format a footer like page 2 of 21

I am able to get the current page number (page-number) but the total remains
unknown.

Thx in advance.


Alexis

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]










Ce message ainsi que toutes pièces jointes (le message) sont confidentiels
et sont exclusivement destinés à l'usage de la personne à laquelle ils sont
adressés. Tout point de vue ou toute opinion contenus dans ce message
expriment la pensée personnelle de leur auteur et ne représentent pas
nécessairement la position des sociétés du Groupe GEFCO. Si vous n'êtes pas
la personne à laquelle ce message est destiné, veuillez noter que vous avez
reçu cet e-mail par erreur et qu'il vous est strictement interdit
d'utiliser, de diffuser, de transférer, d'imprimer ou de copier ce message.
Si vous avez reçu ce message par erreur, merci de contacter la personne qui
vous l'a adressé et de l'effacer immédiatement. Les sociétés du Groupe GEFCO
déclinent toute responsabilité en cas d'altération, de modification,
d'édition, de diffusion sans autorisation de ce message ou en cas
d'affection de ce message par un virus.

This message and any attachments (the message) are confidential and
intended solely for the use of the individual to whom they are addressed.
Any views or opinions presented are solely those of the author and do not
necessarily represent those of the GEFCO Group of Companies. If you are not
the intended recipient, be advised that you have received this email in
error and that any use, dissemination, forwarding, printing, or copying of
this message is strictly prohibited. If you have received this message in
error please contact the sender and delete the message immediately. The
GEFCO Group of Companies shall not be liable for the message if altered,
changed, falsified, edited, diffused without authorization or affected by
any virus.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]