xsl-list
[Top] [All Lists]

Re: [xsl] Format-Number trailing Minus Sign

2007-11-27 04:41:31
On 27/11/2007, Colin Adams <colinpauladams(_at_)googlemail(_dot_)com> wrote:
Put the minus sign at the end of the picture string.
(I haven't tried this, but I can't see why it wouldn't work).

I just did.... and it does :)

You need to use a pattern separator though and then specify a trailing
minus for the negative pattern, eg:

format-number(-1, '0;0-')

gives

1-

(where ; is the default pattern separator)

-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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