RelatedSoftware/Darcs2Docbook

Here is a short XLST XML stylesheet translation for trasfoming from darcs changelog to docbook revision history form.

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

  <xsl:output method="xml"/>

  <xsl:template match="/">
    <revhistory>
      <xsl:for-each select="changelog/patch">
        <revision>
          <revnumber><xsl:number value="position()" format="1" /></revnumber>
          <date><xsl:value-of select="@local_date"/></date>
          <authorinitials><xsl:value-of select="@author"/></authorinitials>
          <revremark><xsl:value-of select="name"/></revremark>
        </revision>
      </xsl:for-each>
    </revhistory>
  </xsl:template>

</xsl:stylesheet>

If you save the above as darcs2docbook.xsl and have xsltproc installed you could use it like this:

darcs changes --xml-output --reverse > darcs.xml
xsltproc darcs2docbook.xsl darcs.xml > revs.xml