summaryrefslogtreecommitdiffstats
path: root/xslt/csv2xml.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2016-11-09 21:39:24 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-11-15 03:22:37 -0800
commit50ea5ec29655ffcaec03ff1322d6aaec8df6cbbb (patch)
tree5f093adf203b63daa2ae637852c212225be877d8 /xslt/csv2xml.xslt
parent5402d489c6f2731c7a81f70e359ab3ea0f3d88bf (diff)
downloadsubsurface-50ea5ec29655ffcaec03ff1322d6aaec8df6cbbb.tar.gz
CSV import: support for decimal comma on depth
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/csv2xml.xslt')
-rw-r--r--xslt/csv2xml.xslt4
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt
index 9ec697a4d..83b0d579a 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -272,10 +272,10 @@
<xsl:attribute name="depth">
<xsl:choose>
<xsl:when test="$units = 0">
- <xsl:value-of select="$depth"/>
+ <xsl:value-of select="translate($depth, ',', '.')"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="$depth * 0.3048"/>
+ <xsl:value-of select="translate($depth, ',', '.') * 0.3048"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>