[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Pagination in xsl-fo


Subject: Re: [xsl] Pagination in xsl-fo
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Oct 2002 10:04:32 -0400

At 2002-10-15 15:49 +0200, Ulf Carlsson wrote:
I have created a product catalogue with a image on even pages (left) and product information on odd pages (right). If the product information is to large for one page, I would like the information to span, to the next odd page. If this occurs, I would like to display the same image on the opposing even page so that the relevant image is always displayed.

Since you cannot have conditional constructs based on the formatter's calculation of the amount of the real estate used on a page, my first reaction is that it cannot be done as you request.


However, there is one way I can think of if all of the stars align. If it is true that you only ever have a single product on each page pair, then it can be done. If you are streaming multiple products through many pages, such that some pages have multiple products, then I cannot think of how it could be done using XSL-FO 1.0.

If you are willing to start every product on a new page pair, then point a new page sequence for each pair to a page sequence master that alternates a page with only the static content of the figure on the even side with a page accepting paginated flow on the odd side and then flow the text description content into the page sequence. For most pages where you have less than a page of text, the static page with the diagram is used only once. If the flow happens to trigger a second page, the formatter will have to use the static page with the figure again before getting to a page with the flow that accepts the overflow.

I hope this helps.

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


-- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ 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


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




Current Thread
Keywords