Subject: RE: XSL-FO and Z-index
From: "Kevin Brown" <kevin@xxxxxxxxxxx>
Date: Wed, 19 Sep 2012 23:03:33 -0700
|
I would just use an image. All you have is 20 empty cells anyway that are
always the same. I would not waste a formatting engine's time to render 20
rows of nothingness.
Create and image of what you want to do and set it as the background of a
block-container with a rotated block inside it (to set the progression
dimension to be the footer height).
Kevin Brown
RenderX
*******************************************************************
Date: Wed, 19 Sep 2012 08:43:02 -0400
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx,xsl-list@xxxxxxxxxxxxxxxxxxxxxx
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: XSL-FO and Z-index
Message-Id: <7.0.1.0.2.20120919083348.0241e238@xxxxxxxxxxxxxxxxxxxxxx>
At 2012-09-19 14:01 +0200, Jesper Tverskov wrote:
>Hi list
>
>I have this XSL-FO creating a PDF of two pages.
>
>In the middle of the first page I have a table with 20 rows and cells
>with borders but without any content.
>
>Sometimes content above the table is a little longer than normal and
>the table is pressed a couple of lines down the page, which is exactly
>what I want, but I don't want the table to spill over to the next
>page, but simply to hide under the footer of the first page.
>
>Now I have googled for "clip", "spillover", "z-index", but I have not
>found the right solution yet.
>
>Any suggestions?
>
>At the moment the table simply stops at the page footer and pops up at
>page two instead? It should go under the footer and stay there?
Have you tried putting the table into a block-container and then
clipping the overflow of the block-container? You need to specify an
explicit size of the block-container, but you know that since it is
going on the first page. You can wrap the entire content of your
first page in the block-container, not just the table.
The code below works in Antenna House.
I hope this helps.
. . . . . . . . . Ken
<?xml version="1.0" encoding="US-ASCII"?><!--table-clip.fo-->
<root xmlns="http://www.w3.org/1999/XSL/Format"
font-family="Times" font-size="20pt">
<layout-master-set>
<simple-page-master master-name="frame"
page-height="297mm" page-width="210mm"
margin-top="15mm" margin-bottom="15mm"
margin-left="15mm" margin-right="15mm">
<region-body region-name="frame-body"/>
</simple-page-master>
</layout-master-set>
<page-sequence master-reference="frame">
<flow flow-name="frame-body">
<block-container overflow="hidden" block-progression-dimension="24cm">
<block space-after="1cm">Title of the document here</block>
<table border="solid 1pt">
<table-body>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
<table-row><table-cell><block>cell</block></table-cell></table-row>
</table-body>
</table>
</block-container>
</flow></page-sequence></root>
--
Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|