Hi,
I was part of that discussion on the DITA list, and I can confirm, that
at least for the xml where I'm running into this, you are right, it is
indeed the case that the fo table is being generated with width="100%"
(and table-layout="fixed", FWIW). It seems to me that in this situation,
the column-width and the table width in the fo are asking for
contradictory things. It seems to me that xep is honoring the table
width at the expense of the column width (treating it as proportional
and not absolute inches as it indicates), whereas fop and antenna house
both both honor the column-width at the expense of the table width.
I really have no idea which, if either, is right. Can anyone tell if the
FO spec indicates what should happen in this case? Or is it undefined?
Eric
On 6/15/2011 1:08 PM, Kevin Brown wrote:
>
> Leigh:
>
> I have no idea what you are doing outside of those two table-column
> elements, but I can assure you that XEP does not produce incorrect
> column widths. This produces two columns of the exact width you specified:
>
> <fo:block-container>
> <fo:table>
> <fo:table-columncolumn-number="1"column-width="1.25in"/>
> <fo:table-columncolumn-number="2"column-width="3in"/>
> <fo:table-body>
> <fo:table-row>
> <fo:table-cellborder="1pt solid black">
> <fo:block>1.25in</fo:block>
> </fo:table-cell>
> <fo:table-cellborder="1pt solid black">
> <fo:block>3in</fo:block>
> </fo:table-cell>
> </fo:table-row>
> </fo:table-body>
> </fo:table>
> </fo:block-container>
>
> My assumption is that your FO has width=”100%” on the table itself.
> If you take the snippet above and add width=”100%” to the fo:table,
> you will get the result you said (which is correct as the table is
> 100% of the available width and the columns are proportional scaled to
> ft that dimension). I tested this with FOP and XEP and the results are
> what you report.
>
> Kevin Brown
>
> RenderX
>
> *From:*xep-support-bounces@renderx.com
> [mailto:xep-support-bounces@renderx.com] *On Behalf Of *LW White
> *Sent:* Wednesday, June 15, 2011 8:59 AM
> *To:* xep-support@renderx.com
> *Subject:* [xep-support] table column widths correct in FOP but not in XEP
>
> A recent post on the DITA Users list provided a solution to a table
> column width issue I had been struggling with for some time.
> Unfortunately, the solution appears to work only with FOP. It does not
> work with XEP. In short, the solution is to edit the
> tableSpecNonProportional parameter to have a value of "true" in
> tables.xsl and/or tables_1.0.xsl. After making this change and
> generating a PDF using FOP, the table colums are the width I specified
> in colspec (1.25 in and 3 in). When generating with XEP, the column
> widths are 2.375" in and 4.125 in.
>
> The FO is as follows:
>
> <fo:table-column column-number="1" column-width="1.25in"/>
> <fo:table-column column-number="2" column-width="3in"/>
>
> Does XEP just not respect the value of column-width when rendering tables?
>
> Thanks,
> Leigh
>
>
>
>
>
>
> _______________________________________________
> (*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
> (*) By using the Service, you expressly agree to these Terms of Service http://w
> ww.renderx.com/terms-of-service.html
!DSPAM:87,4df9114c63731972518071!
_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Wed Jun 15 13:09:03 2011
This archive was generated by hypermail 2.1.8 : Wed Jun 15 2011 - 13:09:04 PDT