RE: Column variable

You may try using embeded tables( lists ) or vary inside blocks margins.

-----Original Message-----
From: www-xsl-fo-request@w3.org [mailto:www-xsl-fo-request@w3.org] On
Behalf Of Michelle Aiken
Sent: Friday, September 19, 2003 9:58 PM
To: www-xsl-fo@w3.org
Subject: Column variable



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 Monday, 22 September 2003 11:39:52 UTC