On 07/25/2011 07:27 PM, [email protected] wrote: > I am not sure why I am seeing different results for version 4.4.- than > you did.
Whatever the XFC release I use (4.4, 4.4.2, 4.5), at least in the sample .fo file you sent me, I see no difference whatsoever in the generated RTF. > > For this issue our goal is to try to match the way html is renders table > with same properties. For this particular issue we could simply > calculate and set the remaining width but my concern is if we do this > and there are two columns without width specify then that approach does > work because for that we should base width's on largest column data for > each column and do some sort of best fit calc. like IE does vs. fixed > remaining percentage. > > Thoughts? Do not generate one fo:table per HTML row like you do. Instead, generate a single table. By design, a single table has the contents of all its columns properly aligned. OR Do not rely on table-layout="auto". Instead specify table-layout="fixed" and specify a width for each column. > > > -----Original Message----- > From: Hussein Shafie [mailto:[email protected]] > Sent: Monday, July 25, 2011 1:06 PM > To: Shapiro, David C (Professional) > Cc: [email protected] > Subject: Re: [XFC] XMLmind After upgrading from 4.4.0 to Version 4.5 > having issues with table aligment when not all the widths are supplied > in a row > > On 07/25/2011 05:30 PM, [email protected] wrote: >> >> After upgrading from 4.4.0 to Version 4.5 having issues with table >> aligment when not all the widths are supplied in a row > > I have exactly the same results with XMLmind XSL-FO Converter v4.4.0, > v4.4.2 and v4.5.0. Therefore it's not a regression. See attached .rtf > files. > > > >> >> I provied a sample at top where width is not specified on last cell > and >> same fo xml at bottom but with the width specified. >> >> The expected result would be to line up like they do when the width is >> specified and tool would respect width set and auto calculated ones > with >> out width based on content and remaiing width. >> > > I'm not sure that the result you expect actually corresponds to what's > mandated by the XSL-FO standard. > > This is directly related to table-layout="auto" (the default value). See > > http://www.w3.org/TR/xsl/#fo_table > --- > The automatic table layout and fixed table layout is defined in 17.5.2 > of the CSS2 specification > (http://www.w3.org/TR/REC-CSS2/tables.html#width-layout"). > --- > > This is of course not a proof of what I'm saying but, for example, > RenderX XEP[*] does *not* render the first sequence of tables as you > expect it. See attached .pdf file. > > > --- > [*] Unfortunately Apache FOP cannot render your tables at all. -- XMLmind FO Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xfc-support

