2 votes
Updates Needed to Fix Support for Atom Feeds

Description

 
Symptoms when consuming Atom feeds:
- <pubDate/> is empty
- <link/> links to the <channel/> URL and not the <item/> URL

Fixes in AtomToRss20.xsl
- LINE 25: <xsl:value-of select="//*[name()='modified']"/> should be <xsl:value-of select="//*[name()='updated']"/>
- LINE 43: <xsl:value-of select="//*[name()='link']/@href"/>should be <xsl:value-of select="child::*[name()='link']/@href"/>
- LINE 55: <xsl:value-of select="//*[name()='modified']"/> should be <xsl:value-of select="//*[name()='updated']"/>

Attached is a compiled version that incorporates these changes.

File Attachments


Comments

most recent at top (show oldest at top)
voss23 wrote Apr 20 at 4:57 PM
I'm still having few issues with some feeds.
The feed below does not get populated with the correct link.
example:
http://calteacherblog.blogspot.com/feeds/posts/default

vkshrestha wrote Apr 4 at 1:27 PM
Sorry .. line 55 should be following:
<xsl:value-of select="child::*[name()='published']"/>

vkshrestha wrote Apr 4 at 1:21 PM
I don't know much about ATOM standards but I was doing aggregation of a feed using this toolkit and I fixed the issue by having:
<xsl:value-of select="child::*[name()='link' and @rel='alternate']/@href"/> in line 43
and
<xsl:value-of select="//*[name()='published']"/> in line 55

line 43 needs to be fixed for link element which does not have rel attribute.

urbandude wrote May 14 2008 at 4:59 PM
thanks for that!

cnanda wrote Feb 1 2008 at 8:39 PM
LINE 55: <xsl:value-of select="//*[name()='modified']"/> should be <xsl:value-of select="//*[name()='updated']"/>

I attempted this fix and had to make one change, which I think may have just been a typo here. I think line 55 should actually ready:
<xsl:value-of select="//*[name()='modified']"/> should be <xsl:value-of select="child::*[name()='updated']"/>

When I was using the previous version, the dates for all of the posts were getting the updated date of the feed itself, ie. what your using for Line 25.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987