Re: How to Conditionally printing page-footers

At 2002-10-22 07:43 -0400, SUCHETA LELE wrote:
>I read the chapter of your book available on the internet - it was very 
>helpful.

A number of us have written books on XSL-FO ... you don't mention who it is 
you are addressing with your comment, but I'm sure we all appreciate it 
when a reader comments on what they read (both pro and con!).  Publicly 
posted comments of support are always appreciated!

>I wanted to ask you if there is any way I can suppress the footer of a 
>page in case of page overflow.
>
>The problem is like this:
>
>I have a  page for which I have a different layout. Now if the contents of 
>this page overflow to the second page, the footer contained in 
>xsl-region-after should be printed on the first page only and NOT on the 
>second page.

It is difficult to understand what you mean by "overflow" ... pagination is 
the process of accommodating content the overflows different pages.  You 
seem to be processing your pages independently and not treating the 
overflow of a page as regular pagination.

I'll therefore assume you mean to create your pages as individual page 
sequences, since it would follow from your question that you only supply 
enough content for each page before starting the next page.  This would be 
accomplished using a separate page sequence for each page.  Indeed, this is 
what I do for my slides of my course materials ... every slide is printed 
as a separate page sequence.

It follows, then, to have a different definition of static content for the 
first page of your page sequence than for the remaining pages of your page 
sequence, create a <page-sequence-master> where the first page has the 
footer you desire by pointing to the page geometry with the footer in a 
<single-page-master-reference>.  Follow this with a 
<repeatable-page-master-reference> to a page geometry that does not have 
the footer.

I hope this helps.

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


--
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
Next public training:          2002-12-08,2003-02-03,06,03-03,06

Received on Wednesday, 23 October 2002 10:57:23 UTC