Reputation: 2065
I know it's been asked numerous times and while my question might seem to be a duplicate, I can't make the list of solutions work. How come that doesn't seem to add "\r\n" or CRLF in my output file ?
<xsl:variable name="Newline">
</xsl:variable>
...
<xsl:text>UpperLine</xsl:text>
<xsl:value-of select="$Newline"/>
<xsl:text>LowerLine</xsl:text>
Even when looking a tthe hexadcimal representation of the file, I can't see the 0d0a equivalent of CRLF (I can only see the ones at the end)
I've also tried this with no success either :
<xsl:value-of select="concat('New Line', ' ')"/>
Upvotes: 2
Views: 1296
Reputation: 3435
change your variable declaration to this:
<xsl:variable name="Newline"><xsl:text>
</xsl:text></xsl:variable>
Upvotes: 6