summaryrefslogtreecommitdiffstats
path: root/ChangeLog.xsl
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-16 13:41:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-16 13:41:12 +0000
commit7bf43bc19f6eacacd904fa6a1a90f52dd84902db (patch)
tree4e11175c4dcd8228a80a037c70ee90c001a58b08 /ChangeLog.xsl
parent465b80b649555b1f1cfbeea5dd877d091627a296 (diff)
downloadmandoc-7bf43bc19f6eacacd904fa6a1a90f52dd84902db.tar.gz
Added changelog xsl.
Diffstat (limited to 'ChangeLog.xsl')
-rw-r--r--ChangeLog.xsl40
1 files changed, 40 insertions, 0 deletions
diff --git a/ChangeLog.xsl b/ChangeLog.xsl
new file mode 100644
index 00000000..c37184a2
--- /dev/null
+++ b/ChangeLog.xsl
@@ -0,0 +1,40 @@
+<?xml version='1.0' encoding="iso-8859-1"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
+ <xsl:output encoding="iso-8859-15" method="html" indent="yes" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
+ <xsl:template match="/changelog">
+ <html>
+ <head>
+ <title>mdocml - CVS-ChangeLog</title>
+ <style type="text/css">
+ h3 { background-color: #E6E6FA; color: #000000; padding: 2px; }
+ .rev { color: #808080 }
+ </style>
+ </head>
+ <body>
+ <xsl:for-each select="entry">
+ <h3>
+ <xsl:text>Files modified by </xsl:text>
+ <xsl:value-of select="concat(author, ': ', date, ' (', time, ')')" />
+ </h3>
+ <strong>
+ <xsl:text>Note: </xsl:text>
+ </strong>
+ <xsl:value-of select="msg"/>
+ <ul>
+ <xsl:for-each select="file">
+ <li>
+ <xsl:value-of select="name"/>
+ <span class="rev">
+ <xsl:text> - Rev: </xsl:text>
+ <xsl:value-of select="revision"/>
+ <xsl:text>, Status: </xsl:text>
+ <xsl:value-of select="cvsstate"/>
+ </span>
+ </li>
+ </xsl:for-each>
+ </ul>
+ </xsl:for-each>
+ </body>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>