diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-03-07 21:57:21 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-07 11:58:57 -0800 |
commit | 9f6b8ca89a0d8828f2b60b01326f3bd9f021112c (patch) | |
tree | c0d9bbb4ea83e66789441978f4cbc5fb9e13c507 /xslt/jdivelog2subsurface.xslt | |
parent | eee29f2187632ff8a34abb8ce65e37314e60278e (diff) | |
download | subsurface-9f6b8ca89a0d8828f2b60b01326f3bd9f021112c.tar.gz |
Translate comma to colon on XML import
Translate decimal commas on XML import to decimal points. (As detected
from available sample files using Linus' debug printing.)
Also check for empty values on MacDive temperature import.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/jdivelog2subsurface.xslt')
-rw-r--r-- | xslt/jdivelog2subsurface.xslt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/jdivelog2subsurface.xslt b/xslt/jdivelog2subsurface.xslt index b09c578aa..b36eb9619 100644 --- a/xslt/jdivelog2subsurface.xslt +++ b/xslt/jdivelog2subsurface.xslt @@ -78,7 +78,7 @@ <xsl:value-of select="0" /> </xsl:when> <xsl:otherwise> - <xsl:value-of select="Equipment/Weight"/> + <xsl:value-of select="translate(Equipment/Weight, ',', '.')"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> |