summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-07-10 20:54:18 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-10 12:40:25 -0700
commit89d74888b395b29cf0ff75b3d844720428300164 (patch)
tree8d24c17a6d1e5735c4f54f7892a5f47fe7c3074e /xslt
parent9262d8a5187475b157dde399f84b58ee0ff8e4b5 (diff)
downloadsubsurface-89d74888b395b29cf0ff75b3d844720428300164.tar.gz
Add support for importing pressure 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 74770f4ad..f2a11dae3 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -11,6 +11,7 @@
<xsl:param name="ndlField" select="ndlField"/>
<xsl:param name="ttsField" select="ttsField"/>
<xsl:param name="stopdepthField" select="stopdepthField"/>
+ <xsl:param name="pressureField" select="pressureField"/>
<xsl:param name="date" select="date"/>
<xsl:param name="time" select="time"/>
<xsl:param name="units" select="units"/>
@@ -222,6 +223,15 @@
</xsl:choose>
</xsl:attribute>
</xsl:if>
+
+ <xsl:if test="$pressureField >= 0">
+ <xsl:attribute name="pressure">
+ <xsl:call-template name="getFieldByIndex">
+ <xsl:with-param name="index" select="$pressureField"/>
+ <xsl:with-param name="line" select="$line"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ </xsl:if>
</sample>
</xsl:if>
</xsl:template>