HTML in XML through XSL
Posted: Wed May 23, 2007 8:47 am
Hello everyone ! This is my first post and its very urgent for me
hope you guys will help me out here.
I have this xml in which I have html tags. I want to render the "<myhtml>" (as in example below) content through my XSL while retaining its formatting. At the moment my xsl (<xsl:value-of select="/top/myhtml"/>) is rendering <myhtml> node's inner content as it is without taking care of any formatting tags present inside the node.
e.g.
<top>
<myhtml>
Some <b>bold</b> content and some <i>italic</i> content
</myhtml>
</top>
Thanks in advance.

I have this xml in which I have html tags. I want to render the "<myhtml>" (as in example below) content through my XSL while retaining its formatting. At the moment my xsl (<xsl:value-of select="/top/myhtml"/>) is rendering <myhtml> node's inner content as it is without taking care of any formatting tags present inside the node.
e.g.
<top>
<myhtml>
Some <b>bold</b> content and some <i>italic</i> content
</myhtml>
</top>
Thanks in advance.