summaryrefslogtreecommitdiffstats
path: root/ChangeLog.xsl
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-16 14:07:23 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-16 14:07:23 +0000
commit8e9b8de322d5b09ab484a0ae21117a602e9896e3 (patch)
tree550111727fbd9dfd683d5709597d20ac0b33d89b /ChangeLog.xsl
parent6967b9612f077f4ffe4e138a8ab25c87f383009b (diff)
downloadmandoc-8e9b8de322d5b09ab484a0ae21117a602e9896e3.tar.gz
Proper html showing of ChangeLog.
Diffstat (limited to 'ChangeLog.xsl')
-rw-r--r--ChangeLog.xsl75
1 files changed, 37 insertions, 38 deletions
diff --git a/ChangeLog.xsl b/ChangeLog.xsl
index c37184a2..899c399c 100644
--- a/ChangeLog.xsl
+++ b/ChangeLog.xsl
@@ -1,40 +1,39 @@
-<?xml version='1.0' encoding="iso-8859-1"?>
+<?xml version='1.0' encoding="utf-8"?>
<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:output encoding="utf-8" method="html" indent="yes" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
+<xsl:template match="/changelog">
+<html>
+ <head>
+ <title>mdocml - CVS-ChangeLog</title>
+ <link rel="stylesheet" href="style.css" type="text/css" media="all" />
+ </head>
+ <body>
+ <xsl:for-each select="entry">
+ <div class="clhead">
+ <xsl:text>Files modified by </xsl:text>
+ <xsl:value-of select="concat(author, ': ', date, ' (', time, ')')" />
+ </div>
+ <div class="clbody">
+ <strong>
+ <xsl:text>Note: </xsl:text>
+ </strong>
+ <xsl:value-of select="msg"/>
+ <ul class="clbody">
+ <xsl:for-each select="file">
+ <li>
+ <xsl:value-of select="name"/>
+ <span class="rev">
+ <xsl:text> &#8212; Rev: </xsl:text>
+ <xsl:value-of select="revision"/>
+ <xsl:text>, Status: </xsl:text>
+ <xsl:value-of select="cvsstate"/>
+ </span>
+ </li>
+ </xsl:for-each>
+ </ul>
+ </div>
+ </xsl:for-each>
+ </body>
+</html>
+</xsl:template>
</xsl:stylesheet>