summaryrefslogtreecommitdiffstats
path: root/xslt/manualcsv2xml.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-03-29 07:20:01 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-01 08:06:09 -0700
commit5174ac57bed18970b2511a10411c957e609cb7d7 (patch)
tree03a3f0a1227c6e72a5d471b6d8d052e36fc877aa /xslt/manualcsv2xml.xslt
parent2f721cbbf06239a6841256442ee79bf8239fe4cb (diff)
downloadsubsurface-5174ac57bed18970b2511a10411c957e609cb7d7.tar.gz
Limit max depth precision on CSV import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
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 9f9109248..439391b68 100644
--- a/xslt/manualcsv2xml.xslt
+++ b/xslt/manualcsv2xml.xslt
@@ -357,7 +357,7 @@
<xsl:value-of select="translate($maxDepth, translate($maxDepth, '1234567890,.', ''), '')"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="translate(translate($maxDepth, translate($maxDepth, '1234567890,.', ''), ''), ',', '.') * 0.3048"/>
+ <xsl:value-of select="format-number(translate(translate($maxDepth, translate($maxDepth, '1234567890,.', ''), ''), ',', '.') * 0.3048, '#.##')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>