-
XML "<" character?
Hi
I have the following node in a xml doc:
<message>when the amount is < 1000 bla bla bla </message>
My question is: how can I display the text of the message tag, seeing that the "<" char is invalid in the xml doc.
or is it possible to include "<br>" in my xml doc so that when I write the contents of a large noge with xsl to html, there would be a break??
-
-
It doesnt seem to work. If I put < into the text of my node and render it with my xsl , all I see is "when the amount is lt; 1000 bla bla bla "
when i put <br /> into my xml file, all I see is "when the amount is 1000 bla bla bla "
???
-
You need to use the 'disable-output-escaping' attribute to render the output correctly:
Code:
<xsl:template match="MESSAGE">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:template>