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

format-number problems with MSXML

Subject: format-number problems with MSXML
From: Jonas Nordström <Jonas.Nordstrom@xxxxxxxxxxx>
Date: Tue, 22 Aug 2000 15:20:20 +0200
number problems
I receive accountnumbers from an XML file in the format:
<z:row ACCOUNTNO="00123456789012">
I want to format them to something like:
12.345.678.901-2
The numbers can be from 5 to 12 digits long
A regexp would be /\d{1,3}(\d{3}\.)*-\d/ for those of you who like that kind
of stuff ...

my problem is how to use format-number to accomplish this.
I tried
<xsl:value-of select="translate(format-number($accountno div 10,
'#,##0.0),',.', '.-')"/>
and that worked just fine when I used saxon.
But MSXML uses the language settings of the computer (it seems) and doesn't
yet support <xsl:decimal-format>
Does anybody know how to tell MSXML to use a specific format and make the
parser obey you? ;o)

Jonas Nordstrom
Sigma Exallon Information

PS: I use the latest MSXML3 (july)


 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-2011 All Rights Reserved.