Producing a new line in XSLT

Mithil picture Mithil · Apr 6, 2009 · Viewed 239k times · Source

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

Answer

Florjon picture Florjon · Aug 19, 2010

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>