<xsl:variable name="cols" select="5"/> <xsl:variable name="rows" select="ceiling(last() / $cols)"/> <xsl:for-each select="yourTag[position() <= $rows"> <tr> <!-- self::position() below refers to the value of position() HERE + --> <xsl:for-each select="yourTag[position() mod $rows = self::positio +n()]"> <td><xsl:value-of select="..."/></td> </xsl:for-each> </tr> </xsl:for-each>
In reply to Re: OT - Dynamic data into columns in XSLT
by Anonymous Monk
in thread OT - Dynamic data into columns in XSLT
by rashley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |