RE: zero-digit

Subject: RE: zero-digit
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 30 Nov 2000 20:07:35 -0500
At 00/11/30 14:05 -0800, Clapham, Paul wrote:
I'm no XML expert, and I haven't inspected the XML spec in any detail, but
from what I read in Michael Kay's XSLT book it appears to me that I should
be able to use for example <xsl:decimal-format ... digit-zero="#x0E50" ...>,
where x0E50 is the Unicode character for "Thai Digit Zero", and expect the
resulting output to be rendered in Thai digits.

I can't see that in the text of the Recommendation ... what is the basis of this interpretation?


True, that isn't supported
by Java's DecimalFormat class; is there some other way in Java of persuading
DecimalFormat to produce Thai digits?

Why not just a combination of functions as follows ...


  translate( format-number (arg1, arg2, arg3),
             "0123456789", "...Thai digits..." )

... that would use standard functionality and then translate the results?

..................... Ken

--
G. Ken Holman                    mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.             http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999   (Fax:-0995)
Web site: XSL/XML/DSSSL/SGML services, training, libraries, products.
Book: Practical Transformation Using XSLT and XPath ISBN1-894049-05-5
Article:          What is XSLT? http://www.xml.com/pub/2000/08/holman
Next public instructor-led training:        2000-12-03/04,2001-01-27,
-             2001-02-21,2001-02-27/03-01,2001-03-05/07,2001-04-06/07


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



Current Thread