xsl-list
[Top] [All Lists]

Re: [xsl] XSL-FO/FOP : Getting an error when I define table and column width in percentages

2006-04-11 10:04:50
FOP 0.20.5 does'nt support table column-width in percentage. You must
explicitly specify column widths (like <fo:table-column
column-width="50pt"/>).

Regarding how to handle long text that overflows into the next cell,
you can use hyphenate property of fo:table-cell.

Like
<fo:table-cell hyphenate="true" language="en">
   <fo:block>hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii</fo:block>
</fo:table-cell>

Regards,
Mukul

On 4/11/06, Gowri Ratakonda <gratakonda(_at_)yahoo(_dot_)com> wrote:

The table definition in my XSLT style sheet looks like
this:

<fo:table width="100%">
<fo:table-column-width="10%">
<fo:table-column-width="80%">
<fo:table-column-width="10%">
<fo:table-body>
.......
</fo:table-body>
</fo:table>

When I generate the PDF using FOP-0.20.5, I get this
error:
[ERROR] Error in column-width property value '10%':
org.apache.fop.fo.expr.PropertyException: No
conversion defined

Doesn't FOP support column-width in percentage?
Should I define the width in absolute units like
mm/cm?
If I go with units, how should I handle the the long
text that overflows into the next cell?

Thanks,
Gowri

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>