- From: Cyberthymia <cyberthymia@yahoo.co.uk>
- Date: Wed, 22 Jan 2003 17:14:22 -0000
- To: <www-xsl-fo@w3.org>
Hi I'm having a little trouble understanding the difference between the number-columns-spanned and number-columns-repeated properties when specified on a table-column. Using the following table as an example: <fo:table> <fo:table-body background-color="blue"> <fo:table-row> <fo:table-cell><fo:block>A1</fo:block></fo:table-cell> <fo:table-cell><fo:block>A2</fo:block></fo:table-cell> <fo:table-cell><fo:block>A3</fo:block></fo:table-cell> <fo:table-cell><fo:block>A4</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell><fo:block>B1</fo:block></fo:table-cell> <fo:table-cell><fo:block>B2</fo:block></fo:table-cell> <fo:table-cell><fo:block>B3</fo:block></fo:table-cell> <fo:table-cell><fo:block>B4</fo:block></fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> producing a table looking something like: +--+--+--+--+ |A1|A2|A3|A4| +--+--+--+--+ |B1|B2|B3|B4| +--+--+--+--+ If I define the table-columns using number-columns repeated like this <fo:table-column background-color="red"/> <fo:table-column background-color="green" number-columns-repeated="2"/> <fo:table-column background-color="yellow"/> then I should get cells A1 and B1 to be red, middle two columns (A2, A3, B2 and B3) in green and the last column (A4 and B4) in yellow, i.e. the equivalent of doing <fo:table-column background-color="red"/> <fo:table-column background-color="green"/> <fo:table-column background-color="green"/> <fo:table-column background-color="yellow"/> Can someone confirm what happens if I used number-columns-spanned instead of number-columns-repeated, i.e. <fo:table-column background-color="red"/> <fo:table-column background-color="green" number-columns-spanned="2"/> <fo:table-column background-color="yellow"/> From my understanding of the spec, I think I should just get cells A1 and B1 in red, A4 and B4 in yellow still, A2 and B2 in green and A3 and B3 in blue (the default background colour) unless cells A3 and B3 were defined as <fo:table-cell background-color="from-table-column(background-color)"><fo:block>A3</fo:bloc k></fo:table-cell> Is this correct, or are number-columns-spanned and number-columns-repeated equivalent (making A3 and B3 green as well)? Or maybe, as a different reading of the spec might imply, cells A2, A3, B2 and B3 are yellow, and would only appear green either if cells A2 or B2 actually spanned two columns, or if the cells background-color was defined to be 'from-table-column(background-color)'? Similarly, what should happen if both number-columns-spanned and number-columns-repeated are defined, i.e. <fo:table-column background-color="red"/> <fo:table-column background-color="green" number-columns-repeated="2" number-columns-spanned="2"/> <fo:table-column background-color="yellow"/> In this case, should the cells in the last column (A4 and B4) still appear in yellow or is the last table-column definition setting the properties on a non-existant column 6? Sorry for the long wordy question, but the number-columns-spanned property has totally got me confused and seems to change it's meaning every time I read it. Thanks, Richard __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
Received on Wednesday, 22 January 2003 12:14:26 UTC