aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xslt/xml2csv.xslt4
-rw-r--r--xslt/xml2manualcsv.xslt2
2 files changed, 3 insertions, 3 deletions
diff --git a/xslt/xml2csv.xslt b/xslt/xml2csv.xslt
index e4a40cc74..a0492cbba 100644
--- a/xslt/xml2csv.xslt
+++ b/xslt/xml2csv.xslt
@@ -41,10 +41,10 @@
<xsl:value-of select="$fs"/>
<xsl:choose>
<xsl:when test="$units = 1">
- <xsl:value-of select="concat('&quot;', round((substring-before(@depth, ' ') div 0.3048) * 1000) div 1000, '&quot;')"/>
+ <xsl:value-of select="concat('&quot;', format-number(substring-before(@depth, ' ') div 0.3048, '#.###'), '&quot;')"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="concat('&quot;', round(substring-before(@depth, ' ') * 1000) div 1000, '&quot;')"/>
+ <xsl:value-of select="concat('&quot;', format-number(substring-before(@depth, ' '), '#.###'), '&quot;')"/>
</xsl:otherwise>
</xsl:choose>
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt
index a2f941da0..1f0336171 100644
--- a/xslt/xml2manualcsv.xslt
+++ b/xslt/xml2manualcsv.xslt
@@ -241,7 +241,7 @@
<xsl:value-of select="concat(format-number((substring-before(@mean, ' ') div 0.3048), '#.##'), '')"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="substring-before(@mean, ' ')"/>
+ <xsl:value-of select="format-number(substring-before(@mean, ' '), '#.##')"/>
</xsl:otherwise>
</xsl:choose>
<xsl:text>&quot;</xsl:text>