Reputation: 1457
A simple problem that I was wondering if it could be done.
Upvotes: 1
Views: 106
Reputation: 20663
Try using xsl:decimal-format element and format-number() function.
Upvotes: 3
Reputation: 13622
You can do this with the format-number function:
<xsl:value-of select='format-number(/price/text(), "###,###")'/>
See http://www.w3schools.com/XSL/func_formatnumber.asp for a complete reference.
Upvotes: 1