I am generating an XML that is having CRLF in it
<col4>
* Comment # 1
* Comment # 2
* Comment # 2
* Comment # 3
* Comment # 3 edited
</col4>
Now i am transforming it into HTML after transformation the CRLF are missing from output. The output in HTML is generating following (CRLF are missing)
* Comment # 1 * Comment # 2 * Comment # 2 * Comment # 3 * Comment # 3 edited
I am already using
<xsl:preserve-space elements="*" />
and
<xsl:value-of select="." disable-output-escaping="yes"/>
Kindly tell me how can i retain the CRLF in the output.
` tags to show the line breaks in HTML. See http://stackoverflow.com/questions/3309746/how-to-convert-newline-into-br-with-xslt for how to do this in XSLT 1.0. – Tim C Sep 02 '16 at 10:15