This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Currency?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]