We help IT Professionals succeed at work.

How does proportional-column-width work in xsl fo

ank5
ank5 asked
on
2,083 Views
Last Modified: 2017-03-23
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

Comment
Watch Question

Gertone (Geert Bormans)Information Architect
CERTIFIED EXPERT
Top Expert 2006

Commented:
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

Author

Commented:
Is it possible to simply specify %?
Gertone (Geert Bormans)Information Architect
CERTIFIED EXPERT
Top Expert 2006

Commented:
yes as width on the column
Information Architect
CERTIFIED EXPERT
Top Expert 2006
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION