Basically I have a string created from a loop separated by commas eg. A,B,C, I want to get rid of the last comma.
<xsl:variable name="myConcatString">
<xsl:for-each select="valueinElement">
<xsl:value-of select="@attributeValue"/>,
</xsl:for-each>
</xsl:variable>
<xsl:variable name="valueLength" select="string-length($myConcatString)-1"/>
<xsl:value-of select="substring($myConcatString,1,$valueLength)"/>
Now the last line should give me A,B,C without the "," in the last. Can someone tell me what is going wrong?