Re: Currency?

Subject: Re: Currency?
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 10 Nov 2000 20:26:07 -0700 (MST)
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: in Denver, Colorado, USA 

 XSL-List info and archive:

Current Thread
  • Currency?
    • Brian Thornton - Fri, 10 Nov 2000 18:50:28 -0700
      • Mike Brown - Fri, 10 Nov 2000 20:26:07 -0700 (MST) <=