This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: how to append a "," to the end of number
- From: "Noel Golding" <noel at spearreport dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 27 Aug 2002 08:21:30 -0400
- Subject: Re: [xsl] how to append a "," to the end of number
- References: <DF5F8B4DEA1A5044AE71C1F9F0CDAD5F120669@slurpy.tnow.net>
- Reply-to: xsl-list at lists dot mulberrytech dot com
<xsl:for-each select="NightlyRates">
<xsl:if test="position() > 1">
<xsl:text>,</xsl:text>
<xsl:if>
<xsl:value-of select="text()"/>
</xsl:for-each>
----- Original Message -----
From: "Mac Rost" <mrost@travelnow.com>
To: <XSL-List@lists.mulberrytech.com>
Sent: Monday, August 26, 2002 6:02 PM
Subject: [xsl] 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@travelnow.com
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list