Re: [xsl] list with comma delimiter

Subject: Re: [xsl] list with comma delimiter
From: "Georg Hohmann" <georg.hohmann@xxxxxxxxx>
Date: Fri, 9 Jun 2006 13:31:58 +0200
<items>
    <product>x</product>
    <product>y</product>
    <product>z</product>
    <product>a</product>
</items>

You could try this:


<xsl:for-each select="product">
  <xsl:value-of select="."/>
  <xsl:if test="position() != last()">
     <xsl:text>, </xsl:text>
  </xsl:if>
</xsl:for-each>

GH

Current Thread