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="'.'"/>
21 <h1>Mowgli Events</h1>
23 <h1>Events Of Interest to MOWGLI ---
24 <a href="deadlines.html" target="_top">Sort by deadlines!</a></h1>
26 <xsl:apply-templates select="events/event">
27 <xsl:sort select="when/begin" data-type="number"/>
28 </xsl:apply-templates>
30 <xsl:call-template name="foot">
31 <xsl:with-param name="path_to_top" select="'.'"/>
37 <xsl:template match="event">
39 <a href="{url}"><xsl:value-of select="name"/></a>
43 <b><xsl:value-of select="where"/></b>
44 <xsl:text> </xsl:text>
48 <xsl:call-template name="print_interval">
49 <xsl:with-param name="begin" select="when/begin/text()"/>
50 <xsl:with-param name="end" select="when/end/text()"/>
55 <xsl:if test="description">
56 <p><xsl:value-of select="description"/></p>
58 <xsl:if test="deadline">
61 <xsl:apply-templates select="deadline"/>
68 <xsl:template match="deadline">
70 <xsl:variable name="kind">
71 <xsl:call-template name="color_of_deadline_kind">
72 <xsl:with-param name="kind" select="@kind"/>
76 <span style="color: {$kind}">
77 <xsl:call-template name="print_date">
78 <xsl:with-param name="date" select="date/text()"/>
82 <xsl:text> </xsl:text>
83 <xsl:value-of select="description"/>