[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Total number of pages with XSL-FO

Subject: Total number of pages with XSL-FO
From: Nadia.Swaby@xxxxxx
Date: Wed, 13 Apr 2005 14:51:25 -0400
xsl fo total page
Hi All,

I have a XSL-FO stylesheet on my hand that is giving me a problem.  On the
first page of a PDF document, the stylesheet displays "Page 1 of xx" in the
top right hand corner (where xx is the total number of pages in the
document).  The stylesheet declaration looks like this:

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

where last page is the id for a block located at the bottom of the final
page of the document (the last page has its own master page, as does the
first page and the pages inbetween).

This works fine and dandy on documents greater than one page, but for one
page documents, I get:

Page 1 of 0.

Is there anyway to get a total page count?  If not, is there anyway to test
what fo:page-number-citation returns (does it "return" anything?) and
format the output based on that?

TIA

Nadia

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.