Forum Moderators: open

Message Too Old, No Replies

Yahoo RSS Feed / ASP VBScript

Cut and Paste Code

         

CustomFit

6:05 pm on Oct 6, 2003 (gmt 0)

10+ Year Member



Hi, I hope I am posting this to the right forum.

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:

[news.yahoo.com ]

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.

duckhunter

3:33 am on Oct 7, 2003 (gmt 0)

10+ Year Member



Pretty comprehensive overview with examples

[msdn.microsoft.com ]

[msdn.microsoft.com ]

Xoc

7:31 am on Oct 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member


See this article: http://www.webmasterworld.com/forum21/385.htm

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&amp;sortdir=rvs&amp;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>