<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>trentgardner.net &#187; hAtom</title>
	<atom:link href="http://trentgardner.net/tag/hatom/feed/" rel="self" type="application/rss+xml" />
	<link>http://trentgardner.net</link>
	<description></description>
	<lastBuildDate>Tue, 02 Aug 2011 06:34:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>An atomic WordPress</title>
		<link>http://trentgardner.net/uncategorized/an-atomic-wordpress/</link>
		<comments>http://trentgardner.net/uncategorized/an-atomic-wordpress/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 06:00:03 +0000</pubDate>
		<dc:creator>Trent Gardner</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hAtom]]></category>
		<category><![CDATA[microformats]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://tgardner.net/2007/11/21/5/</guid>
		<description><![CDATA[Recently I&#8217;ve been playing around with Microformats, more specifically hAtom. As an experiment, I converted this sites feed to a dynamically generated microformat based feed. After doing some reading I came across this little gem, hAtom2Atom, this is where the &#8230; <a href="http://trentgardner.net/uncategorized/an-atomic-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve been playing around with <a href="http://microformats.org/" title="http://microformats.org/">Microformats</a>, more specifically <a href="http://microformats.org/wiki/hAtom" title="http://microformats.org/wiki/hAtom">hAtom</a>.</p>
<p>As an experiment, I converted this sites feed to a dynamically generated microformat based feed. After doing some reading I came across this little gem, <a href="http://rbach.priv.at/Microformats/hAtom2Atom/" title="http://rbach.priv.at/Microformats/hAtom2Atom/">hAtom2Atom</a>, this is where the fun began. I added in the necessary class declarations to my theme according to the <a href="http://microformats.org/wiki/hAtom#Schema" title="http://microformats.org/wiki/hAtom#Schema">hAtom specification</a> and then it was time to get the ball rolling. To speed things up, I found this little <a href="http://chunkysoup.net/article/236/FeedsForAllWithhAtomPart2TheCode" title="http://chunkysoup.net/article/236/FeedsForAllWithhAtomPart2TheCode">script</a>, which provided me with everything I needed to get this operational.</p>
<p>With a few edits here and there, all I had to do was upload the XSL files, accompanied with the script I mentioned above, and edit the RSS line in my theme header to look like this:</p>
<p><span class="code">&lt;link rel=&#8221;alternate&#8221; type=&#8221;application/atom+xml&#8221; title=&#8221;&lt;?php bloginfo(&#8216;name&#8217;); ?&gt; Atom Feed&#8221; href=&#8221;/hatom2atom.php&lt;?php echo $_SERVER['REQUEST_URI']; ?&gt;&#8221; /&gt;</span></p>
<p>The results exceeded my expectations, not only does it work for my main feed, but if I wanted to generate any sub-feeds (i.e. a feed for all posts tagged with WordPress) they were covered. All I had to do was subscribe to http://tgardner.net/hatom2atom.php/path/to/whatever/, and I’m sure with a little mod-rewrite I could pretty up the URL a bit. If you’re using a feed reader you can leave out the hatom2atom.php and it will automatically be inserted using the alternate link in the header (i.e. you can subscribe to <a href="http://tgardner.net/" title="http://tgardner.net/">http://tgardner.net/</a>).</p>
<p>If you want to try this for yourself I threw together <strong>a <a href="http://files.tgardner.net/wp-hatom-feed.zip" title="http://files.tgardner.net/wp-hatom-feed.zip">zip</a> of all of the files I needed</strong>. Just extract them to the root of your WordPress install and modify the header in your theme like above.</p>
<p>Happy microformatting!</p>
]]></content:encoded>
			<wfw:commentRss>http://trentgardner.net/uncategorized/an-atomic-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

