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

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 UTC