Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Home » Tip Bank » XML » XSLT
Language: XSL
Expertise: Advanced
Oct 24, 2006



Application Security Testing: An Integral Part of DevOps

Use XSL-FO to Obtain a Page Number

This tip shows you how to use the fo:page-number and fo:page-number-citation elements to insert page numbers.

To insert page numbers in your page's footer, use fo:static-content:

<fo:static-content flow-name="xsl-region-after">
 <fo:block text-align="center" background-color="#CFD0FA">           
 Page [<fo:page-number/>] of [<fo:page-number-citation ref-id="last-  page" />]       	

To find out how many pages are in the document, simply insert a blank fo:block in the last fo:page-sequence, like this:

<fo:block id="last-page">

Leonard Anghel
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date