[xep-support] Table test
Nikolai Grigoriev
grig at renderx.com
Wed Jan 30 07:44:11 PST 2002
Gustaf,
> > I have a DTD that allows the user to specify a 'width' attribute for each
> > column in a table. In one table I have three columns. I specify 15% on the
> > first and 15% on the second and leave the third for XEP to figure out.
Thank you for a very interesting example :-). I have doubts about your way
of specifying width for table columns: XEP only supports fixed table layout,
and table column widths are set by <fo:table-column> elements. If you
rewrite your table this way, you get the desired result:
<fo:table>
<fo:table-column column-width="15%"/>
<fo:table-column column-width="15%"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell border="1pt solid black">
<fo:block>Some text.</fo:block>
</fo:table-cell>
<fo:table-cell border="1pt solid black">
<fo:block>More text.</fo:block>
</fo:table-cell>
<fo:table-cell border="1pt solid black">
<fo:block>More text again.</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
So, strictly speaking, XEP should ignore widths of single cells at all.
However, it does not: in an attempt to do the first step towards automatic
table layout, XEP tries to adjust widths of columns with no column-width
specified to the width of the topmost cell in this column that has an explicit
@width or @inline-progression-dimension attribute. If you insert a fixed
length instead of a percentage in your original example, it will work :-).
But, strictly speaking, this is abusive. You should not rely upon this kind
of behaviour; please switch to the syntax using fo:table-column/@column-width.
Anyhow, thank you for the valuable feedback. We have inadvertently left this
functionality out (and with an error relative to the interpretation of
percentages);
now we should either document it, or disable at all until a reasonable
implementation of automatic table layout becomes available. Still don't know
which one is preferrable...
Best regards,
Nikolai Grigoriev
RenderX
-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
More information about the Xep-support
mailing list