Removed old header html.
[mspang/www.git] / xsl / common.xsl
1 <?xml version='1.0'?>
2
3 <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4     xmlns:csc="http://www.csclub.uwaterloo.ca/cow" 
5     extension-element-prefixes="csc">
6
7 <xsl:template match="cscpage">
8   <html>
9     <head>
10       <title><xsl:value-of select="@title" /></title>
11       <link rel="stylesheet" href="{$pre}default.css" type="text/css" />
12     </head>
13     <body><div>
14       <a name="pagetop" id="pagetop" />
15       <xsl:apply-templates select="biglogo" />
16       <xsl:apply-templates select="header">
17         <xsl:with-param name="title" select="@title" />
18       </xsl:apply-templates>
19       <xsl:apply-templates select="section|menu" />
20       <xsl:apply-templates select="footer" />
21     </div></body>
22   </html>
23 </xsl:template>
24
25 <xsl:template match="section">
26   <xsl:if test="@id != ''">
27     <a id="{@id}" />
28   </xsl:if>
29   <h2><xsl:value-of select="@title" /></h2>
30   <xsl:apply-templates />
31 </xsl:template>
32
33 <xsl:template match="biglogo" name="biglogo">
34   <div class="biglogo">
35     <div class="uwlogo">
36       <a href="http://www.uwaterloo.ca/"><img src="{$pre}logos/uw_logo.gif"
37           alt="University of Waterloo" width="105" height="70" /></a>
38     </div>
39     <div class="acmlogo">
40       <a href="http://www.acm.org"><img src="{$pre}logos/acm_logo.gif"
41            alt="A Student Chapter of the ACM" width="82" height="88" /></a>
42     </div>
43   </div>
44 </xsl:template>
45
46 <xsl:template match="header" name="header">
47   <div id="vfeed" />
48   <div class="webtitle"><div class="webtitle-inner">
49     <table cellpadding="0" cellspacing="0" border="0"><tr>
50       <td>
51         <a href="{$pre}"><img src="{$pre}logos/csc_80_35_white.png" 
52             alt="CSC Logo" /></a>
53       </td><td>
54         <a href="{$pre}"><img src="{$pre}logos/csc_title.png" 
55             alt="CSC Title" /></a>
56       </td><td valign="top" align="right" />
57     </tr></table>
58   </div></div>
59   <table cellspacing="0" cellpadding="2" border="0" width="100%" 
60       class="template-header">
61     <tr>
62       <td colspan="2" class="pagetitle"><xsl:value-of select="@title" /></td>
63     </tr>
64     <tr>
65       <td colspan="2">
66         <xsl:apply-templates
67            select="document('../directory.xml')/directory" />
68       </td>
69     </tr>
70   </table>
71 </xsl:template>
72
73 <xsl:template match="footer" name="footer">
74   <a href="#pagetop" class="pagetop">Go to top</a>
75   <div class="footer">
76   <xsl:call-template name="menu" />
77   <p>This page was generated on <xsl:value-of select="$date" /> at 
78     <xsl:value-of select="$time" />.</p>
79   <p class="infobox">
80     The overall layout is designed specially for Mozilla-based browsers.
81     It is also printer-friendly. Please report any difficulty you may find, 
82     including the version of your browser and your operating system.
83     to the <a href="mailto:www@csclub.uwaterloo.ca">Webmaster</a>.
84   </p>
85   <p>
86     <a href="http://validator.w3.org/check?uri=referer">
87     <img src="http://www.w3.org/Icons/valid-xhtml10"
88         alt="Valid XHTML 1.0 Strict" height="31" width="88" />
89     </a>
90     <a href="http://jigsaw.w3.org/css-validator/check/referer">
91       <img style="border:0;width:88px;height:31px"
92           src="http://jigsaw.w3.org/css-validator/images/vcss" 
93           alt="Valid CSS!" />
94     </a>
95   </p>
96   <div class="footerlogo"><a href="{$pre}"><img src=
97       "{$pre}logos/csc_80_35.png" alt="CSC" /></a></div>
98     <p>
99       Copyright
100       <xsl:text disable-output-escaping="yes">&amp;copy;</xsl:text>
101       2002<xsl:text disable-output-escaping="yes">&amp;ndash;</xsl:text>2007
102       Computer Science Club of the University of Waterloo.<br />
103       KDE Crystal theme icons are copyright
104       <xsl:text disable-output-escaping="yes">&amp;copy;</xsl:text>
105       2002 and following years KDE Artists. Sunflower image is copyright Manan 
106       Tuli. Horde image is copyright horde contributors. Both are available 
107       under the <a href="http://creativecommons.org/licenses/by-sa/2.5/">
108       Creative Commons::Attribution-ShareAlike license</a>. Gopher image is 
109       copyright Elron6900 (Flickr) and is available under the <a
110       href="http://creativecommons.org/licenses/by-nc/2.0/">
111       Attribution-NonCommercial 2.0</a> license.
112     </p>
113   </div>
114 </xsl:template>
115
116 <xsl:template match="news-and-events">
117   <table cellspacing="1" cellpadding="2" class="newsandevents">
118     <xsl:call-template name="events" />
119     <xsl:call-template name="news" />
120  </table>
121 </xsl:template>
122
123 </xsl:stylesheet>