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

RE: format number

Subject: RE: format number
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
Date: Thu, 12 Sep 2002 17:56:00 +0100
xsl trailing zeros
ahhhhhhh,

I posted too early :)

<xsl:value-of select="$number"/>
<xsl:value-of select="substring('000000000',string-length($number))"/>

> -----Original Message-----
> From: Andrew Welch 
> Sent: 12 September 2002 17:42
> To: Xsl-List (E-mail)
> Subject: format number
> 
> 
> 
> Hi,
> 
> I get numbers such as 
> 
> 1
> 212
> 2121
> 
> from <xsl:number>.
> 
> I need these numbers to be 10 digits, with numbers padded 
> with trailing zeros:
> 
> 1000000000
> 2120000000
> 2121000000
> 
> I can get leading zeros, but not trailing, and any attempt to 
> multiply 
> 
> <xsl:text>0.<xsl:number/>
> 
> by 1000000000 (if you get what I mean) even after using 
> number() I still get NaN :(
> 
> whats the best way of doing this?
> 
> cheers
> andrew
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.386 / Virus Database: 218 - Release Date: 09/09/2002
>  
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.386 / Virus Database: 218 - Release Date: 09/09/2002
 

 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.