-
Notifications
You must be signed in to change notification settings - Fork 2
/
svn-log.xslt
62 lines (58 loc) · 1.88 KB
/
svn-log.xslt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output
method="html"
encoding="UTF-8"
indent="no"/>
<xsl:template match="/">
<html>
<head>
<title>Release Notes</title>
<link rel="SHORTCUT ICON" href="/images/tiobe.ico" type="image/x-icon" />
<link rel="stylesheet" href="/tics/tics.css" type="text/css" />
</head>
<body>
<h2>Release Notes</h2>
<xsl:apply-templates select="/log"/>
</body>
</html>
</xsl:template>
<xsl:template match="log">
<table >
<tr valign="top">
<td><b>Release</b></td>
<td><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text></td>
<td><b>Date</b></td>
<td><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text></td>
<td><b>Note</b></td>
</tr>
<xsl:apply-templates select="logentry"/>
</table>
</xsl:template>
<xsl:template match="logentry">
<xsl:if test="string(number(substring(msg, 1, 1)))!='NaN'">
<xsl:if test="substring-before(substring-after(msg, '] '), ': ')!='Rework'">
<tr valign="top">
<td>
<xsl:value-of select="@revision"/>
</td>
<td><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text></td>
<td nowrap="nowrap">
<xsl:value-of select="substring-before(date, 'T')"/>
</td>
<td><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text></td>
<td>
<xsl:if test="contains(msg, ' ')">
<xsl:value-of select="substring-before(msg, ' ')"/>
</xsl:if>
<xsl:if test="not(contains(msg, ' '))">
<xsl:value-of select="msg"/>
</xsl:if>
</td>
</tr>
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:stylesheet>