<html>
<head>
<title><xsl:value-of select="@title"/></title>
+ <link rel="stylesheet" href="/default.css" type="text/css" />
<style type="text/css">
<![CDATA[<!-- @import url('/default.css'); -->]]>
</style>
</head>
-<body>
+<body bgcolor="#ffffff">
<xsl:apply-templates select="biglogo"/>
<xsl:apply-templates select="header">
<xsl:with-param name="title" select="@title"/>
</xsl:template>
<xsl:template match="menuitem">
- <td class="button">
+ <td bgcolor="#eeeeee" class="button">
<a href="{@href}"><img border="0" src="/buttons/{@icon}.png"
width="40" height="40" alt="" /></a><br />
<a href="{@href}"><xsl:value-of select="@title"/></a>
<xsl:value-of select="$time"/>.
</p>
<p>
- Copyright 2002 the Computer Science Club of the University of
- Waterloo. Please direct website comments to the <a
- href="mailto:www@csclub.uwaterloo.ca">Webmaster</a>.
+ Copyright
+ <xsl:text disable-output-escaping="yes">&copy;</xsl:text>
+ 2002<xsl:text disable-output-escaping="yes">&ndash;</xsl:text>2004
+ Computer Science Club of the University of Waterloo.<br />
+ KDE Crystal theme icons are copyright
+ <xsl:text disable-output-escaping="yes">&copy;</xsl:text>
+ 2002 and following years KDE Artists.<br />
+ Please direct website comments to the <a
+ href="mailto:www@csclub.uwaterloo.ca">Webmaster</a>.
</p>
</xsl:template>
<xsl:template match="newsdefs">
- <xsl:apply-templates select="newsitem"/>
+ <xsl:apply-templates select="newsitem[csc:term(@date) = csc:term($date)]">
+ <xsl:sort select="translate(@date, '-', '')"
+ order="descending"
+ data-type="number"/>
+ </xsl:apply-templates>
</xsl:template>
<xsl:template match="newsitem">
<tr>
- <td class="newsdate"><xsl:value-of select="@date"/></td>
- <td rowspan="2" valign="top" class="newsitem"><xsl:apply-templates/></td>
+ <td class="newsdate" bgcolor="#eeeeff"><xsl:value-of select="@date"/></td>
+ <td rowspan="2" valign="top" class="newsitem" bgcolor="white"><xsl:apply-templates/></td>
</tr>
<tr>
- <td class="newsauthor"><xsl:value-of select="@author"/></td>
+ <td class="newsauthor" bgcolor="#eeeeff"><xsl:value-of select="@author"/></td>
</tr>
</xsl:template>
<xsl:template match="news" name="news">
<tr>
- <th colspan="2" class="news">
+ <th colspan="2" class="news" bgcolor="#aaaaff">
News
</th>
</tr>
<xsl:apply-templates select="document('news.xml')/newsdefs"/>
<tr>
- <td class="newsitem" colspan="2">
+ <td class="newsitem" bgcolor="white" colspan="2">
<a href="news/">Older news items</a> are available. Make sure you
check out the <a href="nntp://uw.csc">uw.csc</a> newsgroup and our
announcement boards on the second and third floor of MC for more
<xsl:template match="events" name="events">
<tr>
- <th colspan="2" class="news">
+ <th colspan="2" class="news" bgcolor="#aaaaff">
Upcoming Events
</th>
</tr>
data-type="number"/>
<xsl:if test="translate(@date, '-', '') >= translate($date, '-', '')">
<tr>
- <td class="eventdate"><xsl:value-of select="@date"/></td>
- <td rowspan="2" valign="top" class="eventitem">
+ <td class="eventdate" bgcolor="#eeffee"><xsl:value-of select="@date"/></td>
+ <td rowspan="2" valign="top" class="eventitem" bgcolor="white">
<a href="{translate(concat('/events/', @room, '-', @date, '-', @time, '.html'), ' ', '_')}">
<xsl:value-of select="@title"/>
</a>.
</td>
</tr>
<tr>
- <td class="eventroom"><xsl:value-of select="@time"/>,
+ <td class="eventroom" bgcolor="#eeffee"><xsl:value-of select="@time"/>,
<xsl:value-of select="@room"/></td>
</tr>
</xsl:if>
</xsl:for-each>
<tr>
- <td class="eventitem" colspan="2"><a href="events/">Past
+ <td class="eventitem" bgcolor="white" colspan="2"><a href="events/">Past
events</a> are available.</td>
</tr>
</xsl:template>
<![CDATA[<!-- @import url('/default.css'); -->]]>
</style>
</head>
-<body>
+<body bgcolor="#ffffff">
<xsl:call-template name="header">
<xsl:with-param name="title" select="@title"/>
</xsl:call-template>
<xsl:template match="news-and-events">
<table cellspacing="1" cellpadding="2" bgcolor="black">
- <xsl:call-template name="news"/>
<xsl:call-template name="events"/>
+ <xsl:call-template name="news"/>
</table>
</xsl:template>
</xsl:for-each>
</xsl:template>
+<xsl:template match="news-this-term" name="news-by-term">
+ <p>The news for <xsl:value-of select="csc:term($date)"/> is listed here.</p>
+ <xsl:for-each select="document('news.xml')/newsdefs/newsitem">
+ <xsl:sort select="translate(@date, '-', '')"
+ order="descending"
+ data-type="number"/>
+ <xsl:if test="csc:term(@date) = csc:term($date)">
+ <p>
+ <b><xsl:value-of select="@date"/>,
+ <xsl:value-of select="@author"/>: </b> <xsl:apply-templates/>
+ </p>
+ </xsl:if>
+ </xsl:for-each>
+</xsl:template>
+
<xsl:template match="members-this-term">
<p>The members for <xsl:value-of select="csc:term($date)"/> are
- listed here.</p>
+ listed here. We currently have <xsl:value-of
+ select="count(document('members.xml')/memberlist/member)"/> members.</p>
<table>
<tr>
<th>Member ID</th>
<xsl:if test="position() mod 2 = 0">
<xsl:attribute name="bgcolor">#cee6ff</xsl:attribute>
</xsl:if>
- <td><a href="/office/books/{@isbn}.html"><xsl:value-of
+ <td><a href="/office/books/{translate(@isbn, ' ', '_')}.html"><xsl:value-of
select="@title"/><xsl:if test="@edition != ''"> (<xsl:value-of
select="@edition"/>)</xsl:if></a></td>
<td><xsl:value-of select="@author"/></td>
<![CDATA[<!-- @import url('/default.css'); -->]]>
</style>
</head>
-<body>
+<body bgcolor="#ffffff">
<xsl:call-template name="header">
<xsl:with-param name="title" select="@title"/>
<xsl:with-param name="pwd" select="concat($pwd, '/books')"/>
<![CDATA[<!-- @import url('/default.css'); -->]]>
</style>
</head>
-<body>
+<body bgcolor="#ffffff">
<xsl:call-template name="header">
<xsl:with-param name="title" select="concat('Events for ', csc:term(@date))"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
+<xsl:key name="newsterm"
+ match="/newsdefs/newsitem"
+ use="csc:term(@date)" />
+
+ <xsl:template match="old-news">
+ <xsl:for-each
+ select="document('news.xml')/newsdefs/newsitem">
+
+ <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($date))">
+ <p><a href="{translate(concat('old-',
+ csc:term(@date), '.html'), ' ', '_')}">
+ <xsl:value-of
+ select="csc:term(@date)"/></a></p>
+ <xsl:document method="html" href="{translate(concat($root, '/news/old-', csc:term(@date), '.html'), ' ', '_')}">
+<xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">]]>
+</xsl:text>
+<html>
+<head>
+ <title>News for <xsl:value-of select="csc:term(@date)"/></title>
+ <style type="text/css">
+ <![CDATA[<!-- @import url('/default.css'); -->]]>
+ </style>
+</head>
+<body bgcolor="#ffffff">
+ <xsl:call-template name="header">
+ <xsl:with-param name="title" select="concat('News for ', csc:term(@date))"/>
+ </xsl:call-template>
+ <xsl:call-template name="news-by-term">
+ <xsl:with-param name="date" select="@date"/>
+ </xsl:call-template>
+ <xsl:call-template name="footer"/>
+</body>
+</html>
+ </xsl:document>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:template>
+
<xsl:template match="execlist">
<h3>Elected positions</h3>
<ul>
<xsl:template match="exec">
<li><xsl:value-of select="@name"/> is this term's <b><xsl:value-of
select="@position"/></b>. You can <a
- href="mailto:{@userid}@csclub.uwaterloo.ca">e-mail them</a><xsl:if
- test="not(@href='')"> or <a href="{@href}">visit their
+ href="mailto:{@userid}@csclub.uwaterloo.ca">e-mail the <xsl:value-of select="@position"/></a><xsl:if
+ test="not(@href='')"> or <a href="{@href}">visit
+ <xsl:choose>
+ <xsl:when test="@sex='male'"> his </xsl:when>
+ <xsl:when test="@sex='female'"> her </xsl:when>
+ <xsl:otherwise> his or her </xsl:otherwise>
+ </xsl:choose>
homepage</a></xsl:if>.
</li>
</xsl:template>