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

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

From: David Carlisle <davidc@nag.co.uk>
Date: Fri, 8 Oct 2004 01:59:46 +0100
Message-Id: <200410080059.BAA01252@penguin.nag.co.uk>
To: rneilands@pulsemining.com.au
CC: mooney@dogbert.cc.ndsu.NoDak.edu, www-xsl-fo@w3.org


You can't do this:

<fo:table-row {$breakvar} keep-together="always">

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

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Received on Friday, 8 October 2004 01:00:11 GMT

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