xsl-list
[Top] [All Lists]

[xsl] RE: XSL-FO and Z-index

2012-09-20 01:04:07
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(_at_)lists(_dot_)mulberrytech(_dot_)com,xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: "G. Ken Holman" <gkholman(_at_)CraneSoftwrights(_dot_)com>
Subject: Re: [xsl] XSL-FO and Z-index
Message-Id: 
<7(_dot_)0(_dot_)1(_dot_)0(_dot_)2(_dot_)20120919083348(_dot_)0241e238(_at_)wheresmymailserver(_dot_)com>

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(_at_)CraneSoftwrights(_dot_)com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>