A feed is a wrapper for pieces of regularly and sequentially-updated content such as news headlines, articles, weblog posts, and so on. Atom and RSS are the two flavours of XML feeds. They are both supported by SilkPage. Once integrated into your site, a news reader application such as Bloglines, RSSOwl, or even FireFox can be used to automatically check your list of feeds. This enables your visitors to know what's new on your site.
RSS is an application of XML, that provides an open method of syndicating and aggregating Web content. Using RSS files, you can create a data feed that supplies headlines, links, and article summaries from your Website.
Example 2.8. RSS 1.0 Feed
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel rdf:about="http://www.markupware.com/">
<title>MarkupWare Projects</title>
<link>http://www.markupware.com/projects/</link>
<description>MarkupWare project portfolio</description>
<dc:language>en-us</dc:language>
<dc:rights>Copyright © MarkupWare</dc:rights>
<items>
<rdf:Seq>
<rdf:li rdf:resource="http://www.markupware.com/projects#silkpage"/>
</rdf:Seq>
</items>
</channel>
<item rdf:about="http://www.markupware.com/projects#silkpage">
<title>SilkPage Project</title>
<link>http://silkpage.markupware.com</link>
<dc:date>2004-09-04</dc:date>
<description>
SilkPage is an XML based Web publishing framework that has evolved from
the Docbook Website. With strong foundations in XML, it is a publishing
framework with a focus on web standards and usability. SilkPage provides
a framework for publishing structured and standard compliant websites in
XML. It is particularly suited to publish personal websites, though it
is by no means limited to them.
</description>
</item>
</rdf:RDF>
The above example, defines a RSS 1.0 compliant feed for the project section of the MarkupWare Website. Based on the above source, SilkPage generates proper XHTML output page with a link to the RSS feed. The label of this link can be changed by setting the value of the configuration parameter sources.rss10.
RSS is an application of XML, that provides an open method of syndicating and aggregating Web content. Using RSS files, you can create a data feed that supplies headlines, links, and article summaries from your Website.
Example 2.9. Atom Feed
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>MarkupWare Projects</title>
<subtitle>MarkupWare project portfolio</subtitle>
<link rel="alternate" type="text/html"
href="http://www.markupware.com/projects/"/>
<link rel="self" type="application/atom+xml"
href="http://www.markupware.com/feeds/projects.xml"/>
<id>http://www.markupware.com/feeds/projects.xml</id>
<updated>2006-01-26T11:26:54+01:00</atom:updated>
<author>
<atom:name>MarkupWare Team</atom:name>
</atom:author>
<dc:language>en-us</dc:language>
<dc:rights>Copyright © MarkupWare</dc:rights>
<entry>
<title type="text">SilkPage</title>
<id>http://www.markupware.com/projects#silkpage</id>
<link rel="alternate" type="text/html"
href="http://silkpage.markupware.com/"/>
<published>2004-12-20T20:19:41+01:00</published>
<updated>2005-07-15T23:34:34+01:00</updated>
<content type="text">
SilkPage is an XML based Web publishing framework that has evolved from
the Docbook Website. With strong foundations in XML, it is a publishing
framework with a focus on web standards and usability. SilkPage provides
a framework for publishing structured and standard compliant websites in
XML. It is particularly suited to publish personal websites, though it
is by no means limited to them.
</content>
</entry>
</feed>
The above example, defines an Atom compliant feed for the project section of the MarkupWare Website. Based on the above source, SilkPage generates proper XHTML output page with a link to the Atom feed. The label of this link can be changed by setting the value of the configuration parameter sources.atom.