]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/events.xsl
A new wonderful page that shows the deadlines ordered by date.
[helm.git] / helm / mowgli / home / xsl / events.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</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</h1>
22     <hr />
23     <h1>Events Of Interest to MOWGLI ---
24         <a href="deadlines.html">Order by deadlines!</a></h1>
25     <dl>
26      <xsl:apply-templates/>
27     </dl>
28     <xsl:call-template name="foot">
29      <xsl:with-param name="path_to_top" select="'.'"/>
30     </xsl:call-template>
31   </body>
32  </html>
33 </xsl:template>
34
35 <xsl:template match="event">
36  <dt>
37   <a href="{url}"><xsl:value-of select="name"/></a>
38  </dt>
39  <dd>
40   <xsl:if test="where">
41    <b><xsl:value-of select="where"/></b>
42    <xsl:text> </xsl:text>
43   </xsl:if>
44   <xsl:if test="when">
45    <b><xsl:value-of select="when"/></b>
46    <br />
47   </xsl:if>
48   <xsl:if test="description">
49    <p><xsl:value-of select="description"/></p>
50   </xsl:if>
51   <xsl:if test="deadline">
52    <p>Deadlines:</p>
53    <ul>
54     <xsl:apply-templates select="deadline"/>
55    </ul>
56   </xsl:if>
57   <br />
58  </dd>
59 </xsl:template>
60
61 <xsl:template match="deadline">
62  <li>
63   <b>
64    <xsl:call-template name="print_date">
65     <xsl:with-param name="date" select="date/text()"/>
66    </xsl:call-template>
67   </b>
68   <xsl:text> </xsl:text>
69   <xsl:value-of select="description"/>
70  </li>
71 </xsl:template>
72
73 </xsl:stylesheet>