changelog.xsl revision 809
10139N/A<?xml version="1.0" encoding="ISO-8859-1"?>
10139N/A
10139N/A<xsl:stylesheet
16663N/A xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
10139N/A version='1.0'>
10139N/A
10139N/A<!--
17185N/A Licensed to the Apache Software Foundation (ASF) under one or more
10139N/A contributor license agreements. See the NOTICE file distributed with
17176N/A this work for additional information regarding copyright ownership.
17176N/A The ASF licenses this file to You under the Apache License, Version 2.0
17176N/A (the "License"); you may not use this file except in compliance with
10139N/A the License. You may obtain a copy of the License at
10139N/A
10139N/A http://www.apache.org/licenses/LICENSE-2.0
17491N/A
10139N/A Unless required by applicable law or agreed to in writing, software
10139N/A distributed under the License is distributed on an "AS IS" BASIS,
10139N/A WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10139N/A See the License for the specific language governing permissions and
10139N/A limitations under the License.
16663N/A
16663N/A-->
10139N/A <xsl:param name="title"/>
10139N/A <xsl:param name="module"/>
10139N/A <xsl:param name="cvsweb"/>
10139N/A
10139N/A <xsl:output method="html" indent="yes" encoding="US-ASCII"
10139N/A doctype-public="-//W3C//DTD HTML 4.01//EN"
10139N/A doctype-system="http://www.w3.org/TR/html401/strict.dtd"/>
10139N/A
10139N/A <!-- Copy standard document elements. Elements that
10139N/A should be ignored must be filtered by apply-templates
10139N/A tags. -->
10139N/A <xsl:template match="*">
10139N/A <xsl:copy>
10139N/A <xsl:copy-of select="attribute::*[. != '']"/>
10139N/A <xsl:apply-templates/>
10139N/A </xsl:copy>
13505N/A </xsl:template>
13505N/A
14055N/A <xsl:template match="changelog">
10139N/A <html>
11212N/A <head>
13505N/A <title><xsl:value-of select="$title"/></title>
13505N/A <style type="text/css">
16663N/A body, p {
17491N/A font-family: Verdana, Arial, Helvetica, sans-serif;
16663N/A font-size: 80%;
10139N/A color: #000000;
10139N/A background-color: #ffffff;
10139N/A }
13505N/A tr, td {
10139N/A font-family: Verdana, Arial, Helvetica, sans-serif;
10139N/A background: #eeeee0;
17491N/A }
10959N/A td {
13505N/A padding-left: 20px;
10959N/A }
10959N/A .dateAndAuthor {
13505N/A font-family: Verdana, Arial, Helvetica, sans-serif;
10139N/A font-weight: bold;
10139N/A text-align: left;
10139N/A background: #a6caf0;
10139N/A padding-left: 3px;
10139N/A }
10139N/A a {
10139N/A color: #000000;
10139N/A }
10139N/A pre {
10139N/A font-weight: bold;
10139N/A }
10139N/A </style>
10139N/A </head>
10139N/A <body>
10139N/A <h1>
10139N/A <a name="top"><xsl:value-of select="$title"/></a>
10139N/A </h1>
10139N/A <p style="text-align: right">Designed for use with <a href="http://ant.apache.org/">Apache Ant</a>.</p>
10139N/A <hr/>
17491N/A <table border="0" width="100%" cellspacing="1">
17491N/A
17075N/A <xsl:apply-templates select=".//entry">
17075N/A <xsl:sort select="date" data-type="text" order="descending"/>
16663N/A <xsl:sort select="time" data-type="text" order="descending"/>
16663N/A </xsl:apply-templates>
14055N/A
14055N/A </table>
13505N/A
13505N/A </body>
11928N/A </html>
11928N/A </xsl:template>
10959N/A
10959N/A <xsl:template match="entry">
10959N/A <tr>
10139N/A <td class="dateAndAuthor">
10139N/A <xsl:value-of select="date"/><xsl:text> </xsl:text><xsl:value-of select="time"/><xsl:text> </xsl:text><xsl:value-of select="author"/>
10139N/A </td>
10139N/A </tr>
10139N/A <tr>
10139N/A <td>
10139N/A <pre>
10139N/A<xsl:apply-templates select="msg"/></pre>
10139N/A <ul>
10139N/A <xsl:apply-templates select="file"/>
10139N/A </ul>
10139N/A </td>
10139N/A </tr>
10139N/A </xsl:template>
10139N/A
<xsl:template match="date">
<i><xsl:value-of select="."/></i>
</xsl:template>
<xsl:template match="time">
<i><xsl:value-of select="."/></i>
</xsl:template>
<xsl:template match="author">
<i>
<a>
<xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute>
<xsl:value-of select="."/></a>
</i>
</xsl:template>
<xsl:template match="file">
<li>
<a>
<xsl:choose>
<xsl:when test="string-length(prevrevision) = 0 ">
<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>
</xsl:when>
<xsl:otherwise>
<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>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="name" /> (<xsl:value-of select="revision"/>)</a>
</li>
</xsl:template>
<!-- Any elements within a msg are processed,
so that we can preserve HTML tags. -->
<xsl:template match="msg">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>