summaryrefslogtreecommitdiffstats
path: root/xslt/manualcsv2xml.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-03-29 19:52:25 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-01 08:06:09 -0700
commit919cfc9deed532bfae9c5da510ebe778dc39760b (patch)
tree3944c9cad0b5b94e55f8af1270544f59ac143597 /xslt/manualcsv2xml.xslt
parentb585f65d500c62f27ee276e93337620b2d8d7dc4 (diff)
downloadsubsurface-919cfc9deed532bfae9c5da510ebe778dc39760b.tar.gz
Fix CSV import of cylinder pressures
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt/manualcsv2xml.xslt')
-rw-r--r--xslt/manualcsv2xml.xslt4
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt
index c2554309e..e563dea03 100644
--- a/xslt/manualcsv2xml.xslt
+++ b/xslt/manualcsv2xml.xslt
@@ -300,7 +300,7 @@
<xsl:value-of select="$start"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="format-number($start div 14.5037738, '#.###')"/>
+ <xsl:value-of select="format-number(translate($start, translate($start, '0123456789.,', ''), '') div 14.5037738, '#.#')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
@@ -318,7 +318,7 @@
<xsl:value-of select="$end"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="format-number($end div 14.5037738, '#.###')"/>
+ <xsl:value-of select="format-number(translate($end, translate($end, '0123456789.,', ''), '') div 14.5037738, '#.#')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>