in reply to OT - Dynamic data into columns in XSLT
<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>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: OT - Dynamic data into columns in XSLT
by Anonymous Monk on Dec 20, 2005 at 21:16 UTC | |
|
Re^2: OT - Dynamic data into columns in XSLT
by rashley (Scribe) on Dec 21, 2005 at 16:06 UTC |