All blogs require silly amounts of feed generators, right? And this is a silly blog so requires a silly generator. The entire site is written using PHP5, and my automagic ‘datahandler’ activepage concept creates an XML document using DOM that then uses XSL as a templating engine, so I figured it wouldn’t be too hard to knock up a stylesheet to turn the default datahandler for the blog in to a nice atom feed! Just make sure you set the content-type to application/atom+xml when generate the page!
`
<xsl:stylesheet version = “1.0” xmlns:xsl=“https://www.w3.org/1999/XSL/Transform">
<xsl:output indent=“yes” method=“xml” encoding=“iso-8859-1” omit-xml-declaration=“yes” doctype-system=“https://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" doctype-public=”-//W3C//DTD XHTML 1.1//EN” />
<xsl:template match=“page”>
`