This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Currency?
- To: xsl-list at mulberrytech dot com
- Subject: Re: Currency?
- From: Mike Brown <mike at skew dot org>
- Date: Fri, 10 Nov 2000 20:26:07 -0700 (MST)
- Reply-To: xsl-list at mulberrytech dot com
Brian Thornton wrote:
> Is it possible to take a number in XML and convert to curreny US dollars? In
> this instance I have Price of "20.0" I want 20.00? Thanks.
Use the XPath function format-number() and possibly also
the instruction xsl:decimal-format.
It is an exercise for the reader to look up the answer in the specs.
- Mike
____________________________________________________________________
Mike J. Brown, software engineer at My XML/XSL resources:
webb.net in Denver, Colorado, USA http://www.skew.org/xml/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list