<?xml version="1.0" encoding="UTF-8"?>
<!--
  Part of the XlSuite.org tools suite.  Shared under a Creative Commons
  License: http://creativecommons.org/licenses/by-sa/2.5/
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns="http://www.w3.org/2005/Atom" xmlns:xhtml="http://www.w3.org/1999/xhtml"
    version="1.0">
  <xsl:template match="/">
    <feed>
      <title><xsl:value-of select="$title"/></title>
      <link rel="self">
	<xsl:attribute name="href"><xsl:value-of select="$self"/></xsl:attribute>
      </link>
      <logo><xsl:value-of select="$logo-url"/></logo>
      <updated><xsl:value-of select="$updated"/></updated>
      <id><xsl:value-of select="$feed-id"/></id>
      <xsl:apply-templates/>
    </feed>
  </xsl:template>

  <xsl:template match="//logentry">
    <entry>
      <title>Revision <xsl:value-of select="@revision"/></title>
      <id><xsl:value-of select="$entry-id-prefix"/><xsl:value-of select="@revision"/>.xml</id>
      <xsl:apply-templates/>
    </entry>
  </xsl:template>

  <xsl:template match="//author">
    <author>
      <name><xsl:value-of select="text()"/></name>
    </author>
  </xsl:template>

  <xsl:template match="//date">
    <updated><xsl:value-of select="text()"/></updated>
  </xsl:template>

  <xsl:template match="//msg">
    <content type="xhtml">
      <xhtml:div><xhtml:pre><xsl:value-of select="text()"/></xhtml:pre></xhtml:div>
    </content>
  </xsl:template>

  <xsl:template match="//paths">
  </xsl:template>
</xsl:stylesheet>
