[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Comma in between!

Subject: RE: Comma in between!
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 13 Sep 2004 10:59:17 +0100
RE:  Comma in between!
<xsl:template match="B">
<xsl:value-of select="."/>
<xsl:text>, </xsl:text>
</xsl:template>

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Kenny Bogoe (BogoeMD) [mailto:kenny@xxxxxxxxx] 
> Sent: 13 September 2004 10:22
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Comma in between!
> 
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.