Nik's Technology Blog

Travels through programming, networks, and computers has changed their feed syndication

It seems that Blogger has changed the type of syndication feed they use during the last month (Jan – Feb 2008), I discovered this when my Atom feed XSLT transformation broke when I published my last post.
I originally wrote XSLT to transform the previous feed type for my homepage blog updates, which assumed the following heirachy with the Atom 0.3 namespace:


Whereas the latest feed has changed to use both Atom and openSearch namespaces and the following structure:


The root node seems to suggest it is the RSS 2.0 standard, using the Atom namespace, which is peculiar, notice the openSearch namespace too...

<rss xmlns:atom='' xmlns:openSearch='' version='2.0'>

Here's my updated XSLT to convert the new format.

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"

<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="channel">
<div id="FeedSnippets">
<xsl:apply-templates select="item" />

<xsl:template match="item" name="item">
<xsl:if test="position()<6">
<xsl:value-of select="title"/>
<xsl:when test="string-length(substring-before(atom:summary,'. ')) > 0">
<xsl:value-of select="substring-before(atom:summary,'. ')" />...<br />
<xsl:when test="string-length(substring-before(atom:summary,'.')) > 0">
<xsl:value-of select="substring-before(atom:summary,'.')" />...<br />
<xsl:value-of select="substring(atom:summary,0,200)" />...<br />
<strong>Read full post: </strong>
<a href="{link}">
<xsl:value-of select="title"/>
<hr />

Comments are closed