I don't understand... This code would generate you something like this:

<table>
<tr>
<td/><td/><td/></tr><td>
<td/><td/><td/></tr><td>
<td/><td/><td/></tr><td>
</table>

but this is invalid xml and even html code.

I don't understand what you want to get with this code, but this is example of table in phptal:

<table>
<tr tal:repeat="row rows">
   <td tal:repeat="value row" tal:content="value"/>
</tr>
</table>

And for example this array:
$rows = array(
0 => array('John', 'Smith'),
1 => array('Paul', 'Newman')
);

with above phptal code will generate:

<table>
<tr>
   <td>John</td>
   <td>Smith</td>
</tr>
<tr>
   <td>Paul</td>
   <td>Newman</td>
</tr>
</table>

Hope it helps.

Cheers!
Szymek

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to