Add optional support for cns import 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 2013-11-21 23:48:41 +01:00 committed by Dirk Hohndel
parent 8dde12fa35
commit 5eccd73a30
6 changed files with 52 additions and 6 deletions

View file

@ -6,6 +6,7 @@
<xsl:param name="depthField" select="depthField"/>
<xsl:param name="tempField" select="tempField"/>
<xsl:param name="po2Field" select="po2Field"/>
<xsl:param name="cnsField" select="cnsField"/>
<xsl:param name="date" select="date"/>
<xsl:param name="time" select="time"/>
<xsl:output method="xml" indent="yes"/>
@ -117,6 +118,17 @@
</xsl:when>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="cns">
<xsl:choose>
<xsl:when test="$cnsField >= 0">
<xsl:call-template name="getFieldByIndex">
<xsl:with-param name="index" select="$cnsField"/>
<xsl:with-param name="line" select="$line"/>
</xsl:call-template>
</xsl:when>
</xsl:choose>
</xsl:attribute>
</sample>
</xsl:if>
</xsl:template>