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

Column variable

From: Michelle Aiken <michelleaiken@mailblocks.com>
Date: Fri, 19 Sep 2003 11:57:59 -0700
Message-ID: <52339DF144F8AB458552076D1ED5CA1503227C@mail.interactcommerce.com>
To: <www-xsl-fo@w3.org>
This is my region body statement:

<fo:region-body margin=".9cm" column-count="4" column-gap=".1cm"/>

This is my region body definition:

<fo:flow flow-name="xsl-region-body">
	<fo:table>
            <fo:table-column column-width="3.5cm"/>
            <fo:table-column column-width="2.5cm"/>
            <fo:table-column column-width="1cm"/>
            <fo:table-body>
		    <xsl:apply-templates select="Cont"/>
            </fo:table-body>
      </fo:table>
</fo:flow>

Is there a variable that would let me know which column I'm in (of the 4
region-body columns - not the table columns)?

I am trying to figure out a way to have varying spacing between the 4
columns.  I would like to do this by varying the width of the last
column in the table (it's an empty column).

For example, something like:

<fo:table-column column-width="(((column_number() mod 4) mod 3 - 1)*2 +
1)cm"/>

Would give me a 3cm gap between the 2nd and 3rd column and a 1cm gap
between the other columns.
Received on Friday, 19 September 2003 14:59:00 GMT

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