xsl-list
[Top] [All Lists]

Re: Numbers to Words

2005-06-13 10:10:20
On Mon, 2005-06-13 at 12:53 -0400, Nadia(_dot_)Swaby(_at_)pwc(_dot_)ca wrote:
Hi Dave,

Check out Section 12.3 (Number to String Conversion Attributes) of the XSLT
2.0 working draft http://www.w3.org/TR/xslt20/#convert

The main attribute is format. The default value for the format attribute is
1. The format attribute is split into a sequence of tokens where each token
is a maximal sequence of alphanumeric characters or a maximal sequence of
non-alphanumeric characters. Alphanumeric means any character that has a
Unicode category of Nd, Nl, No, Lu, Ll, Lt, Lm or Lo.

      A format token w generates numbers written as lower-case words, for
      example in English, one two three four ...
      A format token W generates numbers written as upper-case words, for
      example in English, ONE TWO THREE FOUR ...
      A format token Ww generates numbers written as title-case words, for
      example in English, One Two Three Four ...

So, no it isn't April 1st and yes, you did miss something :)

Nadia

Thanks (I think :-) Nadia.

Yet another piece of the WD I hadn't read (and Mr C has. Often the case)

More reading for yours truly.

regards DaveP




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--