I have a XSLT document that I am trying to edit so that it will show the HTML correctly rather than showing the actual HTML tags. Below is a snipet of part of the XSLT and the HTML. When the page is rendered is shows the HTML tags instead of rendering them. Any help would be much appreciated.
Code XML:<!-- Test Template --> <xsl:template match="TestTemplate"> <table border="0" width="100%"> <tr><td><font style='font-family:Tahoma, Verdana, Geneva, sans-serif; font-size:14px; color:#c41130'><b><xsl:value-of select="Title"/></b></font></td></tr> </table> <table border="0"> <tr><td class="Label"><font style="color:#333333"><b>Title</b></font></td><td><font style="color:#333333"><xsl:value-of select="Title"/></font></td></tr> <tr><td class="Label"><font style="color:#333333"><b>Department</b></font></td><td><font style="color:#333333"><xsl:value-of select="Department"/></font></td></tr> <tr><td class="Label"><font style="color:#333333"><b>Type</b></font></td><td><font style="color:#333333"><xsl:value-of select="JobType"/></font></td></tr> </table> <table border="0" width="100%"> <tr><td class="line"><img src="/img/s.gif" height="1" width="1"/></td></tr> <tr><td><img src="/img/s.gif" height="5" width="1"/></td></tr> </table> <xsl:if test="(Description)"> <br/><font style='font-family:Tahoma, Verdana, Geneva, sans-serif; font-size:14px; color:#c41130'><b>Description</b></font><br/> <xsl:apply-templates select="Description/Line"/> <br/> </xsl:if> <br/> </xsl:template>
Test HTML that is showing the html tags instead of rendering them.
HTML Code:<b>TEST HEADING</b> <ul><li></li>This should be a list.</li> <li>This should be a list.</li> <li>This should be a list.</li> <li>This should be a list.</li> <li>This should be a list.</li> <li>This should be a list.</li></ul>


Reply With Quote

Bookmarks