xslt - How do I output line breaks from xsl:value of -


i have statement

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

where line1 in souce xml is:

microsoft windows 7 installed<br/&gt 

the html output turns out be:

microsoft windows 7 installed<br/> 

i want insert break after word installed instead of outputting literal <br/>

seems "unescape" 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 unescape xml characters of xslt?


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -