SV: [ZPT] suggestion: content and/or silent repeat

Magnus Heino (Rivermen) magnus.heino@rivermen.se
Tue, 31 Jul 2001 07:49:36 +0200


>       <table border="1" width="100%">
>         <tr>
>           <th>#</th><th>Id</th><th>Meta-Type</th><th>Title</th>
>         </tr>
>         <tbody tal:repeat="item container/objectValues">
>           <tr bgcolor="#EEEEEE" tal:condition="repeat/item/even">
>             <td tal:content="repeat/item/number">#</td>
>             <td tal:content="item/id">Id</td>
>             <td tal:content="item/meta_type">Meta-Type</td>
>             <td tal:content="item/title">Title</td>
>           </tr>
>           <tr tal:condition="repeat/item/odd">
>             <td tal:content="repeat/item/number">#</td>
>             <td tal:content="item/id">Id</td>
>             <td tal:content="item/meta_type">Meta-Type</td>
>             <td tal:content="item/title">Title</td>
>           </tr>
>         </tbody>
>       </table>
> 
> This seems surprisingly clunky for the graceful ZPT 
> system--it produces multiple tbody groupings incorrectly.


Well, if you read http://www.w3.org/TR/html401/struct/tables.html#h-11.2.3
i'd say they are 100% correct.

--

  /Magnus