From: Todtenhaupt, Susann [EMAIL PROTECTED]
Is it possible to allocate a column-width a value like 100%?
inline-progression-dimension fop does not support, does it?
Currently FOP only supports tables with fixed (pre-determined) column
woidths, e.g. 5in, 2cm, etc. Therefore percentages are not
This is not true. FOP only supports Fixed table-widths, but columns
widths can be set relative. You can do this by setting:
column-width=proportional-column-width(1)
If you have to columns with a 25%, 75% width you can set:
fo:table-column column-number=1
[mailto:[EMAIL PROTECTED]
Sent: 10 April 2003 11:19
To: [EMAIL PROTECTED]
Subject: Re: table-column width
From: Todtenhaupt, Susann [EMAIL PROTECTED]
Is it possible to allocate a column-width a value like 100%?
inline-progression-dimension fop does not support, does it?
Currently FOP only supports
sujata wrote:
I gave it as,
fo:table-column column-width={$colwidth}cm/
where colwidth is a variable name holding the column width value.
But this value is not accepting and it gives the error :
Error in column-width property value {$colwidth}
Seems to me you are trying to use variables in
Oleg Tkachenko wrote:
Seems to me you are trying to use variables in xsl-fo document instead
of xsl stylesheet. Am I right?
Sujata wrote:
Exactly.. I need to give the column-width dynamically.
Is it possbile to do that? If yes how can i do that?
-Thanks and Regards
Sujata
sujata wrote:
Exactly.. I need to give the column-width dynamically.
Is it possbile to do that? If yes how can i do that?
Sure. But this should be done in XSLT stage, there is no notion of variables
in XSL-FO. Fromatting is two-step process, first source document is
transformed to
sujata wrote:
I have a problem in displaying the data in the pdf table.
Each column width in a table should be different from the other column
depending on the data.
Since I am using the same fop stylesheet for different tables, I cannot
hardcode the column width in the stylesheet.
Is there
Thanks for the reply.
How do you take the column width in a stylesheet.
I don't want to take each column width data as a separate parameter
because the no of columns vary from table to table.
My Logic is get a string with all the column width s of the table
seperated by coma.
In xsl split it and
Chuck Paussa wrote:
xsl:for-each select=1 to $numcols !-- xsl 2 structure implemented
in Saxon v7 --
xsl:for-each select=saxon:range(1, $numcols) !-- extension
function --
fo:table-column column-width=10mm/
/xsl:for-each
(presumably only one of the xsl:for-each elements should be
Apologies for the previous request! A better looking table is attached!
The number of columns is not a fixed number. I am able to create the
table but, having trouble with the column-width. The table should
expand to fit the page. The total-column-number is defined in TABLE
attribute.
Mathy,
To do the variable number of columns, you'll have to use a range
function like this
fo:table
xsl:variable name=numcols select=./table/@numcols/
xsl:for-each select=1 to $numcols !-- xsl 2 structure i,plemented
in Saxon v7 --
xsl:for-each select=saxon:range(1, $numcols) !-- extension
11 matches
Mail list logo