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

Subject: Re: [xsl] XSL-FO and Z-index
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 Sep 2012 08:43:02 -0400
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

Current Thread