We use a XSL transformation to emit HTML. The XSL template for transforming a message
node is as follows:
<xsl:if test="Message/text() and not(Message/text()='')">
<tr>
<td style="font-size:14">
<b>
<xsl:value-of select="Message/text()"/>
</b>
</td>
</tr>
</xsl:if>
The Message emitted by java code is in the following format (illustration):
Update of Key 1 failed becasue...
Update of Key 2 failed becasue...
Update of Key 3 failed becasue...
(Each failure followed by a line break).
How can I display this data with line breaks on the resulting HTML? At present, it swallows the line breaks.
` or `
– Jordi Castilla May 19 '15 at 08:59`?
to the text before feedign to the the XSL,it gets emitted as is - instead of being interpreted as a line break in html. – IUnknown May 19 '15 at 10:14
` tag instead of `
`. – Bram Vanroy Jan 23 '16 at 10:28