List Info

Thread: Proportional colwidth in table (FOP 0.20.5)




Proportional colwidth in table (FOP 0.20.5)
user name
2006-12-20 21:51:09
Hi,

I would like to use proportional colwidths in tables but
cannot get them to 
work.

I setup the extensions:
<xsl:param name="use.extensions"
select="1"/>
<xsl:param name="saxon.extensions"
select="1"/>
<xsl:param name="tablecolumns.extension"
select="1"/>
<xsl:param name="fop.extensions"
select="1"/>

And saxon653 extension is in the classpath.

Also in custom layer I set
* default.table.width param to values '100%' and 'fixed'

In the document I have tried setting:
* width on table to 100%
* pgwide on table to 1

tgroup is as follows:

<tgroup cols="2">
            <colspec colnum="1"
colwidth="1*" />
            <colspec colnum="2"
colwidth="4*" />

The result is always a table of 100% width and colwidths of
equal proportion.

This post back in 2003 may give a hint to the problem, but I
was unable to 
reproduce the result on table

http://sourceware.org/ml/docbook-apps/2003-q3/msg0070
8.html

When I use CALS measures the table cols are adjusted as
required.

fop.log fives me a number of 
[WARNING] Zero-width table column!

Looking at the fo file the table starts
<fo:table
border-before-width.conditionality="retain"
 	.... table-layout="fixed"
width="100%">
	<fo:table-column column-number="1"
column-width="20%"/>
	<fo:table-column column-number="2"
column-width="80%"/>

Which should result in the desired col adjustments, but does
not.

Any help appreciated.

-- 

Sean Wheller
Technical Author
seaninwords.co.za
+27-84-854-9408
http://www.inwords.co.za

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )