summaryrefslogtreecommitdiffstats
path: root/xslt/subsurfacecsv.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-01-31 19:09:21 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-31 10:14:31 -0800
commit7a6b91a67ef64f7b29c511c87489b9932a13ae40 (patch)
tree7218be92ca43ba72e2dc720ecd6a5021f48bee67 /xslt/subsurfacecsv.xslt
parent8eb25f67003d9f513094edf2b2f8e0224854e905 (diff)
downloadsubsurface-7a6b91a67ef64f7b29c511c87489b9932a13ae40.tar.gz
Should use the common GetFieldByIndex on import
Should have removed the getFieldByIndex template from these files when it was moved to commonTemplates. Otherwise these imports wont work. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/subsurfacecsv.xslt')
-rw-r--r--xslt/subsurfacecsv.xslt63
1 files changed, 0 insertions, 63 deletions
diff --git a/xslt/subsurfacecsv.xslt b/xslt/subsurfacecsv.xslt
index cb59cc9f0..871d70f99 100644
--- a/xslt/subsurfacecsv.xslt
+++ b/xslt/subsurfacecsv.xslt
@@ -384,67 +384,4 @@
</xsl:if>
</xsl:template>
- <xsl:template name="getFieldByIndex">
- <xsl:param name="index"/>
- <xsl:param name="line"/>
- <xsl:param name="remaining"/>
- <xsl:choose>
- <xsl:when test="$index > 0">
- <xsl:choose>
- <xsl:when test="substring($line, 1, 1) = '&quot;'">
- <xsl:call-template name="getFieldByIndex">
- <xsl:with-param name="index" select="$index -1"/>
- <xsl:with-param name="line" select="substring-after($line, $fs)"/>
- <xsl:with-param name="remaining" select="$remaining"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="getFieldByIndex">
- <xsl:with-param name="index" select="$index -1"/>
- <xsl:with-param name="line" select="substring-after($line, $fs)"/>
- <xsl:with-param name="remaining" select="$remaining"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="substring($line, 1, 1) = '&quot;'">
- <xsl:choose>
- <xsl:when test="substring-before($line,'&quot;$fs') != ''">
- <xsl:value-of select="substring-before($line,'&quot;$fs')"/>
- </xsl:when>
- <xsl:when test="substring-before(substring-after($line, '&quot;'), '&quot;') != '' and substring-after(substring-after($line, '&quot;'), '&quot;') = ''">
- <xsl:value-of select="substring-before(substring-after($line, '&quot;'), '&quot;')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="substring-after(substring-after($line, '&quot;'), '&quot;') = ''">
- <xsl:value-of select="concat(substring-after($line, '&quot;'), $lf, substring-before($remaining, '&quot;'))"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="substring-before(substring-after($line, '&quot;'), '&quot;')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </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:otherwise>
- </xsl:choose>
-
- </xsl:template>
</xsl:stylesheet>