texshow-web rss feed added
Hello, this is probably mainly for Taco: I've added a (yet simple) rss feed for the changes for texshow-web: http://texshow.contextgarden.net/rss-en.xml Patrick -- Context wiki: http://contextgarden.net
Patrick Gundlach wrote:
Hello,
this is probably mainly for Taco: I've added a (yet simple) rss feed for the changes for texshow-web:
interesting, i was considering to add something like that to the website, but could not figure out what the exact approach is; for instance how do you determine what goes into the feed? Is that per day? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hello Hans,
interesting, i was considering to add something like that to the website, but could not figure out what the exact approach is; for instance how do you determine what goes into the feed? Is that per day?
Last 10 entries. Allowed in rss 0.91 are 15 entries max. As soon as a user edits a comment (or alike) a log entry gets written to a file. I publish the last 10 lines. See also for rss spec: http://channel.netscape.com/publish/help/mnn20/quickstart.html I did a quick hack in \startofftopic ruby -------------------------------------------------- rsstest.rb require 'rss' feed=Rss.new puts feed.rss { feed.title { "rsstest " } + feed.description { "my description" } + feed.link { "some link" } + feed.language { "en" } + feed.item { feed.title { "itemtitle" } + feed.link { "item link" } + feed.description { "item description"} } } -------------------------------------------------- rss.rb class Rss def initialize end def rss string = %Q{<?xml version="1.0"?> <rss version="0.91"> <channel>} string += yield.to_s if block_given? string +="</channel>\n</rss>\n" end def item string =" <item>" string += yield.to_s if block_given? string +="</item>\n" end def description string =" <description>" string += yield.to_s if block_given? string +="</description>\n" end def title string =" <title>" string += yield.to_s if block_given? string +="</title>\n" end def link string =" <link>" string += yield.to_s if block_given? string +="</link>\n" end def language string =" <language>" string += yield.to_s if block_given? string +="</language>\n" end end -------------------------------------------------- which can (of course) be done much smarter, but this was very quick... \stopofftopic Patrick -- ConTeXt wiki: http://contextgarden.net
Patrick Gundlach wrote:
Last 10 entries. Allowed in rss 0.91 are 15 entries max. As soon as a user edits a comment (or alike) a log entry gets written to a file. I publish the last 10 lines. See also for rss spec:
for the moment only one entry: http://www.pragma-ade.com/rss.xml (btw, firebird has a decent rss plugin) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hi Patrick, It took me a while to do something with this, but I finally got around to testing it. This feed, as well as Hans' feed, would be much more usable as Rss version 1.0 (that is: with timestamp info added). Great idea though! Patrick Gundlach wrote:
Hello,
this is probably mainly for Taco: I've added a (yet simple) rss feed for the changes for texshow-web:
http://texshow.contextgarden.net/rss-en.xml
Patrick
Hello Taco,
It took me a while to do something with this, but I finally got around to testing it. This feed, as well as Hans' feed, would be much more usable as Rss version 1.0 (that is: with timestamp info added). Great idea though!
I don't really understand (I am very new to RSS): one can insert time stamps in RSS 0.91 (<pubDate>), and RSS 1.0 doesn't need a timestamp (?). What use is a timestamp for, anyhow? (besides the user knowing when the entry dates?) Patrick -- ConTeXt wiki: http://contextgarden.net
Patrick Gundlach wrote:
I don't really understand (I am very new to RSS): one can insert time stamps in RSS 0.91 (<pubDate>), and RSS 1.0 doesn't need a timestamp (?).
so, what do we do: .91 and pubDate?
What use is a timestamp for, anyhow? (besides the user knowing when the entry dates?)
one can for instance decide to automatically download btw, is the 15 entries indeed a limit? i see feeds with much more Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen
Patrick Gundlach wrote:
I don't really understand (I am very new to RSS): one can insert time stamps in RSS 0.91 (<pubDate>), and RSS 1.0 doesn't need a timestamp (?).
so, what do we do: .91 and pubDate?
I'll go for that before trying 1.0.
What use is a timestamp for, anyhow? (besides the user knowing when the entry dates?)
one can for instance decide to automatically download
OK, good point. (I guess you mean that if the rss feed refers to some downloadable software).
btw, is the 15 entries indeed a limit? i see feeds with much more
for 0.91. That is at least what http://channel.netscape.com/publish/help/mnn20/quickstart.html tells. Don't know how authorative it is. Patrick
netscape.com is indeed the authority for 0.91, because rss was originally an idea created by Netscape Inc. Patrick Gundlach wrote:
btw, is the 15 entries indeed a limit? i see feeds with much more
for 0.91. That is at least what
http://channel.netscape.com/publish/help/mnn20/quickstart.html
tells. Don't know how authorative it is.
Taco Hoekwater wrote:
It took me a while to do something with this, but I finally got around to testing it. This feed, as well as Hans' feed, would be much more usable as Rss version 1.0 (that is: with timestamp info added). Great idea though!
ok, no problem, i have to find the spec for that first -) another thing to set up is a repository for user contributes styles; once i have the new servers on line i will install a subversion tree for context sources; that way you can also more easily fetch the diffs and make those nice diff documents, which then of course end up in the feed Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen
Taco Hoekwater wrote:
It took me a while to do something with this, but I finally got around to testing it. This feed, as well as Hans' feed, would be much more usable as Rss version 1.0 (that is: with timestamp info added). Great idea though!
ok, no problem, i have to find the spec for that first -)
Overview: http://www.webreference.com/authoring/languages/xml/rss/ spec: http://web.resource.org/rss/1.0/ -> http://web.resource.org/rss/1.0/spec Patrick -- ConTeXt wiki: http://contextgarden.net
participants (3)
-
Hans Hagen
-
Patrick Gundlach
-
Taco Hoekwater