[PATCH 2/4] CSV import: support for decimal comma on depth

Miika Turkia miika.turkia at gmail.com
Wed Nov 9 11:39:24 PST 2016


Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
 xslt/csv2xml.xslt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt
index 95ead33..93fc969 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -271,10 +271,10 @@
         <xsl:attribute name="depth">
           <xsl:choose>
             <xsl:when test="$units = 0">
-              <xsl:value-of select="$depth"/>
+              <xsl:value-of select="translate($depth, ',', '.')"/>
             </xsl:when>
             <xsl:otherwise>
-              <xsl:value-of select="$depth * 0.3048"/>
+              <xsl:value-of select="translate($depth, ',', '.') * 0.3048"/>
             </xsl:otherwise>
           </xsl:choose>
         </xsl:attribute>
-- 
2.5.0



More information about the subsurface mailing list