Link to home
Start Free TrialLog in
Avatar of ank5
ank5Flag for India

asked on

How does proportional-column-width work in xsl fo

How does proportional-column-width work? In the below example, what would 1 or 3.5 or 2 mean? Should these total to 10 which would make it 100%? or should I be specifying percentages instead?

<fo:table-column column-width="proportional-column-width(1)"/>
						<fo:table-column column-width="proportional-column-width(3.5)"/>
						<fo:table-column column-width="proportional-column-width(.8)"/>
						<fo:table-column column-width="proportional-column-width(2)"/>
						<fo:table-column column-width="proportional-column-width(1)"/>
						<fo:table-column column-width="proportional-column-width(2)"/>
						<fo:table-column column-width="proportional-column-width(1.5)"/>

Open in new window

Avatar of Gertone (Geert Bormans)
Gertone (Geert Bormans)
Flag of Belgium image

It is "proportional" compared to the other columns
the fourth column will have twice the width of the fifth column
as 2 to 1 in the proportional width

basically you can add all the proportional widths together, divide 100 by that total and for each column multiply by the proportional width value to get the % width
Avatar of ank5

ASKER

Is it possible to simply specify %?
yes as width on the column
ASKER CERTIFIED SOLUTION
Avatar of Gertone (Geert Bormans)
Gertone (Geert Bormans)
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial