Discussion:
table-layout warning message
nancy_b
2007-07-24 11:40:06 UTC
Permalink
Last shot for today :-)

For some reason, FOP complains about my tables:
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
Jul 24, 2007 1:47:14 PM org.apache.fop.fo.flow.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
Jul 24, 2007 1:47:14 PM org.apache.fop.fo.flow.TableColumn bind

Any guess how I can fix it?

Thank you all in advance!

Best wishes,
Nancy
--
View this message in context: http://www.nabble.com/table-layout-warning-message-tf4135390.html#a11761254
Sent from the FOP - Users mailing list archive at Nabble.com.
Patrick Paul
2007-07-24 12:48:37 UTC
Permalink
Hi,

Since you are using the fixed table-layout FOP expects you to specify
the width of each column using the column-width property. Here FOP is
warning you that some columns have an unspecified width (or maybe they
are set to "auto" which essentially gives the same warning message),
therefore it is dividing the remaining horizontal table space equally
between these columns.

To fix this you can specify fixed a width for your columns or use the
proportional-column-width(1) property function. The behavior of this
function is described further in the W3C's XSL recommendation:
http://www.w3.org/TR/2001/REC-xsl-20011015/slice5.html#section-N8624-Property-Value-Functions

Hope that helps,

Patrick
Post by nancy_b
Last shot for today :-)
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
Jul 24, 2007 1:47:14 PM org.apache.fop.fo.flow.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
Jul 24, 2007 1:47:14 PM org.apache.fop.fo.flow.TableColumn bind
Any guess how I can fix it?
Thank you all in advance!
Best wishes,
Nancy
nancy_b
2007-07-24 13:19:28 UTC
Permalink
Hi dear Patrick!

Thanks for your suggestions. I understand what you say. But I tried to fix
this in my customization layer like that:
<xsl:template match="table">
<xsl:call-template name="calc.column.width">
<xsl:with-param name="colwidth" select="1*"/>
<xsl:if test="contains($colwidth, '*')">
<xsl:text>proportional-column-width(</xsl:text>
<xsl:value-of select="substring-before($colwidth, '*')"/>
<xsl:text>)</xsl:text>
</xsl:if>
</xsl:call-template>
<xsl:apply-templates/>
</xsl:template>

But it did not help. Please advise!

Thanks in advance,
Nancy
Post by Patrick Paul
Hi,
Since you are using the fixed table-layout FOP expects you to specify
the width of each column using the column-width property. Here FOP is
warning you that some columns have an unspecified width (or maybe they
are set to "auto" which essentially gives the same warning message),
therefore it is dividing the remaining horizontal table space equally
between these columns.
To fix this you can specify fixed a width for your columns or use the
proportional-column-width(1) property function. The behavior of this
http://www.w3.org/TR/2001/REC-xsl-20011015/slice5.html#section-N8624-Property-Value-Functions
Hope that helps,
Patrick
Post by nancy_b
Last shot for today :-)
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
Jul 24, 2007 1:47:14 PM org.apache.fop.fo.flow.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
Jul 24, 2007 1:47:14 PM org.apache.fop.fo.flow.TableColumn bind
Any guess how I can fix it?
Thank you all in advance!
Best wishes,
Nancy
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/table-layout-warning-message-tf4135390.html#a11762849
Sent from the FOP - Users mailing list archive at Nabble.com.
Patrick Paul
2007-07-24 14:04:43 UTC
Permalink
Nancy,

Could you send an XSL-FO snippet **that demonstrates the problem.

Thanks,

Patrick
Post by nancy_b
Hi dear Patrick!
Thanks for your suggestions. I understand what you say. But I tried to fix
<xsl:template match="table">
<xsl:call-template name="calc.column.width">
<xsl:with-param name="colwidth" select="1*"/>
<xsl:if test="contains($colwidth, '*')">
<xsl:text>proportional-column-width(</xsl:text>
<xsl:value-of select="substring-before($colwidth, '*')"/>
<xsl:text>)</xsl:text>
</xsl:if>
</xsl:call-template>
<xsl:apply-templates/>
</xsl:template>
But it did not help. Please advise!
Thanks in advance,
Nancy
Post by Patrick Paul
Hi,
Since you are using the fixed table-layout FOP expects you to specify
the width of each column using the column-width property. Here FOP is
warning you that some columns have an unspecified width (or maybe they
are set to "auto" which essentially gives the same warning message),
therefore it is dividing the remaining horizontal table space equally
between these columns.
To fix this you can specify fixed a width for your columns or use the
proportional-column-width(1) property function. The behavior of this
http://www.w3.org/TR/2001/REC-xsl-20011015/slice5.html#section-N8624-Property-Value-Functions
Hope that helps,
Patrick
Post by nancy_b
Last shot for today :-)
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
Jul 24, 2007 1:47:14 PM org.apache.fop.fo.flow.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
Jul 24, 2007 1:47:14 PM org.apache.fop.fo.flow.TableColumn bind
Any guess how I can fix it?
Thank you all in advance!
Best wishes,
Nancy
nancy_b
2007-07-24 15:44:25 UTC
Permalink
For some reason fop does not specify where in the text it found this problem,
so I don't have a snippet for that.
I need some customization that says:

