So what I'm doing is designing a homepage that displays the latest news from multiple RSS sources. I figure that once I get one of the feeds to show correctly, I can get the formatting right and just place each in its own div.
What I'm trying to do is something like iGoogle has, where I can click a button next to the title and a short description of the story shows up. So that's the first script in the html file. The second is transforming the XML (RSS) file using my XSLT. I'm trying to get it to display only 5 items as well, but I am not quite sure how to do that. It's probably just some simple code I'll have to add to the XSL, but I just don't know it. Also, when I click on the title to try to collapse the description, it always does the first story. You'll see when you try it. And while I'm at it, The CNN RSS feed has these stupid links to digg and some other stuff in every description. Is there a way to leave those out?
http://kyleblast3.web44.net/rss_stylesheet.xsl <---- XSL stylesheet
http://kyleblast3.web44.net/my_feeds.html <---HTML with JS scripts
There's the links to the files. You can check the source for code. The HTML page doesn't come up at all (it does when I'm using my local files), so that's another issue.
So here's what I would like to know: Getting maximum items to 5 (or any arbitrary number); getting the collapse to work on each individual element; getting it to work when uploaded; and getting those links out of the description. Thanks for your help!
|