From: David G. <dav...@po...> - 2004-08-19 21:58:51
|
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. -- David Gravereaux <dav...@po...> [species: human; planet: earth,milkyway(western spiral arm),alpha sector] |
From: David G. <dav...@po...> - 2004-08-19 22:56:37
|
Yup, that works.. I should always check the wiki about these things.. Thanks. Brett Schwarz <bre...@ya...> wrote: >Hey Dave, > >I've never tried it, but this link may help: > >http://wiki.tcl.tk/4341 > > --brett > >--- David Gravereaux <dav...@po...> 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. >> -- >> David Gravereaux <dav...@po...> >> [species: human; planet: earth,milkyway(western >> spiral arm),alpha sector] >> >> >> >------------------------------------------------------- >> SF.Net email is sponsored by Shop4tech.com-Lowest >> price on Blank Media >> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R >> for only $33 >> Save 50% off Retail on Ink & Toner - Free Shipping >> and Free Gift. >> >http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >> _______________________________________________ >> TclHttpd-users mailing list >> Tcl...@li... >> >https://lists.sourceforge.net/lists/listinfo/tclhttpd-users >> > > -- David Gravereaux <dav...@po...> [species: human; planet: earth,milkyway(western spiral arm),alpha sector] |
From: Colin M. <co...@ch...> - 2004-08-19 23:00:37
|
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 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. -- Colin McCormack <co...@ch...> |
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] |
From: Colin M. <co...@ch...> - 2004-08-20 00:51:43
|
On Fri, 2004-08-20 at 10:28, David Gravereaux wrote: > Colin McCormack <co...@ch...> wrote: > > >On Fri, 2004-08-20 at 07:58, David Gravereaux wrote: > I tried browsing around for examples, but couldn't find anything useful... > Just blogs linking to other blogs and back around again. Yes. Here's a content-ful example/tutorial - the result looks nice too, I think he's just taking direct rss xml and throwing in a CSS style sheet: http://developer.apple.com/internet/webcontent/xmltransformations.html > 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. > 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. Yep, if you want to transform it on the server, then CSS won't help at all. Useful if you want to extract data from it (although I haven't noticed that RSS feeds contain all that much data as such :) > 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.. No idea. I was thinking of generalising wikit over mkvfs into a blog supporting form for tclhttpd, but beyond that I'm completely ignorant. -- Colin McCormack <co...@ch...> |