Actually looking at it I don't think it will work as straight away it will start with:
<table ..>
<tr>
<td>
<tr>
...and then it would ignore everything not divisible by x (due to the if block)........thanks though.
<table ..>
<tr>
<td>
<tr>
...and then it would ignore everything not divisible by x (due to the if block)........thanks though.