Subject: Re: [xsl] list with comma delimiter From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 09 Jun 2006 09:10:09 -0400 |
<xsl:template match="product"> <xsl:apply-templates/> <xsl:if test="following-sibling::product">, </xsl:if> </xsl:template>
Cheers, Wendell
<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>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] list with comma delimiter, Christian Rasmussen | Thread | Re: [xsl] list with comma delimiter, Andrew Franz |
Re: [xsl] XPointers to the start an, Frans Englich | Date | [xsl] Re: Problems with passing var, British Expat Techni |
Month |