Welcome to WebmasterWorld Guest from

Forum Moderators: bill & werty

Message Too Old, No Replies

Please teach me.

Help me creating RSS

3:50 am on Jul 24, 2006 (gmt 0)

New User

10+ Year Member

joined:Mar 17, 2006
votes: 0

Guys please help creating an RSS regarding nursing.. Can i add a dynamic html page to my site? Not java script..
4:14 am on July 28, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:July 26, 2006
votes: 0

Would you be interested in a Classic ASP RSS Feed?

Create the following Subroutine

Sub GetRssFeed (strFeedUrl)
dim objXML, objXSL
set objXML=server.CreateObject("MSXML2.DOMDocument")
set objXSL=server.CreateObject("MSXML2.DOMDocument")
objXML.setProperty "ServerHTTPRequest",true
objXML.load strFeedUrl
objXSL.load Server.MapPath("rssStyle.xslt")
'response.write "<html><head><title>RSS Feed Reader</title></head><body>"
response.write objXML.transformNode(objXSL)
'response.write "</body></html>"
set objXML=nothing
set objXSL=nothing
end sub

Create the Dynamic ASP page. The following has three RSS feeds. Just look for the Nursing feed and substitute the URL.

<h2>What's New At Google</h2>
<%GetRssFeed "http://news.com.com/2063-10812_3-0.xml"%><br><br>
<h2>Technology News</h2>
<%GetRssFeed "http://www.nytimes.com/services/xml/rss/nyt/Technology.xml"%><br><br>
<h2>SEO Chat</h2>
<%GetRssFeed "http://feeds.feedburner.com/#*$!/articles/"%><br><br>

Save the ASP page.

Last create the "rssStyle.xslt" page and save it in the same directory location as the web page.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" omit-xml-declaration="yes" />

<xsl:template match="/rss/channel">
<b><xsl:value-of select="title" disable-output-escaping="yes" /></b>
<xsl:for-each select="item">
<xsl:attribute name="href">
<xsl:value-of select="link" />
<xsl:attribute name="target">_blank</xsl:attribute>
<xsl:value-of select="title" disable-output-escaping="yes" />
(<xsl:value-of select="pubDate" />)

Save this code as "rssStyle.xslt"

Good luck

Jim Catanich


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members