summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xslt/csv2xml.xslt2
-rw-r--r--xslt/xml2csv.xslt4
2 files changed, 3 insertions, 3 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt
index e3864025e..fd08c8b57 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -327,7 +327,7 @@
<xsl:value-of select="translate($depth, ',', '.')"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="translate(translate($depth, translate($depth, '0123456789,.', ''), ''), ',', '.') * 0.3048"/>
+ <xsl:value-of select="round(translate(translate($depth, translate($depth, '0123456789,.', ''), ''), ',', '.') * 0.3048 * 1000) div 1000"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
diff --git a/xslt/xml2csv.xslt b/xslt/xml2csv.xslt
index 093f8ea81..211597325 100644
--- a/xslt/xml2csv.xslt
+++ b/xslt/xml2csv.xslt
@@ -34,10 +34,10 @@
<xsl:value-of select="$fs"/>
<xsl:choose>
<xsl:when test="$units = 1">
- <xsl:value-of select="concat('&quot;', format-number((substring-before(@depth, ' ') div 0.3048), '#.#'), ' ft&quot;')"/>
+ <xsl:value-of select="concat('&quot;', round((substring-before(@depth, ' ') div 0.3048) * 1000) div 1000, ' ft&quot;')"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="concat('&quot;', substring-before(@depth, ' '), '&quot;')"/>
+ <xsl:value-of select="concat('&quot;', round(substring-before(@depth, ' ') * 1000) div 1000, '&quot;')"/>
</xsl:otherwise>
</xsl:choose>