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

Re: saxon error: using format-number

Subject: Re: saxon error: using format-number
From: Lawrence Mielniczuk <lwm@xxxxxxxxxxxxxxx>
Date: Wed, 24 May 2000 09:09:16 +0100 (GMT Daylight Time)
xsl format number error
Your example works with Saxon 5.3.1 - it is probably worth upgrading!
---L---
> 
> I am using format-number to display my prices with a comma and a dot,
> like 21,200.35.
> 
> Here is a sample XML:
> 
> <xslnumbers>  
> <numbers>10,000.66</numbers>  
> <numbers>1,300.88</numbers>  
> </xslnumbers>
> 
> The XSL is:
> 
> <P>  
> <xsl:value-of select="//numbers[1]"/>  
> <xsl:text> + </xsl:text>  
> <xsl:value-of select="//numbers[2]"/>  
> <xsl:text> = </xsl:text>  
> <xsl:value-of select="format-number(translate(//numbers[1],',','') +
> translate(//numbers[2],',',''),'###,##0.00')"/>
> </P>  
> 
> Resultant HTML in Stylus:
> 10,000.66 + 1,300.88 = 11,301.54
> 
> Though I get the desired output in Stylus, Saxon gives me a
> "number-format function: locale not registered" error.
> I am using a older version of Saxon is that what is causing the problem?
> 
> TIA
> Seema
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

-------------------------------------
Lawrence Mielniczuk
Room 314
Bodleian Library
Oxford OX1 3BG
Tel: (01865) 277 114
Mobile: 0794 101 5689
-------------------------------------


 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.