XHTML 2.0 tables: time to move on

I was not impressed with the XHTML 2.0 tables module, as I was expecting
some new flexibility; something similar to XUL's <grid> element
(examples at [1]).

My point about XUL's grid element, is the two different ways of ordering
the definition of columns and rows. I appreciate that because it gives
me the choice of either using the columns to define appearance and rows
to define content, or rows to define appearance and columns to define
content.

XHTML 2.0 could offer something like the following two tables used to
present a couple of code snippets. Both tables render the snippet titles
in bold and the snippets themselves using courier font.

<table summary="example table 1 applies style based on columns">
 <tcols>
  <tc style="font-weight:bold;"/>
  <tc style="font-family:courrier;"/>
 </tcols>
 <tr>
  <td>Snippet #1</td>
  <td> /*some code here*/ </td>
 </tr>
 <tr>
  <td>Snippet #2</td>
  <td> /*some code here*/ </td>
 </tr>
</table>

 ---------------------------------
| Snippet #1 | /*some code here*/ |
| Snippet #2 | /*some code here*/ |
 ---------------------------------
  
<table summary="example table 2 applies style based on rows; tc denotes
a table column">
 <trows>
  <tr style="font-weight:bold;"/>
  <tr style="font-family:courrier;"/>
 </trows>
 <tc>
  <td>Snippet #1</td>
  <td>Snippet #2</td>
 </tc>
 <tc>
  <td> /*some code here*/ </td>
  <td> /*some code here*/ </td>
 </tc>
</table>
 -----------------------------------------
| Snippet #1         | Snippet #1         |
| /*some code here*/ | /*some code here*/ |
 -----------------------------------------


[1] http://www.xulplanet.com/tutorials/xultu/grids.html

Regards,

Manos

Received on Friday, 9 August 2002 08:23:41 UTC