W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2003

Re: Putting "Please Turn Over" at the bottom of pages in a multi-page document

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Tue, 08 Apr 2003 19:47:02 -0400
Message-Id: <5.2.0.9.0.20030408194358.00ba4120@pop.storm.ca>
To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>

At 2003-04-08 19:33 +0100, Al-Dhahir, Haitham wrote:
>I have a multi-page document with multiple page-sequences. The first and
>last page sequences are simply "bookends", starting and ending the document
>- each contains just one page. The middle page sequences contain the main
>contents of the document and each can be many pages long. For each of these
>multi-page sequences, I want to insert the text "Please turn over" at the
>bottom of every page, except for the last page in the sequence:

Coincidentally, this was asked and answered this morning on the XSL-FO 
Yahoo list and I offered two solutions:

   http://groups.yahoo.com/group/XSL-FO/message/3263

>So the basic problem is - how can I insert the text "Please turn over" only
>on pages which are not the last page in the sequence? Is this possible using
>markers?

Yes, that is the way to do it.

>I thought of inserting a block at the end of each sequence and then
>using a page-number-citation to detemirne whether we are on the last page or
>not - however I couldn't get this to work.

Correct ... the design of XSL will never allow that because citations are 
resolved by the formatter at formatting time long after transformation has 
been completed.  Transformation cannot act on the result of formatting in 
XSL-FO.  The arms-length relationship between transformation and formatting 
burdens the transformation process with providing contingencies from which 
the formatter chooses based on the situation in which it finds itself.

I hope this helps.

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

--
Upcoming hands-on courses:   Europe (XSLT/XPath):    May  5, 2003
-                            Europe (XSL-FO):        May 16, 2003
- (XSLT/XPath and/or XSL-FO) North America:      June 16-20, 2003

G. Ken Holman                mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.         http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6                      Definitive XSLT and XPath
ISBN 0-13-140374-5                              Definitive XSL-FO
ISBN 1-894049-08-X  Practical Transformation Using XSLT and XPath
ISBN 1-894049-10-1              Practical Formatting Using XSL-FO
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc
Received on Tuesday, 8 April 2003 19:47:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:10 GMT