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>
This commit is contained in:
Anton Lundin 2014-07-10 20:54:18 +02:00 committed by Dirk Hohndel
parent 9262d8a518
commit 89d74888b3
6 changed files with 48 additions and 9 deletions

View file

@ -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>