docbook-apps

Proportional colwidth in table (FOP 0.20.5)

  • 1.  Proportional colwidth in table (FOP 0.20.5)

    Posted 12-20-2006 21:51
    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/msg00708.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
    sean@inwords.co.za
    +27-84-854-9408
    http://www.inwords.co.za