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

RE: How to use for-each to get comma searated list?

Subject: RE: How to use for-each to get comma searated list?
From: Gabriel Paiz III <gpaiz@xxxxxxxxx>
Date: Wed, 2 Dec 1998 11:14:51 -0800
xsl text comma
How about adding an 'if' around comma text:

<xsl:if match=".[$not$ end()]">
         <xsl:text>,</xsl:text>
</xsl:if>

__________________________________
SPX - Valley Forge T.I.S.
25691 Atlantic Ocean Drive Suite B-7
Lake Forest, CA 92630
USA    www.vftis.com
__________________________________

Tel:	(949) 460 0094
Fax:	(949) 460 0095
e-Mail:	gpaiz@xxxxxxxxx
__________________________________

> #Following is a simplified target HTML mapping desired
> 
> <BODY>valueList="3.75,2.25"</BODY>
> 
> --------------
> 
> #Following is my simplified XSL file
> 
> <xsl:template match="/">
> <BODY>
>        <xsl:text>valueList="</xsl:text>
>        <xsl:for-each select="Section/Foo">
>           <xsl:process select="Value"/>
>           <xsl:text>,</xsl:text>
>        </xsl:for-each> 
>        <xsl:text>"</xsl:text>
> </BODY>
> </xsl:template> 


 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.