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

RE: format number question

Subject: RE: format number question
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 9 Apr 2003 23:53:42 +0100
RE:  format number question
What is your problem? What is your question? Is your code working or
not? If not, what output is it producing? And what does the input look
like?

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> JWALLIS@xxxxxxxxxxxxxxx
> Sent: 09 April 2003 21:18
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  format number question
> 
> 
> Problem: If the number exist's, and if there leading zeros, 
> drop them. Ex: 054 --> 54, else "" (nothing). I did the 
> following: At the top: <xsl:decimal-format name="staff" NaN="" />
> 
> In the body:
> <xsl:value-of select='format-number(AAA,"###","staff")'/>
> 
> I make the assumption that if there are any characters in 
> this field, then they are numbers. This also handles the case 
> where only line-feeds and tabs come in. I have run various 
> test's without any problems or wierd results.
> 
> Question: Anyone see any problems with this?
> 
> Side note. I can't believe that this is not discussed in the 
> various FAQ's. As suggested, I tried to search the 
> mulberrytech site. All searches came back as not found. Even 
> when I entered NaN. I'm probably not entering something 
> correctly. went to Dave Pawson's site but was unable to 
> locate the search engine.
> 
> Thanks in advance for comments.
> 
> 
> This transmission is intended to be strictly confidential. If 
> you are not the intended recipient of this message, you may 
> not disclose, print, copy or disseminate this information. If 
> you have received this in error, please reply and notify the 
> sender (only) and delete the message. Unauthorized 
> interception of this e-mail is a violation of federal criminal law.
> 
> 
> 
>  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.