]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/deadlines.xsl
English error fixed.
[helm.git] / helm / mowgli / home / xsl / deadlines.xsl
1 <?xml version="1.0"?>
2
3 <xsl:stylesheet version="1.0"
4                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5
6 <xsl:import href="common.xsl"/>
7
8 <xsl:output method="html"/>
9
10 <xsl:template match="/">
11  <html>
12   <head>
13    <title>Events Sorted by Deadlines</title>
14    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
15    <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
16   </head>
17   <body>
18     <xsl:call-template name="head">
19      <xsl:with-param name="path_to_top" select="'.'"/>
20     </xsl:call-template>
21     <h1>Mowgli Events Sorted by Deadlines</h1>
22     <hr />
23     <h1>Events of Interest to MOWGLI Sorted by Deadlines ---
24         <a href="events.html">Sort by events date!</a></h1>
25     <ul>
26      <xsl:apply-templates select="events/event/deadline">
27       <xsl:sort select="date" data-type="number"/>
28      </xsl:apply-templates>
29     </ul>
30     <xsl:call-template name="foot">
31      <xsl:with-param name="path_to_top" select="'.'"/>
32     </xsl:call-template>
33   </body>
34  </html>
35 </xsl:template>
36
37 <xsl:template match="deadline">
38  <li>
39   <b>
40    <xsl:variable name="kind">
41     <xsl:call-template name="color_of_deadline_kind">
42      <xsl:with-param name="kind" select="@kind"/>
43     </xsl:call-template>
44    </xsl:variable>
45    <span style="color: {$kind}">
46     <xsl:call-template name="print_date">
47      <xsl:with-param name="date" select="date/text()"/>
48     </xsl:call-template>
49    </span>
50   </b>
51   <xsl:text> </xsl:text>
52   <xsl:value-of select="description"/>
53   <xsl:text> </xsl:text>
54   <a href="{../url}" target="_top"><xsl:value-of select="../name"/></a>
55  </li>
56 </xsl:template>
57
58 </xsl:stylesheet>