[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: Total number of pages with XSL-FO
Subject: Re: Total number of pages with XSL-FO|
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Wed, 13 Apr 2005 21:43:27 +0200
This works fine and dandy on documents greater than one page, but for one
page documents, I get:
Page 1 of 0.
This ought to be a bug in the FO processor. Report it to the vendor.
Is there anyway to get a total page count?
No, not in a standardized, processor independent way. As the element
name already denotes you can only get *page numbers*. The approach
you used would fail if there are multiple, independently numbered
page seqences in the document and in a few other cases. You processor
might offer a processor specific extension for getting the total number
If not, is there anyway to test
what fo:page-number-citation returns
(does it "return" anything?)
Not in a sense that you can use it at the XSLT stage. XSLT and FO
processing are conceptually independent processing steps.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format