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

At 12:11 10/09/2002 -0500, Mike Haarman wrote:



>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.

Indeed, this could be done, but then I loose some flexibility. For example, 
if later on I want to change the font-size......I can start calculating 
again ;)

Nevertheless, thanks for the tip!

>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
><= to the number of rows specified to this template's $rows parameter.
>
>   <xsl:template name="repeatRows">
>     <xsl:param name="rows"/>
>     <xsl:choose>
>       <xsl:when test="$rows &gt; 0">
>         <fo:table-row>
>           <fo:table-cell>
>             <fo:block>&#xA0;</fo:block>
>           </fo:table-cell>
>         </fo:table-row>
>         <xsl:call-template name="repeatRows">
>           <xsl:with-param name="rows" select="$rows - 1"/>
>         </xsl:call-template>
>       </xsl:when>
>       <xsl:otherwise/>
>     </xsl:choose>
>   </xsl:template>
>
>
>HTH,
>
>Mike
>
>----- 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 Wednesday, 11 September 2002 03:02:24 UTC