diff options
author | Anton Lundin <glance@acc.umu.se> | 2013-11-21 23:48:42 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-21 15:54:28 -0800 |
commit | 26656310aba5f5de5c873603f8e74d56283d12a9 (patch) | |
tree | eff92577e6a5a04978c37ca4176c824af21ad3b6 /xslt/csv2xml.xslt | |
parent | 5eccd73a306298616da122ba4e653d4c8f391df8 (diff) | |
download | subsurface-26656310aba5f5de5c873603f8e74d56283d12a9.tar.gz |
Add optional support for stopdepth import from csv
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/csv2xml.xslt')
-rw-r--r-- | xslt/csv2xml.xslt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt index 382bb2be6..07aa91d55 100644 --- a/xslt/csv2xml.xslt +++ b/xslt/csv2xml.xslt @@ -7,6 +7,7 @@ <xsl:param name="tempField" select="tempField"/> <xsl:param name="po2Field" select="po2Field"/> <xsl:param name="cnsField" select="cnsField"/> + <xsl:param name="otuField" select="otuField"/> <xsl:param name="date" select="date"/> <xsl:param name="time" select="time"/> <xsl:output method="xml" indent="yes"/> @@ -129,6 +130,17 @@ </xsl:when> </xsl:choose> </xsl:attribute> + + <xsl:attribute name="otu"> + <xsl:choose> + <xsl:when test="$otuField >= 0"> + <xsl:call-template name="getFieldByIndex"> + <xsl:with-param name="index" select="$otuField"/> + <xsl:with-param name="line" select="$line"/> + </xsl:call-template> + </xsl:when> + </xsl:choose> + </xsl:attribute> </sample> </xsl:if> </xsl:template> |