The format of numbers in XSLT Options
SoerenS
Posted: Wednesday, November 19, 2008 2:42:59 PM

Rank: Fanatic

Joined: 7/25/2006
Posts: 433
Location: Silkeborg, Denmark
How do I change the default format of numbers in XSLT, specifically decimal numbers?

Fx. currently sum() is outputting in US format (1.234,00), but I want it in European format (1.234,00).

/SoerenS

Brug for råd til hvordan du driver en god webshop? / Need advice on how to run an effective webshop?
tim
Posted: Wednesday, November 19, 2008 2:45:08 PM

Rank: Addict

Joined: 2/19/2007
Posts: 822
Location: Belgium
Not sure about this, but have you tried assigning a language to the site ?

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
dawoe
Posted: Wednesday, November 19, 2008 2:59:32 PM

Rank: Aficionado

Joined: 1/19/2008
Posts: 182
Location: Belgium
SoerenS wrote:
How do I change the default format of numbers in XSLT, specifically decimal numbers?

Fx. currently sum() is outputting in US format (1.234,00), but I want it in European format (1.234,00).

/SoerenS


Have a look at format-number and decimal format
http://www.w3schools.com/XSL/func_formatnumber.asp
http://www.w3schools.com/XSL/el_decimal-format.asp


Converting a DotNetNuke site to Umbraco : Follow it here
SoerenS
Posted: Wednesday, November 19, 2008 4:05:50 PM

Rank: Fanatic

Joined: 7/25/2006
Posts: 433
Location: Silkeborg, Denmark
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.