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

Re: concating strings in a loop

Subject: Re: concating strings in a loop
From: Rajendra Singh Rawat <rajsrawat@xxxxxxxxx>
Date: Fri, 6 Feb 2004 02:52:17 -0800 (PST)
rajendra singh rawat
hi! Herwig 

pl. try this..

<xsl:for-each select="person">
 <xsl:value-of select="name" />
 <xsl:if test="not(position() =
last())">,</xsl:if><fo:inline
color="white">.</fo:inline>
 </xsl:for-each>


hope this helps

cheers,
Raj
--- Herwig Posedu <herwig.posedu@xxxxxxxxxx> wrote:
> hi!
> i want to display a list of persons
> "comma-seperarted" on my pdf-file.
> how can i concate those person-names seperated with
> a "," but in that 
> way, that after the last name is no ",".
> i did it like this
> 
> <xsl:for-each select="person">
> <xsl:value-of select="name" />
> ,<fo:inline color="white">.</fo:inline>
> </xsl:for-each>
> -> the output for example is: mike, john,
> -> i want to have: mike, john
> how can i concate the strings and substring it, so
> that the last comma 
> will be removed
> 
> thx for help
> -- 
> Herwig Posedu
> 
> 
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.