source: release-kits/lirk3/resources/gs3-release-maker/apache-ant-1.6.5/src/etc/changelog.xsl@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 4.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2
3<xsl:stylesheet
4 xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
5 version='1.0'>
6
7<!--
8 Copyright 2002,2004-2005 The Apache Software Foundation
9
10 Licensed under the Apache License, Version 2.0 (the "License");
11 you may not use this file except in compliance with the License.
12 You may obtain a copy of the License at
13
14 http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21
22-->
23 <xsl:param name="title"/>
24 <xsl:param name="module"/>
25 <xsl:param name="cvsweb"/>
26
27 <xsl:output method="html" indent="yes" encoding="US-ASCII"
28 doctype-public="-//W3C//DTD HTML 4.01//EN"
29 doctype-system="http://www.w3.org/TR/html401/strict.dtd"/>
30
31 <!-- Copy standard document elements. Elements that
32 should be ignored must be filtered by apply-templates
33 tags. -->
34 <xsl:template match="*">
35 <xsl:copy>
36 <xsl:copy-of select="attribute::*[. != '']"/>
37 <xsl:apply-templates/>
38 </xsl:copy>
39 </xsl:template>
40
41 <xsl:template match="changelog">
42 <html>
43 <head>
44 <title><xsl:value-of select="$title"/></title>
45 <style type="text/css">
46 body, p {
47 font-family: Verdana, Arial, Helvetica, sans-serif;
48 font-size: 80%;
49 color: #000000;
50 background-color: #ffffff;
51 }
52 tr, td {
53 font-family: Verdana, Arial, Helvetica, sans-serif;
54 background: #eeeee0;
55 }
56 td {
57 padding-left: 20px;
58 }
59 .dateAndAuthor {
60 font-family: Verdana, Arial, Helvetica, sans-serif;
61 font-weight: bold;
62 text-align: left;
63 background: #a6caf0;
64 padding-left: 3px;
65 }
66 a {
67 color: #000000;
68 }
69 pre {
70 font-weight: bold;
71 }
72 </style>
73 </head>
74 <body>
75 <h1>
76 <a name="top"><xsl:value-of select="$title"/></a>
77 </h1>
78 <p style="text-align: right">Designed for use with <a href="http://ant.apache.org/">Apache Ant</a>.</p>
79 <hr/>
80 <table border="0" width="100%" cellspacing="1">
81
82 <xsl:apply-templates select=".//entry">
83 <xsl:sort select="date" data-type="text" order="descending"/>
84 <xsl:sort select="time" data-type="text" order="descending"/>
85 </xsl:apply-templates>
86
87 </table>
88
89 </body>
90 </html>
91 </xsl:template>
92
93 <xsl:template match="entry">
94 <tr>
95 <td class="dateAndAuthor">
96 <xsl:value-of select="date"/><xsl:text> </xsl:text><xsl:value-of select="time"/><xsl:text> </xsl:text><xsl:value-of select="author"/>
97 </td>
98 </tr>
99 <tr>
100 <td>
101 <pre>
102<xsl:apply-templates select="msg"/></pre>
103 <ul>
104 <xsl:apply-templates select="file"/>
105 </ul>
106 </td>
107 </tr>
108 </xsl:template>
109
110 <xsl:template match="date">
111 <i><xsl:value-of select="."/></i>
112 </xsl:template>
113
114 <xsl:template match="time">
115 <i><xsl:value-of select="."/></i>
116 </xsl:template>
117
118 <xsl:template match="author">
119 <i>
120 <a>
121 <xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute>
122 <xsl:value-of select="."/></a>
123 </i>
124 </xsl:template>
125
126 <xsl:template match="file">
127 <li>
128 <a>
129 <xsl:choose>
130 <xsl:when test="string-length(prevrevision) = 0 ">
131 <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" />?rev=<xsl:value-of select="revision" />&amp;content-type=text/x-cvsweb-markup</xsl:attribute>
132 </xsl:when>
133 <xsl:otherwise>
134 <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" />?r1=<xsl:value-of select="revision" />&amp;r2=<xsl:value-of select="prevrevision"/></xsl:attribute>
135 </xsl:otherwise>
136 </xsl:choose>
137 <xsl:value-of select="name" /> (<xsl:value-of select="revision"/>)</a>
138 </li>
139 </xsl:template>
140
141 <!-- Any elements within a msg are processed,
142 so that we can preserve HTML tags. -->
143 <xsl:template match="msg">
144 <xsl:apply-templates/>
145 </xsl:template>
146
147</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.