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

format number question

Subject: format number question
From: JWALLIS@xxxxxxxxxxxxxxx
Date: Wed, 9 Apr 2003 15:18:28 -0500
format number xsl
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


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.