Valid RSS 0.91 feeds from Movable Type

John Gruber found (as I did recently) that the Movable Type RSS 0.91 template doesn't validate using the new RSS validator (kudos to Mark Pilgrim and Sam Ruby for developing the tool. Mine validates now.). John offers a way to fix it using a new custom plugin, <$MTrfc822BlogTimeZone$>. For those that already have my Regex plugin installed, you can do this instead:

<lastBuildDate><MTEntries lastn="1"><$MTEntryDate
  format="%a, %d %b %Y %H:%M:%S"$> <$MTBlogTimezone
  regex="s/://"$></MTEntries></lastBuildDate>
<pubDate><$MTDate
  format="%a, %d %b %Y %H:%M:%S"$> <$MTBlogTimezone
  regex="s/://"$></pubDate>

Or, if you don't have the time for any of this, just edit your RSS 0.91 template and replace the <MTBlogTimezone> tag with your 3-character time zone code (EST for example) or the numeric +/-HHMM offset equivalent. You could also switch to a RSS 1.0 or 2.0 format.

TrackBack

TrackBack URL for this entry:
http://bradchoate.com/mt/feedback/tb/420

Listed below are links to weblogs that reference Valid RSS 0.91 feeds from Movable Type:

» Always on the March from Journal
Between upgrading to MovableType 2.51 (an item that's been on my "To Do" list for far too long), implementing John [Read More]

» Always on the March from Journal
Between upgrading to MovableType 2.51 (an item that's been on my "To Do" list for far too long), implementing John [Read More]

» Always on the March from Journal
Between upgrading to MovableType 2.51 (an item that's been on my "To Do" list for far too long), implementing John [Read More]

4 Comments

Quadsk8 said:

Hello Brad,

Question: My Blog is Dutch, my language declaration is <dc:language>nl-dut</dc:language>.
Even if I use your Regex method or RSS 2.0 template, the validator tells me:

Sorry This feed does not validate as RSS.
  • line 23, column 43: dc:date must be an ISO-8601 date (2 occurrences) [help]

    <dc:date>din, 22 okt 2002 22:03:05+0100</dc:date>
                                              ^

Would you have any idea what I could do?
Or is valid RSS only available for Americans?

Lawrence

Quadsk8 said:

Brad,

Thanks, your tip <$MTDate language="en"... did the trick.
But only when I changed back to RSS 0.91 format as in MT's default templates.
The RSS 2.0 of Mark Pilgrim will still not validate for me, but the validator does not give any explanation why not:

Sorry
This feed does not validate as RSS.
(that's all)

As it still does for my other blog
http://feeds.archive.org/validator/check?url=http://www.groovycompany.nl/Events/index.xml
Lawrence

Jory said:

Brad,
When I try to ping the the TB URL for this article, it just eventually gives up. I can ping other's URL's fine, just not this one.

Is this by design (?), or is your server just too popular to talk to mine? ;)

Anonymous said:

The switch to link above to RSS 1.0 or 2.0 format doesn't work. Could you tell how I can get these templates?

While at your site I read some of your articles especially using MT (RSS) for the whole site and would appreciate your input in making this site just so.

thanks
neil

About

This article was published on October 23, 2002 2:17 PM.

The article previously posted was A CSS Wish.

The next article is Googlism.com.

Many more can be found on the home page or by looking through the archives.

Powered by Movable Type