|
-
Nov 7th, 2002, 05:06 PM
#1
Thread Starter
Addicted Member
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??
-
Nov 7th, 2002, 05:13 PM
#2
-
Nov 8th, 2002, 07:19 AM
#3
Thread Starter
Addicted Member
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 "
???
-
Nov 9th, 2002, 01:49 AM
#4
PowerPoster
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>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|