|
|
|
@ -12,12 +12,12 @@ |
|
|
|
|
<th colspan="2" class="news">Upcoming Events</th> |
|
|
|
|
</tr> |
|
|
|
|
<xsl:for-each select="document(concat($g_root, '/events.xml'))/eventdefs/eventitem"> |
|
|
|
|
<xsl:sort select="translate(@date, '-', '')" |
|
|
|
|
<xsl:sort select="translate(@date, '-', '')" |
|
|
|
|
order="ascending" data-type="number" /> |
|
|
|
|
<xsl:if test="translate(@date, '-', '') >= translate($g_date, '-', '')"> |
|
|
|
|
<tr> |
|
|
|
|
<td class="eventdate"><xsl:value-of select="@date" /></td> |
|
|
|
|
<td rowspan="2" valign="top" class="eventitem"> |
|
|
|
|
<td rowspan="2" valign="top" class="eventitem"> |
|
|
|
|
<a href="{translate(concat('/events/', @room, '-', @date, '-', @time, '.html'), ' ', '_')}"> |
|
|
|
|
<xsl:value-of select="@title" /> |
|
|
|
|
</a>. |
|
|
|
@ -50,14 +50,14 @@ |
|
|
|
|
<p>The events for <xsl:value-of select="csc:term($date)" /> are listed here. |
|
|
|
|
You can also <a href="{$pre}events.ics">download an ICS</a> of them.</p> |
|
|
|
|
<xsl:for-each select="document(concat($g_root, '/events.xml'))/eventdefs/eventitem"> |
|
|
|
|
<xsl:sort select="translate(@date, '-', '')" |
|
|
|
|
<xsl:sort select="translate(@date, '-', '')" |
|
|
|
|
order="ascending" data-type="number" /> |
|
|
|
|
<xsl:if test="csc:term(@date) = csc:term($date)"> |
|
|
|
|
<h3><a href="{translate(concat($pre, 'events/', @room, '-', @date, '-', @time, '.html'), ' ', '_')}"><xsl:value-of select="@title" /></a></h3> |
|
|
|
|
<p> |
|
|
|
|
<strong> |
|
|
|
|
<xsl:value-of select="@room" />, |
|
|
|
|
<xsl:value-of select="@date" />, |
|
|
|
|
<xsl:value-of select="@room" />, |
|
|
|
|
<xsl:value-of select="@date" />, |
|
|
|
|
<xsl:value-of select="@time" />: |
|
|
|
|
</strong> |
|
|
|
|
<xsl:value-of select="short" />. |
|
|
|
@ -71,8 +71,8 @@ |
|
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
|
|
<xsl:template match="eventitem"> |
|
|
|
|
<xsl:result-document method="xml" encoding="ISO-8859-1" |
|
|
|
|
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" |
|
|
|
|
<xsl:result-document method="xml" encoding="ISO-8859-1" |
|
|
|
|
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" |
|
|
|
|
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" |
|
|
|
|
href="{translate(concat($g_root, '/events/', @room, '-', @date, '-', @time, '.html'), ' ', '_')}"> |
|
|
|
|
<html> |
|
|
|
@ -87,7 +87,7 @@ |
|
|
|
|
<p><xsl:value-of select="@title" />.</p> |
|
|
|
|
<p> |
|
|
|
|
Held in <xsl:value-of select="@room" />, on |
|
|
|
|
<xsl:value-of select="@date" />, at |
|
|
|
|
<xsl:value-of select="@date" />, at |
|
|
|
|
<xsl:value-of select="@time" />. |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
@ -105,14 +105,14 @@ |
|
|
|
|
|
|
|
|
|
<xsl:template match="old-events"> |
|
|
|
|
<xsl:for-each select="document(concat($g_root, '/events.xml'))/eventdefs/eventitem"> |
|
|
|
|
<xsl:sort select="translate(@date, '-', '')" |
|
|
|
|
<xsl:sort select="translate(@date, '-', '')" |
|
|
|
|
order="descending" data-type="number" /> |
|
|
|
|
<xsl:if test="not(preceding-sibling::*[csc:term(@date)=csc:term(current()/@date)]) and not(csc:term(@date) = csc:term($g_date))"> |
|
|
|
|
<p><a href="{translate(concat('old-',csc:term(@date), '.html'), ' ', '_')}"> |
|
|
|
|
<xsl:value-of select="csc:term(@date)" /> |
|
|
|
|
</a></p> |
|
|
|
|
<xsl:result-document method="xml" encoding="ISO-8859-1" |
|
|
|
|
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" |
|
|
|
|
<xsl:result-document method="xml" encoding="ISO-8859-1" |
|
|
|
|
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" |
|
|
|
|
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" |
|
|
|
|
href="{translate(concat($g_root, '/events/old-', csc:term(@date), '.html'), ' ', '_')}"> |
|
|
|
|
<html> |
|
|
|
|