- From: Al-Dhahir, Haitham <Haitham.Al-Dhahir@gs.com>
- Date: Wed, 9 Apr 2003 15:30:39 +0100
- To: "'G. Ken Holman'" <gkholman@cranesoftwrights.com>, "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>
Thanks Ken. I think the second solution in your Yahoo list answer is the one for my case, as I am using multiple page-sequences. I created a page-sequence-master with two alternatives, one for page-position="last" and for page-position="any". Unfortunately though, I am rendering PDF using FOP - and FOP seems to have a bug which means that every page is assumed to be the last page, which messes things up somewhat. However I don't think there's anything wrong with the approach you describe - I tried something similar using "first" and "rest" instead of "last" and "any" and FOP rendered this fine. Also I have seen this bug reported previously on the fop-dev mailing list. I will follow up on fop-dev to confirm that this bug still exists. Assuming the bug is still there, do you have any alternative solutions which don't use page-position="last" - bearing in mind that I have multiple page sequences? Thanks again, Haitham. -----Original Message----- From: G. Ken Holman [mailto:gkholman@cranesoftwrights.com] Sent: 09 April 2003 00:47 To: 'www-xsl-fo@w3.org' Subject: 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 Wednesday, 9 April 2003 10:31:04 UTC