Add gloves 101 event
[www/www.git] / xsl / common.xsl
index ec12881..e88e174 100644 (file)
@@ -1,11 +1,11 @@
 <?xml version='1.0'?>
 
-<xsl:stylesheet version="2.0"
-    xmlns="http://www.w3.org/1999/xhtml"
+<xsl:stylesheet version="1.1"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-    xmlns:xs="http://www.w3.org/2001/XMLSchema"
-    xmlns:fn="http://www.w3.org/2005/xpath-functions"
-    xmlns:csc="http://csclub.uwaterloo.ca/xslt">
+    xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"
+    xmlns="http://www.w3.org/1999/xhtml"
+    exclude-result-prefixes="csc">
+<xsl:output method="xml" />
 
 <xsl:template match="cscpage">
   <html>
@@ -18,7 +18,7 @@
       <title><xsl:value-of select="@title" /></title>
       <link rel="stylesheet" href="{$g_pre}default.css" type="text/css" />
     </head>
-    <body><div>
+    <body><div class="content">
       <a id="pagetop" />
       <xsl:apply-templates select="biglogo" />
       <xsl:apply-templates select="header" />
@@ -30,7 +30,7 @@
 
 <xsl:template match="section">
   <xsl:if test="@anchor">
-    <a name="{@anchor}" />
+    <a id="{@anchor}" />
   </xsl:if>
   <h2><xsl:value-of select="@title" /></h2>
   <xsl:apply-templates />
 <xsl:template match="biglogo">
   <div class="biglogo">
     <div class="uwlogo">
-      <a href="http://www.uwaterloo.ca/"><img src="{$g_pre}logos/uw_logo.gif"
+      <a href="http://www.uwaterloo.ca/"><img src="{$g_pre}logos/uw_logo.png"
           alt="University of Waterloo" width="105" height="70" /></a>
     </div>
-    <div class="acmlogo">
-      <a href="http://www.acm.org"><img src="{$g_pre}logos/acm_logo.gif"
-           alt="A Student Chapter of the ACM" width="82" height="88" /></a>
-    </div>
     <div class="csclogo">
-      <a href="{$g_pre}index.html"><img src="{$g_pre}logos/csc_logo.gif"
-          alt="University of Waterloo" width="420" height="79" /></a>
+      <a href="{$g_pre}"><img src="{$g_pre}logos/csc_logo.png"
+          alt="Computer Science Club" width="420" height="79" /></a>
     </div>
   </div>
-  <div class="template-header">
+  <div class="dirheader">
     <xsl:apply-templates
         select="document(concat($g_pwd, '/directory.xml'))/directory"/>
   </div>
   <xsl:param name="title" />
   <xsl:param name="href" />
   <div class="webtitle">
-    <a href="{$g_pre}"><img src="{$g_pre}logos/csc_title.gif"
+    <a href="{$g_pre}"><img src="{$g_pre}logos/csc_title.png"
         alt="CSC Logo" /></a>
   </div>
-  <div class="template-header">
+  <div class="dirheader">
     <xsl:apply-templates
         select="document(concat($g_pwd, '/directory.xml'))/directory"/>
     <xsl:if test="$title">
     <a href="#pagetop" class="pagetop">Go to top</a>
     <div class="infobox">
       <p>
-        This site supports TLS/SSL using a certificate signed by the
-        "CSC Certificate Authority". Click <a href="{$g_pre}csclub.pem">
-        here</a> (PEM format) or <a href="{$g_pre}csclub.der">here</a> (DER
-        format) to install the certificate authority into your browser.
+        This site supports TLS/SSL using a certificate signed by GlobalSign.
       </p><p>
         This page was generated on <xsl:value-of select="$g_date" /> at
         <xsl:value-of select="$g_time" />.
       </p><p>
         Copyright
         <xsl:text disable-output-escaping="yes">&amp;copy;</xsl:text>
-        2002<xsl:text disable-output-escaping="yes">&amp;ndash;</xsl:text>2007
+        2002<xsl:text disable-output-escaping="yes">&amp;ndash;</xsl:text>2012
         Computer Science Club of the University of Waterloo.
       </p>
     </div>
-    <p>
-      <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/check/referer">
-      <img style="border:0;width:88px;height:31px"
-          src="http://jigsaw.w3.org/css-validator/images/vcss"
-          alt="Valid CSS!" />
-      </a>
-    </p>
   </div>
 </xsl:template>
 
   <table cellspacing="1" cellpadding="2" class="newsandevents">
     <xsl:call-template name="events" />
     <xsl:call-template name="news" />
- </table>
 </table>
 </xsl:template>
 
 </xsl:stylesheet>