This project has moved and is read-only. For the latest updates, please go here.

Updates Needed to Fix Support for Atom Feeds


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


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.

wrote Feb 1, 2008 at 8:39 PM

urbandude wrote May 14, 2008 at 4:59 PM

thanks for that!

wrote Apr 4, 2009 at 12:50 PM

vkshrestha wrote Apr 4, 2009 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
<xsl:value-of select="//*[name()='published']"/> in line 55

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

vkshrestha wrote Apr 4, 2009 at 1:27 PM

Sorry .. line 55 should be following:
<xsl:value-of select="child::*[name()='published']"/>

voss23 wrote Apr 20, 2009 at 4:57 PM

I'm still having few issues with some feeds.
The feed below does not get populated with the correct link.

Regulus132 wrote Feb 2, 2010 at 10:46 PM

Thanks so much to the people posting the comments below. After making the changes in the comments, Atom feeds worked.

wrote May 2, 2010 at 5:45 AM

kayub wrote May 2, 2010 at 5:48 AM

It would be nice to be able to get the created date, instead of the updated date... is that possible?

mariorcm wrote May 6, 2010 at 5:54 PM

Thank you! Works like a charm!

wrote Mar 13, 2011 at 12:54 PM

wrote Feb 5, 2012 at 3:36 AM

jaydee777 wrote May 25, 2012 at 6:36 PM

Where should I add the XSl file? I am using visual studio I have the dll file in the bin folder so I assume I can overide with the new one, but where should I drop the xsl. thank you.

wrote Feb 14, 2013 at 8:57 PM