[ZPT] Making TAL span across XHTML tags (long)

Martijn Pieters mj@digicool.com
Fri, 20 Apr 2001 11:01:02 +0200


On Fri, Apr 20, 2001 at 10:42:37AM +0200, Geir B?kholt wrote:
> It is only a soution for tables, though , and not a general fix , but
> most places outside a table you could easily use a div..

As far as I can tell, only tables and the HTML <head> section will be
problematic. For tables, <tbody> elements are perfect, for the head I use
tal:replace and have a method return multiple elements.

> i was in doubt about the validity of using multiple <tbody>elements in
>  a table , but the w3 validador does not complain in a html4 document
>  at least..

You are specifically allowed to use multiple tbody elements; they let you
group rows for easy application of common CSS attributes, for example.

-- 
Martijn Pieters
| Software Engineer  mailto:mj@digicool.com
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------