W3C home > Mailing lists > Public > www-xsl-fo@w3.org > September 2002

Re: How to create a table that fills the page?

From: Mike Haarman <mhaarman@infinitecampus.org>
Date: Tue, 10 Sep 2002 12:11:45 -0500
Message-ID: <00b501c258ed$2442db90$78027941@infinitecampus.org>
To: "Kuylen Kim" <kku@skynet.be>, <www-xsl-fo@w3.org>

And you can't simply break the page?  Presumably you require some kind of
border effect.

If you know in advance or can calculate via count() of records, how many
pages you will be building, you can set your table in a wrapper table which
controls the border and spans a number of rows sufficient to fill that
number of pages' body regions.

I often use a construct like the following to set a fixed vertical span of
space which will be filled with a variable depth of content.  The table must
have specified a narrow (fraction of a point) initial table column just for
this purpose of setting row spans.  The cell which accepts the content (into
which you'll place your table) will have a number-rows-spanned property
&lt;= to the number of rows specified to this template's $rows parameter.

  <xsl:template name="repeatRows">
    <xsl:param name="rows"/>
      <xsl:when test="$rows &gt; 0">
        <xsl:call-template name="repeatRows">
          <xsl:with-param name="rows" select="$rows - 1"/>



----- Original Message -----
From: "Kuylen Kim" <kku@skynet.be>
To: <www-xsl-fo@w3.org>
Sent: Saturday, September 07, 2002 5:51 PM
Subject: How to create a table that fills the page?

> Hello all,
> I am still struggling to create a table that fills up the complete page. I
> cannot use absolute positioning because the table can span multiple pages.
> I have attached an example of the situation I currently have and also an
> example of what I would like to obtain.
> I welcome any tips, tricks or suggestions ;)
> Thanks in advance!
> Regards,
> Kim


Received on Tuesday, 10 September 2002 13:18:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:26 UTC