xsl-list
[Top] [All Lists]

Formatting numbers

2003-02-25 11:46:03
Using XSLT 2.0, is there any easy way to format numbers, lets say to: 
###,###.0000 (most interested in displaying 4 decimal places).

Use format-number, just as you would in XSLT 1.0.

While were at it, how about dates?  If I need to format a date to, MM/DD/YYYY, 
is this accomplished easy enough?

A format-date() function is promised for XSLT 2.0, but has not yet been 
specified.

Michael Kay



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>
  • Formatting numbers, michael . h . kay <=