summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-07-09 22:13:37 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-09 13:22:00 -0700
commitd5991800eed5af6d84e91706764817211876b03a (patch)
tree1d12c3eebbf3c236ce783714d8b9cd3bd51bd5a2 /xslt
parent848a5352c7afedd530186ae842719e8f67c8c66a (diff)
downloadsubsurface-d5991800eed5af6d84e91706764817211876b03a.tar.gz
Add support for importing NDL from CSV files
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/csv2xml.xslt10
1 files changed, 10 insertions, 0 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt
index 5ae689a0b..034eb9319 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -8,6 +8,7 @@
<xsl:param name="po2Field" select="po2Field"/>
<xsl:param name="cnsField" select="cnsField"/>
<xsl:param name="otuField" select="otuField"/>
+ <xsl:param name="ndlField" select="ndlField"/>
<xsl:param name="stopdepthField" select="stopdepthField"/>
<xsl:param name="date" select="date"/>
<xsl:param name="time" select="time"/>
@@ -177,6 +178,15 @@
</xsl:attribute>
</xsl:if>
+ <xsl:if test="$ndlField >= 0">
+ <xsl:attribute name="ndl">
+ <xsl:call-template name="getFieldByIndex">
+ <xsl:with-param name="index" select="$ndlField"/>
+ <xsl:with-param name="line" select="$line"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ </xsl:if>
+
<xsl:if test="$stopdepthField >= 0">
<xsl:variable name="stopdepth">
<xsl:call-template name="getFieldByIndex">