Producing a new line in XSLT

xslt

I want to produce a newline for text output in XSLT. Any ideas?

Best Answer

The following XSL code will produce a newline (line feed) character:

<xsl:text>&#xa;</xsl:text>

For a carriage return, use:

<xsl:text>&#xd;</xsl:text>
Related Topic