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="/">
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"/>
18 <xsl:call-template name="head">
19 <xsl:with-param name="path_to_top" select="'.'"/>
22 [<a href="events.html">Sorted by event date</a>] [Sorted by deadline]
26 <xsl:apply-templates select="events/event/deadline"/>
28 <xsl:call-template name="foot">
29 <xsl:with-param name="path_to_top" select="'.'"/>
35 <xsl:template match="deadline">
38 <xsl:variable name="kind">
39 <xsl:call-template name="color_of_deadline_kind">
40 <xsl:with-param name="kind" select="@kind"/>
43 <span style="color: {$kind}">
44 <xsl:call-template name="print_date">
45 <xsl:with-param name="date" select="date/text()"/>
49 <xsl:text> </xsl:text>
50 <xsl:value-of select="description"/>
51 <xsl:text> </xsl:text>
52 <a href="{../url}" target="_top"><xsl:value-of select="../name"/></a>