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

Re: how to append a "," to the end of number

Subject: Re: how to append a "," to the end of number
From: "Noel Golding" <noel@xxxxxxxxxxxxxxx>
Date: Tue, 27 Aug 2002 08:21:30 -0400
xsl append text
<xsl:for-each select="NightlyRates">
    <xsl:if test="position() &gt; 1">
        <xsl:text>,</xsl:text>
    <xsl:if>
    <xsl:value-of select="text()"/>
</xsl:for-each>


----- Original Message ----- 
From: "Mac Rost" <mrost@xxxxxxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, August 26, 2002 6:02 PM
Subject:  how to append a "," to the end of number


> I have this problem, I have an unknown number of prices that will be
> separated with a comma. I need to know if it is possible to do this in
> my xsl.
> 
> 
> <input type="hidden" name="NightlyRates">
> <xsl:attribute name="value"><xsl:value-of
> select="NightlyRates"/></xsl:attribute>
> </input>
> 
> This is my problem here. NightlyRates will have 1-M occurrences and it
> needs to be formatted like this. 54.95, 65.95 and so on.
> Thank you for all your help!
> 
> Mac Rost
> Affiliate Relations/XML Developer
> TravelNow.com a wholly owned subsidiary of 
> Hotel Reservations Network 
> mailto:xml@xxxxxxxxxxxxx
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.