Thanks John, I will try this code out and let you know how it works. Jaysheel.
-----Original Message----- From: john farrow [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 6:27 PM To: [EMAIL PROTECTED] Subject: Re: printing page numbers "last-page" is used to identify a block which appears on the last page of the document, like this: <?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="page" margin="2.5cm"> <fo:region-body margin-bottom='2.5cm' region-name="body" background-color="#cccccc"/> <fo:region-after extent='2cm' region-name="footer" background-color="#dddddd"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="page"> <fo:static-content flow-name="footer"> <fo:block> this is the page footer, the page number is <fo:page-number/> of <fo:page-number-citation ref-id="last-page"/> </fo:block> </fo:static-content> <fo:flow flow-name="body"> <fo:block>This will be on page one</fo:block> <fo:block break-before="page"> This will be on page two </fo:block> <fo:block id="last-page"/> </fo:flow> </fo:page-sequence> </fo:root> John Farrow Ibex PDF Creator - High speed scalable XSL-FO Visual Programming Ltd mail PO Box 22-222, Khandallah, Wellington, New Zealand site Level 2, 2 Ganges Road, Khandallah, Wellington, New Zealand phone +64 4 479 1738 fax +64 4 479 1294 web http://www.xmlpdf.com/ibex.html ----- Original Message ----- From: "Jaysheel Bhavsar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 16, 2005 12:10 PM Subject: RE: printing page numbers Dear Manoj, Can you explain what you code does? I am very new to XSL-FO. Can you explain where I should place this code in my xsl sheet, what is "last-page" Is it a reserve word that keep counts of how many pages it has processed at a given point? Also the code you sent me will it work as is? Thank you. Jaysheel. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 4:36 PM To: [EMAIL PROTECTED] Subject: Re: printing page numbers Yes you can do that. You need to check usage for <fo:block id="last-page"/> , <fo:page-sequence > <fo:page-number-citation ref-id="last-page"/> Thanks Manoj "Jaysheel Bhavsar" To: <[EMAIL PROTECTED]> <[EMAIL PROTECTED] cc: ite.com> Subject: printing page numbers 02/15/2005 01:29 PM Please respond to fop-user Hi, I was wondering if I can have "Page 1 of 10" .... printed at the bottom of the page instead of just printing Page 1. One thing is that I don't know how many pages I will have in the pdf, since my content is populated dynamically. Any ideas? If any one have a sample code that will be great. Thank you Jaysheel. --------------------------------------------------------------------- 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] --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]