Hi there,
I just figured out a solution myself. Perhaps anyone's interested in it,
too.
The key is that I need an html element which would surround all the
datalines so it can be used as a TV-section. So here is my template HTML:
<table id="containertable">
<tr id="headline">
<td id="headcell1">Col1</td>
<td id="headcell2">Col2</td>
</tr>
<span id="datalines">
<tr id="dataline">
<td id="datacell1">Col1</td>
<td id="datacell2">Col2</td>
</tr>
</span>
</table>
As you can see, there is a span#datalines which now surrounds the dataline
tablerows. This is not correct html but it allows me to do the following
mapping and it will not be rendered this bad way.
TV mapping:
Root, container, mapped to table#containertable, outer
Headline, container, mapped to tr#headline, inner
Head cell 1, element, mapped to td#headcell1, inner
Head cell 2, element, mapped to td#headcell2, inner
Datalines, section, mapped to span#datalines, outer
Dataline, container, mapped to tr#dataline, outer
Cell 1, element, mapped to td#datacell1, inner
Cell 2, element, mapped to td#datacell2, inner
This produces the following rendered html:
<table id="containertable">
<tr id="headline">
<td id="headcell1">Col 1</td>
<td id="headcell2">Col 2</td>
</tr>
<tr id="dataline">
<td id="datacell1">Cell 1</td>
<td id="datacell2">Cell 2</td>
</tr><tr id="dataline">
<td id="datacell1">Cell 3</td>
<td id="datacell2">Cell 4</td>
</tr>
</table>