[xsl] Formatting numbers

Subject: [xsl] Formatting numbers
From: michael.h.kay@xxxxxxxxxxxx
Date: Tue, 25 Feb 2003 18:46:03 +0000
>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

Current Thread