diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-01-26 18:44:39 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-26 09:25:36 -0800 |
commit | 81c0f39fa797578006ba309c00d604b0cea45748 (patch) | |
tree | 7925cd31c9144b000e13054b4649135799c21a1f | |
parent | 793758c483210cd472406acbadaf1f4019b019fe (diff) | |
download | subsurface-81c0f39fa797578006ba309c00d604b0cea45748.tar.gz |
Use the get field template from common templates
Implementation of getFieldByIndex on this file does not support
quotation so lets use a template that is developed further.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | xslt/csv2xml.xslt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt index 4d9aa868f..dba207052 100644 --- a/xslt/csv2xml.xslt +++ b/xslt/csv2xml.xslt @@ -241,28 +241,4 @@ </xsl:if> </xsl:template> - <xsl:template name="getFieldByIndex"> - <xsl:param name="index"/> - <xsl:param name="line"/> - <xsl:choose> - <xsl:when test="$index > 0"> - <xsl:call-template name="getFieldByIndex"> - <xsl:with-param name="index" select="$index -1"/> - <xsl:with-param name="line" select="substring-after($line, $fs)"/> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:choose> - <xsl:when test="substring-before($line,$fs) != ''"> - <xsl:value-of select="substring-before($line,$fs)"/> - </xsl:when> - <xsl:otherwise> - <xsl:if test="substring-after($line, $fs) = ''"> - <xsl:value-of select="$line"/> - </xsl:if> - </xsl:otherwise> - </xsl:choose> - </xsl:otherwise> - </xsl:choose> - </xsl:template> </xsl:stylesheet> |