Say I have the following XML:
<root>
<node attr="<b>hi</b>" />
<node attr="<b>bye</b>" />
</root>
How can I get the XSLT 1.0 code to render the actual HTML in the attribute?
This doesn't work as it ouputs <b>hi</b>.
<xsl:value-of select="@attr" disable-output-escaping="yes"/>
Any ideas?
Clarification
I am using this on SharePoint 2010 in a DVWP WebPart. The WebPart will let me use XSLT to transform the XML returned of a list into HTML that is displayed on the browser. Right now the rendered output is <b>hi</b> instead of bolded text. I guess what I need to do is disable-output-escaping twice. The first time will get the <b>hi</b> and the second time it'll be rendered. Make sense?
<b>hi</b>." What would you want it to output? -- P.S. That's not really what your XML looks like, is it? Because that would only generate an error.<b>hi</b>, then the HTML result is not what you say it is. It is hard to tell exactly what is happening here, because your XML is obviously not what you show us, and the XSLT is partial. I suggest you post enough code (XML + XSLT) to enable us to reproduce the issue.