How can I divide a list of nodes into thirds an开发者_JAVA技巧d put them into 3 columns
you need smt like this:
<table><tr>
<xsl:for-each select="nodesPath">
<xsl:if test='((position()-1) mod 3)=0'>
<xsl:text disable-output-escaping="yes"><![CDATA[</tr><tr>]]></xsl:text>
</xsl:if>
<td>content</td>
</xsl:for-each>
</tr></table>
精彩评论