summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-10-17 22:05:27 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-17 12:19:06 -0700
commit3ec687172096d9d47010fb843ce48cfaff5f8ba8 (patch)
treeec59422af3a8e339675aee4fcb8fb6579efccec4
parent861b524e7a9ec743bb4495f70565bca8f9f43619 (diff)
downloadsubsurface-3ec687172096d9d47010fb843ce48cfaff5f8ba8.tar.gz
Field variables for CSV import
Field variables for the CSV XSLT import have disappeared at some point during developing GUI for the CSV import. So adding them to the XSLT for the field selections to have effect. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--xslt/csv2xml.xslt6
1 files changed, 4 insertions, 2 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt
index faa9e9605..f3ec101d4 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -2,6 +2,8 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="commonTemplates.xsl"/>
<xsl:strip-space elements="*"/>
+ <xsl:param name="timeField" select="timeField"/>
+ <xsl:param name="depthField" select="depthField"/>
<xsl:param name="tempField" select="tempField"/>
<xsl:output method="xml" indent="yes"/>
@@ -42,7 +44,7 @@
<xsl:variable name="value">
<xsl:call-template name="getFieldByIndex">
- <xsl:with-param name="index" select="0"/>
+ <xsl:with-param name="index" select="$timeField"/>
<xsl:with-param name="line" select="$line"/>
</xsl:call-template>
</xsl:variable>
@@ -77,7 +79,7 @@
<xsl:attribute name="depth">
<xsl:call-template name="getFieldByIndex">
- <xsl:with-param name="index" select="1"/>
+ <xsl:with-param name="index" select="$depthField"/>
<xsl:with-param name="line" select="$line"/>
</xsl:call-template>
</xsl:attribute>