0

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.

TT.
  • 15,774
  • 6
  • 47
  • 88
IUnknown
  • 9,301
  • 15
  • 50
  • 76

0 Answers0