Click to See Complete Forum and Search --> : looping


mili
10-07-2003, 07:26 PM
Hi,

I'm looping thro' a list of values and displaying the values separated by a comma
like this- a1,a2,a3,a4,
I want to avoid the comma for the last vale.How can I do this in xslt?

paps
10-08-2003, 01:40 AM
u could count the number of values using count() function and then insert commas based on an if...

<xsl:if test="$x < $count">
,
</xsl:if>


HTH :D