Fix import when locale set to decimal comma

This should take care of locale caused problems when the input uses decimal
point but locale uses decimal comma. Also the sample I have of Suunto DM3
format weight is represented with comma instead of dot so converting that as
well.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2013-03-06 19:11:19 +02:00 committed by Dirk Hohndel
parent 2120bc3a9e
commit a9cc7f9b10
4 changed files with 9 additions and 9 deletions

View file

@ -94,7 +94,7 @@
</xsl:attribute>
<xsl:if test="CYLINDERSIZE != ''">
<xsl:attribute name="size">
<xsl:value-of select="CYLINDERSIZE + CYLINDERSIZE * DBLTANK"/>
<xsl:value-of select="format-number(CYLINDERSIZE + CYLINDERSIZE * DBLTANK, '#.##')"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="WORKINGPRESSURE &gt; 0">