RE: [xsl] Comma in between!

Subject: RE: [xsl] Comma in between!
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Mon, 13 Sep 2004 13:28:36 +0000
Hi, Try this...

<xsl:template match ="B|C">
 <xsl:value-of select="text()"/>
 <xsl:if test="postion()!=last()">
</xsl:template >

From: "Kenny Bogoe (BogoeMD)" <kenny@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: "xsl-list@xxxxxxxxxxxxxxxxxxxxxx" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [xsl] Comma in between!
Date: Mon, 13 Sep 2004 11:21:41 +0200


I have this structure, where I need to insert a comma in between all <B>
nodes and <C>. There can be one, two or three <B>s. The first <B> will
always start at position 2. The number of nodes after <C> changes.


The result should be: b1, b2, b3, c

And with this structure:

the result should be: b1, c

I really hope someone is able to help with this.

Thanks a lot.
Kenny Bogoe

Stay in touch with absent friends - get MSN Messenger

Current Thread