From: Loren C. <lor...@gm...> - 2010-07-15 18:59:35
|
I can implement format-number http://www.w3.org/TR/xslt#function-format-number Do we want this in util or in fn (http://www.w3.org/2005/xpath-functions)? All I need to do is remove the three functions (number-to-string, number-to-currency-string, and number-to-percent-string) and change number-to-formatted-string to format-number and add the third optional parameter. I just want to make sure that I place it in the correct function module. Loren On Jul 15, 2010, at 01:02 PM, Dmitriy Shabanov wrote: > Can it be xsl's function? > http://www.w3schools.com/XSL/func_formatnumber.asp > > (the module @ xsl extension) > > Can it be one function? > > On Thu, 2010-07-15 at 12:39 -0500, Loren Cahlander wrote: >> I am in the process of adding the formatting of a number to a >> formatted string. There are three general purpose functions that >> format the number to a general number, currency or percentage >> according to the optionally specified locale. The fourth function >> takes in a format string according to the format specification for the >> java.text.DecimalFormat Java class. >> >> >> Please supply me with your comments. Dan will be developing XQuery >> unit tests to validate the functions. You will find the function docs >> below. > > -- > Cheers, > > Dmitriy Shabanov |