diff options
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/manualcsv2xml.xslt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt index 877410ba7..ef6397580 100644 --- a/xslt/manualcsv2xml.xslt +++ b/xslt/manualcsv2xml.xslt @@ -392,13 +392,11 @@ <xsl:choose> <xsl:when test="substring($line, 1, 1) = '"'"> <xsl:choose> - <xsl:when test="substring-before($line,'"$fs') != ''"> - <xsl:value-of select="substring-before($line,'"$fs')"/> + <xsl:when test="substring-before(substring-after($line, '"'), '"') != ''"> + <xsl:value-of select="substring-before(substring-after($line, '"'), '"')"/> </xsl:when> <xsl:otherwise> - <xsl:if test="substring-after(substring-after($line, '"'), '"') = ''"> - <xsl:value-of select="concat(substring-after($line, '"'), substring-before($remaining, '"'))"/> - </xsl:if> + <xsl:value-of select="concat(substring-after($line, '"'), substring-before($remaining, '"'))"/> </xsl:otherwise> </xsl:choose> </xsl:when> |