Signed-off-by: Miika Turkia <[email protected]>
---
 xslt/csv2xml.xslt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt
index 93fc969..3d7320d 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -289,10 +289,10 @@
           <xsl:attribute name="temp">
             <xsl:choose>
               <xsl:when test="$units = 0">
-                <xsl:value-of select="$temp"/>
+                <xsl:value-of select="translate($temp, ',', '.')"/>
               </xsl:when>
               <xsl:otherwise>
-                <xsl:value-of select="concat(format-number(($temp - 32) * 5 
div 9, '0.0'), ' C')"/>
+                <xsl:value-of select="concat(format-number((translate($temp, 
',', '.') - 32) * 5 div 9, '0.0'), ' C')"/>
               </xsl:otherwise>
             </xsl:choose>
           </xsl:attribute>
-- 
2.5.0

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to