W3C home > Mailing lists > Public > www-xsl-fo@w3.org > October 2004

RE: conditional page-break table based on row number?

From: Roland Neilands <rneilands@pulsemining.com.au>
Date: Fri, 8 Oct 2004 11:17:05 +1000
To: "David Carlisle" <davidc@nag.co.uk>, <mooney@dogbert.cc.ndsu.NoDak.edu>
Cc: <www-xsl-fo@w3.org>
Message-ID: <COEJLHCIGDNOEJIAMODEGEMGEKAA.rneilands@pulsemining.com.au>

> You can't do this:
> 
> <fo:table-row {$breakvar} keep-together="always">

I stand corrected. My example should have been:
<fo:table-row break-before="{$breakvar}" keep-together="always">
with appropriate value. David's code handles nulls better though.

Cheers,
Roland

> 
> XSLT files have to be well formed XML.
> 
> You can do
> 
> <fo:table-row keep-together="always">
>  <xsl:if test="position() mod 2 = 1">
>  <xsl:attribute name="break-before">page</xsl:attribute>
>  </xsl:if>
> 
> David
Received on Friday, 8 October 2004 01:18:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:13 GMT