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>
This commit is contained in:
Anton Lundin 2014-07-09 22:13:38 +02:00 committed by Dirk Hohndel
parent d5991800ee
commit 6cd0928487
6 changed files with 49 additions and 8 deletions

View file

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