diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-07-09 22:13:38 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-09 13:22:00 -0700 |
commit | 6cd0928487dc64238aad40b41f929bfdbc01d824 (patch) | |
tree | dbd7589d86dd3186128780e84a21cf7fc5477196 /xslt/csv2xml.xslt | |
parent | d5991800eed5af6d84e91706764817211876b03a (diff) | |
download | subsurface-6cd0928487dc64238aad40b41f929bfdbc01d824.tar.gz |
Add support for importing TTS from CSV files
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 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt index 034eb9319..74770f4ad 100644 --- a/xslt/csv2xml.xslt +++ b/xslt/csv2xml.xslt @@ -9,6 +9,7 @@ <xsl:param name="cnsField" select="cnsField"/> <xsl:param name="otuField" select="otuField"/> <xsl:param name="ndlField" select="ndlField"/> + <xsl:param name="ttsField" select="ttsField"/> <xsl:param name="stopdepthField" select="stopdepthField"/> <xsl:param name="date" select="date"/> <xsl:param name="time" select="time"/> @@ -187,6 +188,15 @@ </xsl:attribute> </xsl:if> + <xsl:if test="$ttsField >= 0"> + <xsl:attribute name="tts"> + <xsl:call-template name="getFieldByIndex"> + <xsl:with-param name="index" select="$ttsField"/> + <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"> |