SitePoint Sponsor

User Tag List

Results 1 to 1 of 1

Threaded View

  1. #1
    SitePoint Member
    Join Date
    Mar 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XSLT Not Rendering HTML

    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>
    Last edited by Mittineague; Mar 23, 2011 at 19:21. Reason: reformatting bbcode tags


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •