This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Detecting the last page on a PDF?


At 2002-06-12 16:47 +0000, andrew.bate@sts.co.uk wrote:
The issue I have is that I want to detect if I am on the last page by using
an <xsl:if test=""> call but don't know how to do this with the page number
and page count I already have.

Is this possible?  If so, can someone point me in the right direction?
As DaveP said, there is no test at transformation time that will give you what content is going to be on the last page at formatting time.

However, you don't say *why* you want to test the last page.

You can have the formatter place information differently on the last page if the differences are restricted to the page geometry (margins, regions, etc.). You can set up the last page sequence of your XSL-FO document with the conditional use of simple page masters is tested for using a particular geometry for the last page of the page sequence. That *is* known by the formatter.

I hope this helps.

.................. Ken


--
Upcoming: 3-days XSLT/XPath and/or 2-days XSL-FO:Sep 30-Oct 4,2002

G. Ken Holman mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995)
ISBN 0-13-065196-6 Definitive XSLT and XPath
ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
ISBN 1-894049-07-1 Practical Formatting Using XSLFO
XSL/XML/DSSSL/SGML/OmniMark services, books (electronic, printed),
articles, training (instructor-live,Internet-live,web/CD,licensed)
Next public training: 2002-06-11,13,14,08-05,26,27,09-30,10-03


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]