From: David G. <dav...@po...> - 2004-08-20 00:28:08
|
Colin McCormack <co...@ch...> wrote: >On Fri, 2004-08-20 at 07:58, David Gravereaux wrote: >> Ok, Say I want to do an http::getUrl on >> http://www.npr.org/rss/rss.php?topicId=2 while generating a page from a >> template on the server. How do I make the XML into a formatted table all >> dynamically? Yes, I've never done this before. > >You know, since RSS is XML, and since XML can be formatted with CSS, you >can actually just slap a stylesheet into the RSS (as a PI <? ?>) and let >the browser do the formatting for you. I saw this technique on the net, >but haven't tracked it closely, here's one apparent tutorial I dug up >just now: http://www.crystalflame.net/2003/12/rss_with_css.html I tried browsing around for examples, but couldn't find anything useful... Just blogs linking to other blogs and back around again. While doing it, I thought.. Hey this is Tcl.. The more server-side work I can do to simplify it into HTML 4.01 (or whatever), the less browser requirements I need. What started me thinking about RSS was the feed that Sophus does for the latest virii info: http://www.sophos.com/virusinfo/infofeed/more.html That feed is done in javascript on the client-side. I think I want to try a pure server-side way. Mostly for fun, just to see how to do it. Off the wiki RSS page, I'm getting this to do stuff with some edits: http://neko.homeunix.net/~petterik/rss.cgi >It can work really nicely, the pages under >http://sharedtech.dyndns.org/~colin/treecl/docs/ are all pure XML with >CSS style. > >Hope this helps. I'm off and running. Yes, it does help. I'm set for now, but as yet I don't understand the difference between the RSS versions (0.91, 2.0.1, etc.) and what all the contents of RDF are and what it all means.. Fun stuff. -- David Gravereaux <dav...@po...> [species: human; planet: earth,milkyway(western spiral arm),alpha sector] |