|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] conditional html
How can I insert conditional html? I want to iterate over a set of nodes
("rows" in the example below) and format a table row for every sixth item.
I tried the following, but of course its an unbalanced xml file:
<xsl:for-each select="rows">
<xsl:if test="(position() mod 6) = 1">
<tr>
</xsl:if>
<xsl:value-of select="someNode"/>
<xsl:if test="(position() mod 6) = 0">
</tr>
</xsl:if>
</xsl:for-each>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








