0

I have this statement

xsl:value-of select="metadata/line1"/

where line1 is in the souce xml is:

Microsoft Windows 7 is installed<br/&gt

The HTML output turns out to be:

Microsoft Windows 7 is installed<br/>

I want it to actually insert the break after the word installed instead of outputting the literal <br/>

Jim Garrison
  • 85,615
  • 20
  • 155
  • 190
tim tran
  • 705
  • 2
  • 11
  • 18

2 Answers2

0

Instead of xsl:select, use xsl:copy-of

It will render the HTML as well

See http://www.w3schools.com/xsl/el_copy-of.asp

You can even try <xsl:value-of select=" " disable-output-escaping="yes" />

Saksham
  • 9,037
  • 7
  • 45
  • 73
0

Seems that what you like to do is "unescape" some xml content. If I'm right disable-output-escaping should help. Try:

<xsl:value-of select="metadata/line1" disable-output-escaping="yes" />

E.g.: How to unescape XML characters with help of XSLT?

Community
  • 1
  • 1
hr_117
  • 9,589
  • 1
  • 18
  • 23