[xsl] Comma in between!

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

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.

<Root>
<A>a</A>
<B>b1</B>
<B>b2</B>
<B>b3</B>
<C>c</C>
<D>d</D>
<E>e</E>
<F>f</F>
</Root>

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

And with this structure:
<Root>
<A>a</A>
<B>b1</B>
<C>c</C>
<D>d</D>
<E>e</E>
</Root>

the result should be: b1, c

I really hope someone is able to help with this.

Thanks a lot.
Kenny Bogoe

Current Thread