diff options
-rw-r--r-- | xslt/csv2xml.xslt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt index f3ec101d4..f50457257 100644 --- a/xslt/csv2xml.xslt +++ b/xslt/csv2xml.xslt @@ -28,9 +28,12 @@ <xsl:template name="printLine"> <xsl:param name="line"/> <xsl:param name="remaining"/> - <xsl:call-template name="printFields"> - <xsl:with-param name="line" select="$line"/> - </xsl:call-template> + + <xsl:if test="substring-before($line, $fs) != substring-before(substring-before($remaining, $lf), $fs)"> + <xsl:call-template name="printFields"> + <xsl:with-param name="line" select="$line"/> + </xsl:call-template> + </xsl:if> <xsl:if test="$remaining != ''"> <xsl:call-template name="printLine"> <xsl:with-param name="line" select="substring-before($remaining, $lf)"/> |