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

RE: RE: RE: RE: RE: RE:

Subject: [xsl] RE: [xsl] RE: [xsl] RE: [xsl] RE: [xsl] RE: [xsl] RE: [xsl] Re: [xsl] Problems transforming currency values using British pound (£) and Euro (€) signs
From: "Kaine Varley" <kaine.varley@xxxxxxxxxxxx>
Date: Mon, 13 Oct 2003 18:05:36 +0100
pound symbol xml
Is it OK to include the currency symbol in the format pattern, the previous
threads seemed to suggest otherwise? 

> First point: currency symbols are not legal in the picture of format-
> number(), though some processors may accept them.
> (format-number() was defined by reference to the DecimalFormatSymbols 
> class of JDK 1.1, and currency symbols were added to the JDK at a later 
> version than this).


When creating currencies formats what would be the best approach:

  -  Format the number then apply rules to concatenate the currency
symbol(s) to either front or back?
  -  Format the number including the currency symbol(s) in the format
pattern and let the format-number() function take care of the everything?
  -  Format the currency before processing the XSLT?
  -  None of the above, there's a much better way?

I think that it's a case of not seeing the woods for the trees, or trying to
read too much into this.

Thanks again,


Kaine



-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Michael Kay
Sent: 13 October 2003 17:33
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] RE: [xsl] RE: [xsl] RE: [xsl] RE: [xsl] RE: [xsl] Re: [xsl]
Problems transforming currency values using British pound (£) and Euro (€)
signs

> While bumbling around, I found no real reference currency 
> formatting, except a brief mention on page 484 of your 2nd 
> edition XSLT book, which wasn't explicitly talking about 
> currency formatting, but I took it to be, my mistake I think. 
> Do you know of any references that particularly discuss 
> currency formatting?
> 

No, sorry, I don't. What problems are you aware of in formatting
currencies that do not apply to numbers in general?

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.