Fix centering problem on IE6 and cleanup css
[www/www.git] / xsl / common.xsl
index 28c3229..520d54e 100644 (file)
@@ -1,11 +1,9 @@
 <?xml version='1.0'?>
 
 <?xml version='1.0'?>
 
-<xsl:stylesheet version="2.0"
+<xsl:stylesheet version="1.0"
     xmlns="http://www.w3.org/1999/xhtml"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns="http://www.w3.org/1999/xhtml"
     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">
 
 <xsl:template match="cscpage">
   <html>
 
 <xsl:template match="cscpage">
   <html>
@@ -18,7 +16,7 @@
       <title><xsl:value-of select="@title" /></title>
       <link rel="stylesheet" href="{$g_pre}default.css" type="text/css" />
     </head>
       <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" />
       <a id="pagetop" />
       <xsl:apply-templates select="biglogo" />
       <xsl:apply-templates select="header" />
@@ -30,7 +28,7 @@
 
 <xsl:template match="section">
   <xsl:if test="@anchor">
 
 <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:if>
   <h2><xsl:value-of select="@title" /></h2>
   <xsl:apply-templates />
@@ -48,7 +46,7 @@
     </div>
     <div class="csclogo">
       <a href="{$g_pre}index.html"><img src="{$g_pre}logos/csc_logo.gif"
     </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>
+          alt="Computer Science Club" width="420" height="79" /></a>
     </div>
   </div>
   <div class="template-header">
     </div>
   </div>
   <div class="template-header">
         Computer Science Club of the University of Waterloo.
       </p>
     </div>
         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>
-      <a href="http://validator.w3.org/feed/check.cgi?url=http%3A//csclub.uwaterloo.ca/events.atom">
-       <img src="buttons/valid-atom.png" alt="[Valid Atom 1.0]" title="Validate my Atom 1.0 feed" /></a>
-    </p>
   </div>
 </xsl:template>
 
   </div>
 </xsl:template>