[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [syndication] RSS Discovery
> I would think having the <link ... /> tag point to a feed directory for
> multiple feeds would be better, maybe an OPML document. For only 2 feeds,
> that is a bit obtuse, but in general, I think a directory would be better.
This would be hard for a scriptlet to handle, since it would have to
fetch a separate document into a hidden window or frame. It would
be easier for a scriptlet to extract *all* of the relevant link tags and
then pass those on to the underlying site as an argument list. The
site can then present a web-based UI to allow the user to choose
any or all of the feeds.
For example, here's a scriptlet that I found:
oid(d=document);
void(el=d.getElementsByTagName('link'));
for(i=0;i<el.length;i++)
{
if(el[i].getAttribute('rel').indexOf('alternate') != -1 && el[i].getAttribute('type').indexOf('text/xml')!=-1)
{
void(location.href='http://www.syndic8.com/feedinfo.php?FeedDataURL='+el[i].getAttribute('href'))
};
};
It would not be hard to modify it to accumulate all of the tags and then pass
all of them to the site.
Jeff;
----- Original Message -----
From: "James Linden" <jlinden@lindensys.net>
To: <syndication@yahoogroups.com>
Sent: Saturday, June 01, 2002 12:59 AM
Subject: Re: [syndication] RSS Discovery
> > What if there are two feeds? Do you think it's going to screw the
> > readers of the <link tag to just put two entries in?
> >
> > For instance, Ecademy has a feed for the weblogs and another feed for
> > the articles. I've added both with the blogs one first.
>
> I would think having the <link ... /> tag point to a feed directory for
> multiple feeds would be better, maybe an OPML document. For only 2 feeds,
> that is a bit obtuse, but in general, I think a directory would be better.
>
> James
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>