Forum Moderators: open
Here's a template that works by finding every 4th node, using position() and mod
Then it constructs a variable containing nodes from positions n, n+1, n+2, n+3
Then it loops through these and displays a <td> for each.
I hope it works. It might need a little debugging.
Cheers
<xsl:template name="twocolumns">
<xsl:for-each select="people[position() mod 4 = 1]">
<tr>
<xsl:variable name="others" select="following-sibling::option[position() < 4]" />
<xsl:for-each select=".¦$others">
<td>
<xsl:value-of select="person' />
</td>
<xsl:if test="not($others)">
<td></td>
</xsl:if>
</xsl:if>
</tr>
</xsl:for-each>
</xsl:template>