]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/events.xsl
Events added.
[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 Related to Mowgli</h1>
24     <dl>
25      <xsl:apply-templates/>
26     </dl>
27     <xsl:call-template name="foot">
28      <xsl:with-param name="path_to_top" select="'.'"/>
29     </xsl:call-template>
30   </body>
31  </html>
32 </xsl:template>
33
34 <xsl:template match="event">
35  <dt>
36   <a href="{url}"><xsl:value-of select="name"/></a>
37  </dt>
38  <dd>
39   <xsl:if test="where">
40    <b><xsl:value-of select="where"/></b>
41    <xsl:text> </xsl:text>
42   </xsl:if>
43   <xsl:if test="when">
44    <b><xsl:value-of select="when"/></b>
45    <br />
46   </xsl:if>
47   <xsl:if test="description">
48    <p><xsl:value-of select="description"/></p>
49   </xsl:if>
50   <xsl:if test="deadline">
51    <p>Deadlines:</p>
52    <ul>
53     <xsl:apply-templates select="deadline"/>
54    </ul>
55   </xsl:if>
56   <br />
57  </dd>
58 </xsl:template>
59
60 <xsl:template match="deadline">
61  <li>
62   <b><xsl:value-of select="date"/></b>
63   <xsl:text> </xsl:text>
64   <xsl:value-of select="description"/>
65  </li>
66 </xsl:template>
67
68 </xsl:stylesheet>