@ -19,28 +19,25 @@
</xsl:choose>
</xsl:variable>
<xsl:output method= "html" />
<xsl:output method= "xml" encoding= "ISO-8859-1" doctype-public= "-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system= "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd " />
<xsl:template match= "cscpage" >
<xsl:text disable-output-escaping= "yes" > <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]>
</xsl:text>
<html xmlns= "http://www.w3.org/1999/xhtml" >
<html >
<head >
<title > <xsl:value-of select= "@title" /> </title>
<link rel= "stylesheet" href= "{$pre}default.css" type= "text/css" />
<style type= "text/css" >
<![CDATA[<!-- ]]> @import url('<xsl:value-of select= "$pre" /> default.css');<![CDATA[ -->]]>
</style>
</head>
<body bgcolor= "#ffffff" >
<a name= "pagetop" > </a>
<body >
<div >
<a name= "pagetop" id= "pagetop" />
<xsl:apply-templates select= "biglogo" />
<xsl:apply-templates select= "header" >
<xsl:with-param name= "title" select= "@title" />
</xsl:apply-templates>
<xsl:apply-templates select= "section|menu" />
<xsl:apply-templates select= "footer" />
</div>
</body>
</html>
</xsl:template>
@ -53,17 +50,17 @@
<xsl:template match= "biglogo" name= "biglogo" >
<div class= "biglogo" >
<table cellspacing= "0" cellpadding= "0" border= "0" align= "left" >
<table cellspacing= "0" cellpadding= "0" border= "0" >
<tr >
<td width= "109" > <a href= "http://www.uwaterloo.ca/" > <img
<td > <a href= "http://www.uwaterloo.ca/" > <img
src="{$pre}logos/uw_logo_100_68.gif" alt="University of Waterloo"
width="100" height="68" align="center" border="0" /></a> </td>
width="100" height="68" /></a> </td>
<!-- <td width="174"><a href="{$pre}"><img src="{$pre}logos/csc_160_70.png"
alt="Computer Science Club" width="165" height="75" align="center"
border="0" /></a> </td> -->
<td width= "91" > <a href= "http://www.acm.org" > <img width= "82"
<td > <a href= "http://www.acm.org" > <img width= "82"
height="103" src="{$pre}logos/acm_logo.gif" alt="A Student Chapter of
the ACM" align="center" border="0" /></a> </td>
the ACM" /></a> </td>
</tr>
</table>
</div>
@ -91,41 +88,37 @@
</xsl:template>
<xsl:template match= "mediaitem" >
<xsl:document method= "html"
<xsl:document method= "xml" encoding= "ISO-8859-1" doctype-public= "-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system= "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd "
href="{translate(concat($root, '/media/', @title , '.html'), ' ', ' ')}">
<xsl:text disable-output-escaping= "yes" > < ![CDATA[< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]>
</xsl:text>
<html xmlns= "http://www.w3.org/1999/xhtml" >
<html >
<head >
<title > <xsl:value-of select= "@title" /> </title>
<style type= "text/css" >
<![CDATA[<!-- ]]> @import url('<xsl:value-of select= "$pre" /> default.css');<![CDATA[ -->]]>
</style>
<link rel= "stylesheet" href= "{$pre}default.css" type= "text/css" />
</head>
<body bgcolor= "#ffffff" >
<body >
<div >
<xsl:call-template name= "header" >
<xsl:with-param name= "title" select= "@title" />
</xsl:call-template>
<xsl:if test= "abstract" >
<h2 > Abstract</h2>
<p >
<xsl:apply-templates select= "abstract" />
</p >
<div >
<xsl:apply-templates select= "abstract/node() " />
</div >
</xsl:if>
<xsl:if test= "flvfile" >
<h2 > View</h2>
<p >
<div >
<xsl:apply-templates select= "flvfile" >
</xsl:apply-templates>
</p >
</div >
</xsl:if>
<xsl:if test= "mediafile" >
<h2 > Download</h2>
<p > <strong >
<div > <strong >
HTTP (web browser):
<xsl:apply-templates select= "mediafile" >
<xsl:with-param name= "ext" > </xsl:with-param>
@ -135,7 +128,7 @@
<xsl:apply-templates select= "mediafile" >
<xsl:with-param name= "ext" > .torrent</xsl:with-param>
</xsl:apply-templates>
</strong> </p >
</strong> </div >
</xsl:if>
<br />
@ -153,7 +146,7 @@
<script src= "http://digg.com/tools/diggthis.js" type= "text/javascript" > </script>
<!-- reddit button -->
<script language= " javascript" src= "http://reddit.com/button.js?t=3" > </script>
<script type= "text/ javascript" src= "http://reddit.com/button.js?t=3" > </script>
</xsl:if>
@ -174,6 +167,7 @@
-->
<xsl:call-template name= "footer" />
</div>
</body>
</html>
</xsl:document>
@ -188,8 +182,8 @@
</xsl:choose>
</xsl:variable>
<td align= "center" class= "menuitem" >
<a href= "{$pre2}{@href}" > <img border= "0" src= "{$pre}buttons/{@icon}.png"
<td class= "menuitem" >
<a href= "{$pre2}{@href}" > <img src= "{$pre}buttons/{@icon}.png"
width="40" height="40" alt="{@title}" /><!-- </a> --> <br />
<!-- <a href="{$pre2}{@href}"> --> <xsl:value-of select= "@title" /> </a>
</td>
@ -197,7 +191,7 @@
<xsl:template match= "menudefs" >
<div class= "menuspace" >
<table cellspacing= "0" cellpadding= "0" border= "0" align= "center" class= "menubar" >
<table cellspacing= "0" cellpadding= "0" border= "0" class= "menubar" >
<tr >
<xsl:apply-templates select= "menuitem" />
</tr>
@ -210,11 +204,10 @@
</xsl:template>
<xsl:template match= "header" name= "header" >
<a name= "pagetop" > </a>
<div id= "vfeed" > </div>
<div class= "webtitle" > <div class= "webtitle-inner" >
<table cellpadding= "0" cellspacing= "0" border= "0" align= "left" > <tr >
<td width= "90" >
<table cellpadding= "0" cellspacing= "0" border= "0" > <tr >
<td >
<a href= "{$pre}" > <img src= "{$pre}logos/csc_80_35_white.png" alt= "CSC Logo" /> </a>
</td> <td >
<a href= "{$pre}" > <img src= "{$pre}logos/csc_title.png" alt= "CSC Title" /> </a>
@ -260,12 +253,23 @@
</p>
<p class= "infobox" >
The overall layout is designed specially for Mozilla-based browsers.
It is also printer-friendly version . Please report any difficulty you
may find, including the version of your browser and your operating system.
It is also printer-friendly. Please report any difficulty you may find,
including the version of your browser and your operating system.
to the <a href= "mailto:www@csclub.uwaterloo.ca" > Webmaster</a> .
</p>
<p >
<a href= "{$pre}" > <img src= "{$pre}logos/csc_80_35.png" alt= "CSC" align= "right" /> </a>
<a href= "http://validator.w3.org/check?uri=referer" >
<img src= "http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0 Strict" height="31" width="88" />
</a>
<a href= "http://jigsaw.w3.org/css-validator/" >
<img style= "border:0;width:88px;height:31px"
src="http://jigsaw.w3.org/css-validator/images/vcss"
alt="Valid CSS!" />
</a>
</p>
<div class= "footerlogo" > <a href= "{$pre}" > <img src= "{$pre}logos/csc_80_35.png" alt= "CSC" /> </a> </div>
<p >
Copyright
<xsl:text disable-output-escaping= "yes" > & copy;</xsl:text>
2002<xsl:text disable-output-escaping= "yes" > & ndash;</xsl:text> 2007
@ -293,24 +297,23 @@
<xsl:template match= "newsitem" >
<tr >
<td class= "newsdate" bgcolor= "#eeeeff" > <xsl:value-of select= "@date" /> </td>
<td rowspan= "2" valign= "top" class= "newsitem" bgcolor= "white" > <xsl:apply-templates /> </td>
<td class= "newsdate" > <xsl:value-of select= "@date" /> </td>
<td rowspan= "2" valign= "top" class= "newsitem" > <xsl:apply-templates /> </td>
</tr>
<tr >
<td class= "newsauthor" bgcolor= "#eeeeff" > <xsl:value-of select= "@author" /> </td>
<td class= "newsauthor" > <xsl:value-of select= "@author" /> </td>
</tr>
</xsl:template>
<!-- TODO: methinks this is borked -->
<xsl:template match= "news" name= "news" >
<tr >
<th colspan= "2" class= "news" bgcolor= "#aaaaff" >
<th colspan= "2" class= "news" >
News
</th>
</tr>
<xsl:apply-templates select= "document('news.xml')/newsdefs" />
<tr >
<td class= "newsitem" bgcolor= "white" colspan= "2" >
<td class= "newsitem" colspan= "2" >
<a href= "news/" > Older news items</a> are available. Make sure you
check out the <a href= "/newsgroup/thread.php?group=uw.csc" > uw.csc</a> newsgroup and our
announcement boards on the second and third floor of MC for more
@ -321,7 +324,7 @@
<xsl:template match= "events" name= "events" >
<tr >
<th colspan= "2" class= "news" bgcolor= "#aaaaff" >
<th colspan= "2" class= "news" >
Upcoming Events <a href= "events.ics" > ical</a>
</th>
</tr>
@ -331,8 +334,8 @@
data-type="number"/>
<xsl:if test= "translate(@date, '-', '') >= translate($date, '-', '')" >
<tr >
<td class= "eventdate" bgcolor= "#eeffee" > <xsl:value-of select= "@date" /> </td>
<td rowspan= "2" valign= "top" class= "eventitem" bgcolor= "white" >
<td class= "eventdate" > <xsl:value-of select= "@date" /> </td>
<td rowspan= "2" valign= "top" class= "eventitem" >
<a href= "{translate(concat('/events/', @room, '-', @date, '-', @time, '.html'), ' ', '_')}" >
<xsl:value-of select= "@title" />
</a> .
@ -340,13 +343,13 @@
</td>
</tr>
<tr >
<td class= "eventroom" bgcolor= "#eeffee" > <xsl:value-of select= "@time" /> ,
<td class= "eventroom" > <xsl:value-of select= "@time" /> ,
<xsl:value-of select= "@room" /> </td>
</tr>
</xsl:if>
</xsl:for-each>
<tr >
<td class= "eventitem" bgcolor= "white" colspan= "2" > <a href= "events/" > Past
<td class= "eventitem" colspan= "2" > <a href= "events/" > Past
events</a> are available.</td>
</tr>
</xsl:template>
@ -356,35 +359,33 @@
</xsl:template>
<xsl:template match= "eventitem" >
<xsl:document method= "html"
<xsl:document method= "xml" encoding= "ISO-8859-1" doctype-public= "-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system= "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd "
href="{translate(concat($root, '/events/', @room, '-', @date, '-', @time, '.html'), ' ', '_')}">
<xsl:text disable-output-escaping= "yes" > <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]>
</xsl:text>
<html xmlns= "http://www.w3.org/1999/xhtml" >
<html >
<head >
<title > <xsl:value-of select= "@title" /> </title>
<style type= "text/css" >
<![CDATA[<!-- ]]> @import url('<xsl:value-of select= "$pre" /> default.css');<![CDATA[ -->]]>
</style>
<link rel= "stylesheet" href= "{$pre}default.css" type= "text/css" />
</head>
<body bgcolor= "#ffffff" >
<body >
<div >
<xsl:call-template name= "header" >
<xsl:with-param name= "title" select= "@title" />
</xsl:call-template>
<p >
<div >
Held in <xsl:value-of select= "@room" /> at
<xsl:value-of select= "@date" /> , <xsl:value-of select= "@time" /> .
</p >
</div >
<h2 > Abstract</h2>
<xsl:apply-templates select= "abstract" />
<xsl:apply-templates select= "abstract/node() " />
<xsl:call-template name= "footer" />
</div>
</body>
</html>
</xsl:document>
</xsl:template>
<xsl:template match= "news-and-events" >
<table cellspacing= "1" cellpadding= "2" bgcolor= "black ">
<table cellspacing= "1" cellpadding= "2" class= "newsandevents ">
<xsl:call-template name= "events" />
<xsl:call-template name= "news" />
</table>
@ -436,13 +437,16 @@
<th > Program</th>
</tr>
<xsl:for-each select= "document('members.xml')/memberlist/member" >
<tr >
<xsl:if test= "position() mod 2 = 0" >
<xsl:attribute name= "bgcolor" > #cee6ff</xsl:attribute>
</xsl:if>
<td > <xsl:value-of select= "@id" /> </td>
<td > <xsl:value-of select= "@name" /> </td>
<td > <xsl:value-of select= "@program" /> </td>
<xsl:variable name= "class" >
<xsl:choose >
<xsl:when test= "position() mod 2 = 0" > members1</xsl:when>
<xsl:otherwise > members2</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<tr class= "{$class}" >
<td > <xsl:value-of select= "@id" /> </td>
<td > <xsl:value-of select= "@name" /> </td>
<td > <xsl:value-of select= "@program" /> </td>
</tr>
</xsl:for-each>
</table>
@ -468,17 +472,15 @@
</a> </td>
<td > <xsl:value-of select= "@author" /> </td>
</tr>
<xsl:document method= "html" href= "{translate(concat($root, '/office/books/', @isbn, '.html'), ' ', '_')}" >
<xsl:text disable-output-escaping= "yes" > <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]>
</xsl:text>
<html xmlns= "http://www.w3.org/1999/xhtml" >
<xsl: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($root, '/office/books/', @isbn, '.html'), ' ', '_')}">
<html >
<head >
<title > Book: <xsl:value-of select= "@title" /> </title>
<style type= "text/css" >
<![CDATA[<!-- ]]> @import url('<xsl:value-of select= "$pre" /> default.css');<![CDATA[ -->]]>
</style>
<link rel= "stylesheet" href= "{$pre}default.css" type= "text/css" />
</head>
<body bgcolor= "#ffffff" >
<body >
<div >
<xsl:call-template name= "header" >
<xsl:with-param name= "title" select= "@title" />
<!-- TODO -->
@ -492,6 +494,7 @@
<b > Published: </b> <xsl:value-of select= "@published" /> <br />
</p>
<xsl:call-template name= "footer" />
</div>
</body>
</html>
</xsl:document>
@ -521,17 +524,15 @@
csc:term(@date), '.html'), ' ', '_')}">
<xsl:value-of
select="csc:term(@date)"/></a> </p>
<xsl:document method= "html" href= "{translate(concat($root, '/events/old-', csc:term(@date), '.html'), ' ', '_')}" >
<xsl:text disable-output-escaping= "yes" > <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]>
</xsl:text>
<html xmlns= "http://www.w3.org/1999/xhtml" >
<xsl: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($root, '/events/old-', csc:term(@date), '.html'), ' ', '_')}">
<html >
<head >
<title > Events for <xsl:value-of select= "csc:term(@date)" /> </title>
<style type= "text/css" >
<![CDATA[<!-- ]]> @import url('<xsl:value-of select= "$pre" /> default.css');<![CDATA[ -->]]>
</style>
<link rel= "stylesheet" href= "{$pre}default.css" type= "text/css" />
</head>
<body bgcolor= "#ffffff" >
<body >
<div >
<xsl:call-template name= "header" >
<xsl:with-param name= "title" select= "concat('Events for ', csc:term(@date))" />
</xsl:call-template>
@ -539,6 +540,7 @@
<xsl:with-param name= "date" select= "@date" />
</xsl:call-template>
<xsl:call-template name= "footer" />
</div>
</body>
</html>
</xsl:document>
@ -564,17 +566,17 @@
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: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($root, '/news/old-', csc:term(@date), '.html'), ' ', '_')}">
<xsl:text disable-output-escaping= "yes" > <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]>
</xsl:text>
<html xmlns= "http://www.w3.org/1999/xhtml" >
<html >
<head >
<title > News for <xsl:value-of select= "csc:term(@date)" /> </title>
<style type= "text/css" >
<![CDATA[<!-- ]]> @import url('<xsl:value-of select= "$pre" /> default.css');<![CDATA[ -->]]>
</style>
<link rel= "stylesheet" href= "{$pre}default.css" type= "text/css" />
</head>
<body bgcolor= "#ffffff" >
<body >
<div >
<xsl:call-template name= "header" >
<xsl:with-param name= "title" select= "concat('News for ', csc:term(@date))" />
</xsl:call-template>
@ -582,6 +584,7 @@
<xsl:with-param name= "date" select= "@date" />
</xsl:call-template>
<xsl:call-template name= "footer" />
</div>
</body>
</html>
</xsl:document>