docbook-apps

Table to pdf - Invalid property value encountered in column-width="proportional-column-width(1)": org.apache.fop.fo.expr.PropertyException

  • 1.  Table to pdf - Invalid property value encountered in column-width="proportional-column-width(1)": org.apache.fop.fo.expr.PropertyException

    Posted 10-08-2011 21:55
    Hello,

    If I add a table to my docbook document and convert it to pdf I receive
    several of the following error messages:

    [fop] SCHWERWIEGEND: Invalid property value encountered in
    column-width="proportional-column-width(1)":
    org.apache.fop.fo.expr.PropertyException:
    file:/C:/Users/D034797/workspace/vogella/de.vogella.docbook.first/output/temp/article2.fo:4:408:
    proportional-column-width() function may only be used when fo:table has
    table-layout="fixed".; property:'column-width' (Siehe Position 4:453)

    Googling for this error lead to
    http://lists.oasis-open.org/archives/docbook-apps/201008/msg00143.html.
    According to this discussion the 1.76.1 XSL stylesheets should not have
    this error anymore if I understand it correctly.

    The table looks like the following:



    <tgroup cols='2' align='left' colsep='1' rowsep='1'>
    <colspec colname='c1' />
    <colspec colname='c2' />

    <row>
    <entry>a4</entry>
    <entry>a5</entry>
    </row>


    <row>
    <entry>f4</entry>
    <entry>f5</entry>
    </row>


    <row>
    <entry>b1</entry>
    <entry>b2</entry>
    </row>
    <row>
    <entry>d1</entry>
    <entry>d5</entry>
    </row>

    </tgroup>



    Is this a different error in the stylesheets or am I'm making something
    wrong?

    Best regards, Lars
    --
    Lars
    http://www.vogella.de - Eclipse, Android and Java Tutorials
    http://www.twitter.com/vogella - Lars on Twitter