diff options
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/manualcsv2xml.xslt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt index ef6397580..50fc241e8 100644 --- a/xslt/manualcsv2xml.xslt +++ b/xslt/manualcsv2xml.xslt @@ -396,7 +396,15 @@ <xsl:value-of select="substring-before(substring-after($line, '"'), '"')"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select="concat(substring-after($line, '"'), substring-before($remaining, '"'))"/> + <xsl:choose> + <!-- quoted string has new line --> + <xsl:when test="string-length(substring-after($line, '"')) = string-length(translate(substring-after($line, '"'), '"', ''))"> + <xsl:value-of select="concat(substring-after($line, '"'), substring-before($remaining, '"'))"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="''"/> + </xsl:otherwise> + </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:when> |