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/>
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" />
Comments
Post a Comment