Displaying RSS in HTML

topic posted Wed, November 14, 2007 - 2:48 PM by  jazzlamb
I am new to RSS. I am looking to display the RSS feed I've generated in a website I've built in HTML, designed with CSS. Does anyone have any experience with this. I have not been able to find a solution, though I know I need to attach an XSL stylesheet to the XML file.

I am looking to display the feed in two different locations: the first being inside a sidebar that is on every page; and the second, on a main page that will list the entire feed.

Any help is much appreciated. Thanks.

Jazzlamb
posted by:
jazzlamb
Canada
  • Re: Displaying RSS in HTML

    Wed, November 14, 2007 - 4:59 PM
    It doesnt sound to me like you need to ask the question as youve answered it yourself :-) XSLT is the key here. You need to make a transformation to convert the RSS xml into xhtml.
    I might start here: www.w3schools.com/xsl/default.asp although you may have a tut site you prefer over w3schools.

    Alternatively if you have php on the server you could always load the RSS xml with SimplXML or DOMDocument and extract what you need with dom methods and then use that yo manually build it into xhtml. That would be the longer, less elegant solution programatically though.

Recent topics in "- webdesign -"