Hi,
I'm having a problem here converting an XML document into HTML using XSLT. The problem is that the XML document contains entity references for characters such as < which I really need converted into their character versions in the output document.
For example, part of the XML document might contain:
In my HTML output I need this to be rendered as:
Otherwise the browser (IE6 in this case) displays the characters <p> in the viewed document rather than the intended markup.
The output type for the XSLT is set to html. Using disable-output-escaping didn't make any difference either.
Can someone help before I pull the rest of my hair out? I'm fairly new to XSLT so could be missing something really simple.
Thanks,
Jim
I'm having a problem here converting an XML document into HTML using XSLT. The problem is that the XML document contains entity references for characters such as < which I really need converted into their character versions in the output document.
For example, part of the XML document might contain:
Code:
<description>this is some text. <p;> And some more text</description>
In my HTML output I need this to be rendered as:
Code:
this is some text. <p> And some more text
Otherwise the browser (IE6 in this case) displays the characters <p> in the viewed document rather than the intended markup.
The output type for the XSLT is set to html. Using disable-output-escaping didn't make any difference either.
Can someone help before I pull the rest of my hair out? I'm fairly new to XSLT so could be missing something really simple.
Thanks,
Jim