How to render HTML tags from XML in an XSLT transformation?
Posted on 2006-05-10
I have a small XSLT file that has an output method set as follows:
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
The problem that I have is that the XSLT file is transformed against XML from a database. This XML contains html tags such as <strong and <b and the tags are displayed in the output of the page. What I want is for the result of the transform to result in the HTML tags being applied in the output.
For example, The <u>knees</u> are <em>good</em> for walking should be displayed in the output with the knees underlined and the good bold but I get only the text with the tags as text.
The XSLT is transformed via an ASP.NET XML control.
Thanks for any help given I am really stuck.