decimal-format

Summing numbers with comma as decimal separator in XSLT?

I have an XML file where the number are comma-separated <foo> <bar val="1,23"/> <bar val="4,56"/> <bar val="7,89"/> </foo> I would like to make a sum over /foo/bar/@val values in XSLT, but I am a bit stuck the formatting. Does anyone knows what would be the proper syntax? ...

conditional selection of decimal-format in xslt

Hi all, I'm trying to modify the decimal-format of a stylesheet based on certain information of an XML. More exaclty, I've a XML like this <?xml version="1.0" encoding="ISO-8859-1"?> <REPORT> <LANGUAGE>2</LANGUAGE> <MYVALUE>123456.78</MYVALUE> </REPORT> I'm trying to define the decimal format as european if the language is 2,...