CSV import: simplify code
These two cases were identical, so simplifying the code. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
f96d155759
commit
9540793552
@ -292,22 +292,11 @@
|
||||
<xsl:param name="remaining"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$index > 0">
|
||||
<xsl:choose>
|
||||
<xsl:when test="substring($line, 1, 1) = '"'">
|
||||
<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: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:choose>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user