xsl-list
[Top] [All Lists]

Re: [xsl] FO Table widths - table-layout fixed behaviour and use

2008-07-22 11:10:22
Ok, when I correctly use column-width for table-column, the fixed
width layout and total width of table renders as expected:  a 5 inch
wide table.

However, I am with Tony, and assuming that the same result could be
achieved as I originally suggested, by specifying table-cell widths in
each table-cell of the first row.  This does not seem to be supported
though.  Can anyone confirm this?

Also, one more behaviour which I am use to, is the omition of 1
table-cell width of a set of declared table cell widths would result
in a table width of 100%, where the omitted table-cell width stretches
to accomodate (all other table-cell widths adhere to their designated
width value).  Is this the expected behaviour of FO?

Thanks,

Karl..

On Tue, Jul 22, 2008 at 10:56 AM, Tony Graham
<Tony(_dot_)Graham(_at_)menteithconsulting(_dot_)com> wrote:
On Tue, Jul 22 2008 18:31:56 +0100, davidc(_at_)nag(_dot_)co(_dot_)uk wrote:
   <fo:table-body>
  <fo:table-row>
    <fo:table-cell width="2.5in">AAA</fo:table-cell>
    <fo:table-cell width="2.5in">BBB</fo:table-cell>
  </fo:table-row>

don't you want

<fo:table-column column-width="2.5in"/>
<fo:table-column column-width="2.5in"/>

before that table body?

The fixed widths can be taken from the cells in the first row.  XSL FO
behaves like CSS2 [1] in this (though xmlroff currently doesn't support
this).

Regards,


Tony Graham                         
Tony(_dot_)Graham(_at_)MenteithConsulting(_dot_)com
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2


[1] http://www.w3.org/TR/REC-CSS2/tables.html#fixed-table-layout

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--