- <xsl:call-template name="head">
- <xsl:with-param name="path_to_top" select="'.'"/>
- </xsl:call-template>
- <h1>Events</h1>
- [Sorted by event date] [<a href="deadlines.html">Sorted by deadline</a>]
- <br /><br />
+ <h1>
+ <xsl:value-of select="$events-class"/>
+ <xsl:text> Events</xsl:text>
+ </h1>
+ <xsl:if test="$events-class = 'Other'">
+ [Sorted by event date] [<a href="deadlines.html">Sorted by deadline</a>]
+ <br /><br />
+ <hr />
+ </xsl:if>
+ <dl>
+ <xsl:apply-templates select="events/event[when/begin >= $today]">
+ <xsl:sort select="when/begin" data-type="number"/>
+ </xsl:apply-templates>
+ </dl>