summaryrefslogtreecommitdiffstats
path: root/xslt/manualcsv2xml.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2016-11-10 06:47:46 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-11-15 03:24:12 -0800
commit2d69f8c9d09af18355c37e90eb970c5b33936d59 (patch)
tree4987c64766cf2c5587a9143012d7215384c410c2 /xslt/manualcsv2xml.xslt
parent6d6caf8620d637a709583030c9a19682db742d23 (diff)
downloadsubsurface-2d69f8c9d09af18355c37e90eb970c5b33936d59.tar.gz
CSV import: convert imperial mean depth to metric
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/manualcsv2xml.xslt')
-rw-r--r--xslt/manualcsv2xml.xslt2
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt
index da73c458d..a0a73273f 100644
--- a/xslt/manualcsv2xml.xslt
+++ b/xslt/manualcsv2xml.xslt
@@ -375,7 +375,7 @@
<xsl:value-of select="translate($meanDepth, translate($meanDepth, '1234567890,.', ''), '')"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="translate(translate($meanDepth, translate($meanDepth, '1234567890,.', ''), ''), ',', '.')"/>
+ <xsl:value-of select="translate(translate($meanDepth, translate($meanDepth, '1234567890,.', ''), ''), ',', '.') * 0.3048"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>