3 <xsl:stylesheet version="1.0"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
6 <xsl:import href="common.xsl"/>
8 <xsl:output method="html"/>
10 <xsl:template match="/">
14 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
15 <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
18 <xsl:call-template name="head">
19 <xsl:with-param name="path_to_top" select="'.'"/>
22 [Sorted by event date] [<a href="deadlines.html">Sorted by deadline</a>]
26 <xsl:apply-templates select="events/event"/>
28 <xsl:call-template name="foot">
29 <xsl:with-param name="path_to_top" select="'.'"/>
35 <xsl:template match="event">
37 <a href="{url}"><xsl:value-of select="name"/></a>
41 <b><xsl:value-of select="where"/></b>
42 <xsl:text> </xsl:text>
46 <xsl:call-template name="print_interval">
47 <xsl:with-param name="begin" select="when/begin/text()"/>
48 <xsl:with-param name="end" select="when/end/text()"/>
53 <xsl:if test="description">
54 <p><xsl:value-of select="description"/></p>
56 <xsl:if test="deadline">
59 <xsl:apply-templates select="deadline"/>
66 <xsl:template match="deadline">
68 <xsl:variable name="kind">
69 <xsl:call-template name="color_of_deadline_kind">
70 <xsl:with-param name="kind" select="@kind"/>
74 <span style="color: {$kind}">
75 <xsl:call-template name="print_date">
76 <xsl:with-param name="date" select="date/text()"/>
80 <xsl:text> </xsl:text>
81 <xsl:value-of select="description"/>