Forum Moderators: open
I was wondering if anyone would be so kind as to provide the ASP/VBScript and XSL code to properly display Yahoo! News RSS feed.
This is the URL to Yahoo! News RSS feed listing:
We are using IIS 5 and MSXML4, but are having trouble getting the Yahoo! News rss feed to display properly. Any help is appreciated.
Thanks in advance.
This is the style sheet that I use for formatting the WebmasterWorld RSS headlines into my web page:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" standalone="no"/>
<xsl:param name="date"/>
<xsl:template match="rss">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="child::channel">
<div style="BORDER-RIGHT: gray thin solid;BORDER-TOP: gray thin solid;BORDER-LEFT: gray thin solid;BORDER-BOTTOM: gray thin solid">
<span class="heading">Selected threads from <a href="http://www.webmasterworld.com">WebmasterWorld.Com</a></span><br />
<span class="tiny">For <xsl:value-of select="$date"/></span>
<ul>
<xsl:apply-templates/>
<li><a href="http://www.webmasterworld.com/library.cgi?sortby=Date-Last-Post&sortdir=rvs&ashow=100">More threads...</a></li>
</ul>
</div>
</xsl:template>
<xsl:template match="child::item">
<li><a href="{child::link}" title="{child::description}"><xsl:value-of select="child::title"/></a></li>
</xsl:template>
<xsl:template match="child::*"/>
</xsl:stylesheet>