[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [syndication] Re: RSS and mailing lists
- To: <syndication@yahoogroups.com>
- Subject: RE: [syndication] Re: RSS and mailing lists
- From: "Mike Geiger" <mike@percurrence.com>
- Date: Wed, 21 Feb 2001 16:24:16 -0800
- Thread-index: AcCbaJ+RjIFhf+ZdQlq203XzOaeNBgA/ATjg
- Thread-topic: [syndication] Re: RSS and mailing lists
FYI, this looks like an interesting application for PerXML. Here is a
simple solution, easy to parameterize and expand upon.
<html xmlns:PerXML="www.percurrence.com">
<body>
<PerXML:jscript id="scr">
<value>
function Fix(str)
{
// fix yahoos screwed up URL's
var newstr =
str.replace('com//','com/');
return newstr;
}
</value>
</PerXML:jscript>
<!--
<value
url="http://groups.yahoo.com/group/xml-dev/messages?rss=1&viscount=1
5"/>
<value
url="http://p.moreover.com/cgi-local/page?query=b2b&o=rss/>
-->
<PerXML:xml id="group">
<value
url="http://groups.yahoo.com/group/xml-dev/messages?rss=1&viscount=1
5"/>
</PerXML:xml>
<h1>$group.Select("/rss/channel/title")</h1>
<a href="$group(`/rss/channel/image/link`)">
<img src="$group(`/rss/channel/image/url`)"
alt="$group(`/rss/channel/image/title`)"/>
</a>
<PerXML:xml id="messages" select="/rss/channel/item"
apply="i.item">
<value>$group.XML()</value>
</PerXML:xml>
<i.item>
<p> <a
href="$scr.Fix(`$messages(`link`)`)">$messages("title")</a>
$messages("description")</p>
</i.item>
</body>
</html>
--Mike (PerXML Rocks!)
(http://www.percurrence.com)