Welcome to Geoffrey Swift's βlog. Please subscribe to the Atom feed.


Attempt at hAtom microformat

I have managed to incorporate the hAtom microformat into the XHTML rendering of my atom feed on my webpage, albeit with limited success. Adding the extra class attributes to the XHTML elements in the XSL template seemed simple enough, but the microformat stipulates marking up the HTML element that corresponds to an atom:entry with class="hentry". Unfortunately I'm using a <dl> tag in place of an atom:feed, and using <dt> and <dd> tags for the atom:title and atom:summary respectively. Owing to the fact that these are the only valid child entities for a <dl> tag, I have to lose half the data per post! I can't for example just put in a <div class="hentry"> around each post, as that would not be valid XHTML. The existing DHTML code is geared up to use this hierarchical structure, so fully supporting hAtom might have to go on the back burner. A permalink for individual posts works OK in htatom2atom, but that's because the post title is taken from the <head> of the XHTML document.

Comments for this post are now closed.