[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

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
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


Current Thread