<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<feed xmlns="http://www.w3.org/2005/Atom" xml:base="http://dret.net/lectures/xml-fall07/src/dretblog.atom">
			<title>dretblog</title>
			<id>http://dret.net/lectures/xml-fall07/src/dretblog.atom</id>
			<link rel="self" href=""/>
			<updated><xsl:value-of select="current-dateTime()"/></updated>
			<author><name>Erik Wilde</name></author>
			<xsl:for-each select="//post">
				<entry xml:base="http://dret.net/lectures/xml-fall07/src/{@date}">
					<title><xsl:value-of select="title"/></title>
					<link href="http://dret.net/lectures/xml-fall07/src/{@date}"/>
					<id><xsl:value-of select="concat('http://dret.net/lectures/xml-fall07/src/', @date)"/></id>
					<published><xsl:value-of select="@date"/>T00:00:00Z</published>
					<updated><xsl:value-of select="current-dateTime()"/></updated>
					<content type="xhtml">
						<div xmlns="http://www.w3.org/1999/xhtml">
							<h1><xsl:value-of select="title"/></h1>
							<h2><xsl:value-of select="format-date(@date, '[F] [MNn] [D], [Y]')"/></h2>
							<a href="http://dret.net/lectures/xml-fall07/img/{image/@src}.jpg" title="{image}"><img src="http://dret.net/lectures/xml-fall07/img/{image/@src}-small.jpg"/></a>
							<p><xsl:value-of select="text"/></p>
						</div>
					</content>
				</entry>
			</xsl:for-each>
		</feed>
	</xsl:template>
</xsl:stylesheet>