jesus4u
Mar 25th, 2004, 07:48 AM
Using the XSL below why does my news feed NOT render the HTML tags? It just shows the markup itself, like the <i></i> tags and so on. Take a look at the news headline "15-Year-Old Dies After Taking Abortion Pill" at the words <i>Life News</i>:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:param name="TITLE"/>
<xsl:template match="rss">
<!-- Do not show channel image -->
<xsl:for-each select="channel/item">
<br>
<strong><a href="{link}" target="_blank"><xsl:value-of select="title"/></a></strong><br></br>
<!-- only display markup for description if it's present -->
<xsl:value-of select="description"/>
</br>
<br></br>
</xsl:for-each>
</xsl:template>
<xsl:template match="description">
<br>
<xsl:value-of select="."/>
</br>
</xsl:template>
</xsl:stylesheet>
http://www.reclaimamerica.org/PAGES/NEWS/NewsFeeds/rss.aspx
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:param name="TITLE"/>
<xsl:template match="rss">
<!-- Do not show channel image -->
<xsl:for-each select="channel/item">
<br>
<strong><a href="{link}" target="_blank"><xsl:value-of select="title"/></a></strong><br></br>
<!-- only display markup for description if it's present -->
<xsl:value-of select="description"/>
</br>
<br></br>
</xsl:for-each>
</xsl:template>
<xsl:template match="description">
<br>
<xsl:value-of select="."/>
</br>
</xsl:template>
</xsl:stylesheet>
http://www.reclaimamerica.org/PAGES/NEWS/NewsFeeds/rss.aspx