This project has moved. 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 7: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 7:39 PM

urbandude wrote May 14, 2008 at 3:59 PM

thanks for that!

wrote Apr 4, 2009 at 11:50 AM

vkshrestha wrote Apr 4, 2009 at 12: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 12:27 PM

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

voss23 wrote Apr 20, 2009 at 3: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 9: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 4:45 AM

kayub wrote May 2, 2010 at 4: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 4:54 PM

Thank you! Works like a charm!

wrote Mar 13, 2011 at 11:54 AM

wrote Feb 5, 2012 at 2:36 AM

jaydee777 wrote May 25, 2012 at 5: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 7:57 PM