More Microformats: hCalendar


I've long had a travel calendar on the right-hand side of this blog to show people what conferences I'm attending. I've had lots of great experiences with folks seeing I'm coming to something near them and linking up with me for a meal. After I wrote about microformats yesterday, I decided I'd change the program that generates it (a hacked version of phpiCalendar) to generate hCalendar mark-up to the XHTML. You can see that human readable content hasn't changed.

What's different, however, is that it's now machine readable as well. For example, you can see the iCalendar format of the hCalendar data by simply running this entire page through the X2V application.

Here's what the hCalendar data looks like to save you from wading through the HTML for this page:

<span class="vevent">
 <em><span class="summary">MetaIdentity</span></em><br/>
  <abbr class="dtstart" title="20050712">July 12</abbr> - 
 <abbr class="dtend" title="20050713">July 12</abbr>
</span><br/>
<span class="vevent">
 <em><span class="summary">Catalyst (Burton)</span></em><br/>
  <abbr class="dtstart" title="20050713">July 13</abbr> - 
 <abbr class="dtend" title="20050716">July 15</abbr>
 </span><br/>
<span class="vevent">
 <em><a class="url" href="http://conferences.oreillynet.com/os2005/">
   <span class="summary">OSCON</span></a></em> <br/>
  <abbr class="dtstart" title="20050801">August 1</abbr> - 
 <abbr class="dtend" title="20050806">August 5</abbr></span><br/>