Hi,
Can we find any function similar to "for(x;y;z) loop" in xsl or xpath.
Thanks
Once a variable is defined, you cannot change its value so if you just want to iterate over the integers, for example below code extract the first ten:
<xsl:for-each select="//*[position() <= 10]"> ... </xsl:for-each>
where position() will go from 1 to 10
Hope it helps!!
Hi,To loop it you can use something like this
<xsl:for-each select="catalog/cd"> <tr> <td><xsl:value-of select="title"/></td> <td><xsl:value-of select="artist"/></td> </tr></xsl:for-each>
ThanksTim