if table-layout=fixed, use proportional column width...
Post by nancy_b
Last shot for today :-)
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
Jul 24, 2007 1:47:14 PM org.apache.fop.fo.flow.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
Jul 24, 2007 1:47:14 PM org.apache.fop.fo.flow.TableColumn bind
Any guess how I can fix it?
Thank you all in advance!
Best wishes,
Nancy
--
View this message in context: http://www.nabble.com/table-layout-warning-message-tf4135390.html#a11765968
Sent from the FOP - Users mailing list archive at Nabble.com.
Patrick Paul
2007-07-24 16:24:16 UTC
Permalink
Read the paragraph at
http://xmlgraphics.apache.org/fop/0.20.5/running.html#check-input

This will explain why, and how you can generate the FO file.

Once you have the .fo use FOP:

fop -fo file.fo -pdf out.pdf

Now FOP will report the problem and tell you where it found a problem in
the FO file.

HTH,

Patrick
Post by nancy_b
For some reason fop does not specify where in the text it found this problem,
so I don't have a snippet for that.
if table-layout=fixed, use proportional column width...
Post by nancy_b
Last shot for today :-)
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
Jul 24, 2007 1:47:14 PM org.apache.fop.fo.flow.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
Jul 24, 2007 1:47:14 PM org.apache.fop.fo.flow.TableColumn bind
Any guess how I can fix it?
Thank you all in advance!
Best wishes,
Nancy
Andreas L Delmelle
2007-07-24 17:05:24 UTC
Permalink
Post by Patrick Paul
Read the paragraph at
http://xmlgraphics.apache.org/fop/0.20.5/running.html#check-input
IIC, the right link to check is:
http://xmlgraphics.apache.org/fop/0.93/running.html#check-input
^^^^

If you compare both the above sections, then you'll notice that FOP
0.93 has added, for convenience:

fop -xml somexml.xml -xsl somexsl.xsl -foout somefo.fo


HTH!

Cheers

Andreas
nancy_b
2007-07-25 07:26:04 UTC
Permalink
Hi dear Andreas!

I compile PDFs in Linux, so I do have .fo files. However, in this specific
case, FOP does not specify the location of the problem in the .fo file. In
the overflowing problem I do have the line specification, that's why I
posted a snippet from the .fo file.

Regards,
Nancy
Post by Andreas L Delmelle
Post by Patrick Paul
Read the paragraph at
http://xmlgraphics.apache.org/fop/0.20.5/running.html#check-input
http://xmlgraphics.apache.org/fop/0.93/running.html#check-input
^^^^
If you compare both the above sections, then you'll notice that FOP
fop -xml somexml.xml -xsl somexsl.xsl -foout somefo.fo
HTH!
Cheers
Andreas
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/table-layout-warning-message-tf4135390.html#a11777755
Sent from the FOP - Users mailing list archive at Nabble.com.
John Brown
2008-04-03 23:11:11 UTC
Permalink
Post by nancy_b
Post by nancy_b
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
nancy_b <nancy_brndt <at> yahoo.com> writes:

<snip>
Post by nancy_b
if table-layout=fixed, use proportional column width...
Hello nancy_b,

Did you ever find a solution to this problem?
Hermann Kleier
2009-04-16 12:40:11 UTC
Permalink
Hello Nancy,
Post by nancy_b
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
Jul 24, 2007 1:47:14 PM org.apache.fop.fo.flow.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling back
to proportional-column-width(1)
Jul 24, 2007 1:47:14 PM org.apache.fop.fo.flow.TableColumn bind
Any guess how I can fix it?
the problem comes from processing entities like '<colspec colwidth="1*"/>'
by .../fo/docbook.xsl in the context of 'table-layout="fixed"'. The
attribute value '="1*"' is essential, it is the only critical one. I
currently use revision 1.73.1-56.1 of the stylesheets and revision 0.95 of
fop. The fo-file reads '<fo:table-column column-number="x"/>' but fop
expects '<fo:table-column column-number="x"
proportional-column-width(1)"/>'. 'x' is an integer which is unessential in
this context. I do not care whether fop has wrong expectations or whether
the docbook-stylesheets produce broken code. Anyway, the workaround in to
change the input into '<colspec colwidth="1.0*"/>'.
--
View this message in context: http://www.nabble.com/table-layout-warning-message-tp11761254p23077150.html
Sent from the FOP - Users mailing list archive at Nabble.com.
Loading...