page numbering in multidocument file

Hi!
I have a xml file that contains bills for all my customers. I would like to
number the pages for each bill "page n of x" where x is the total number of
pages in the secific bill, and that every bill starts with "page 1"

Appreacheate all help and hints

Happy new year to you all!
Jörgen

----------------------------------------------------------------------------
----------
Denne meldingen inneholder ikke sensitiv informasjon som bryter med
Sykehuset i Vestfold HF sitt krav til informasjonssikkerhet.
(This message does not contain any information violating the information
security policy of Sykehuset i Vestfold HF)



*********************************************************************************
This footnote confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
*********************************************************************************

Received on Monday, 3 January 2005 11:19:13 UTC