<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
			version="2.0"
			>
			<!-- was....
                xmlns:saxon="http://icl.com/saxon"
		version="1.1"
                extension-element-prefixes="saxon">
			........
			-->

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        bcsoxon2006-print.xsl
        Author: Adrian Walmsley based on work by Robert Ward - BCS Oxfordshire
        Edited By: Adrian Walmsley - BCS Oxfordshire
		
		RRevision 2.5 18 June 2003 - Adrian Walmsley
		Updates to reflect new committee, changed links to relative to current page rather than relative to root
		to make testing easier. 
		However this has required special-casing the pages which are not reached by normal navigation:
		error-404, error-401 and thanks.
		Stylesheet changed to use hover on links and default to font face Verdana if available.
		
		
		Revision 2.6 August 2003
		Major revision to break monolithic XML file into subsections using <XInclude> and preprocess with
		xmllint prior to using Saxon 7 to apply the stylesheet 
		Update to use XSLT 2.0 to create separate output documents using xsl:result-document instead of saxon 
		extensions.
		New academic year's programme included.
		Change to use free hit counter from www.digits.com following ending of free service from TheCounter.com
		
		Revision 2.7 2 September 2003
		Amend feedback form to require explicit choice of subject, advertise BCS EGM on front page,
		correct links on Links page.
		
		Revision 2.8 1 October 2003
		Use external CSS stylesheet for font definitions. Remove deprecated BASEFONT tag
		
		Revision 2.9 22 March 2004
		allow extension to be specified for generated pages 
		(paving the way to generate PHP code)
		For PHP pages, this BASE tag was temporarily generated 
		<BASE HREF="http://www.bcsoxon.org"/>	
		which allows the PHP pages to be copied to and executed from the BCS host while
		not breaking internal links on the page
		
		Revision 2.10 6 April 2004
		Seecial case error-403 and error-500
		
		17 January 2005
		Set doctype-system="http://www.w3.org/TR/html4/loose.dtd" to give consistent text size between IE6 and Mozilla

       	May 2005 - default font changed to Trebuchet MS
		November 2005 - show/hide functionality added (overload of <div> tag)
		June 2006 - added conditional generation of hooks for Google Analytics

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<xsl:variable  name="GBL_xsl_version">
<xsl:text>$Header: bcsoxon2006-print.xsl 2.8 02/10/2003  Adrian Walmsley $</xsl:text>
</xsl:variable>
<xsl:variable  name="relroot"><xsl:text>./</xsl:text></xsl:variable>
<xsl:variable  name="stylesheet"><xsl:text>bcsoxon-print.css</xsl:text></xsl:variable>
<xsl:include   href="bcs_globals.xsl"/>
<xsl:include   href="iso_date.xsl"/>


<xsl:output method="html" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
<xsl:strip-space elements="*"/>


<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--    match <web>                                           -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<xsl:template match="web">
    <xsl:apply-templates/>
</xsl:template>

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--    match <stylesheet>                                           -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--    the body tag is repeated on purpose because of        -->
<!--    a browser bug which ignores the first occurrence      -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<xsl:template match="stylesheet">
 <xsl:variable name="stylesheet"        select="concat(@Name, '-print.css')"/>
 <xsl:result-document href="{$stylesheet}">
 <style type="text/css">
body{}
body {
   background-color: White;
   scrollbar-base-color: #0099cc;
   font-size: small;
   font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
   color: Black;
}
table.topmenu { background-color: #0099cc; width: 100%; margin: 0px; padding: 0px; border: 0px; border-collapse: collapse; }
table.topline { width: 100%; margin: 0px; padding: 0px; border: 0px; border-collapse: collapse; }
td.news { }
table.simpletable {width: 100%;}
td { font-size: small; font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif; color: Black; }
td.st_1st_col{ vertical-align: text-top; text-align: right; background-color: #0099cc; color: White; }
td.st_2nd_col{ vertical-align: text-top; text-align: left; background-color: #f0eedd; }
td.st_3rd_col{ vertical-align: bottom; text-align: center; background-color: White; }
td.navbar {color: Black;  background-color: #f0eedd; }
A.navbar:link {color: black; text-decoration: none;}
A.navbar:visited {color: black; text-decoration: none;}
A.navbar:active {color: #0099cc; text-decoration: none;}
A.navbar:hover {background: White; text-decoration: none;color: red;}
A.titlebar:link {color: White; text-decoration: none;}
A.titlebar:visited {color: White; text-decoration: none;}
A.titlebar:active {color: White; text-decoration: none;}
A.titlebar:hover {color: black; text-decoration: none; background-color: #f0eedd;}
A:link {color: #0099cc;}
A:visited {color: #0099cc;}
A:active {color: #0099cc;}
A:hover {color: red;}
a {text-decoration: none;}
p {margin-left: 1em;margin-right: 1em;text-align: left;}
p.smallright {text-align: right; font-size: 90%;}
.white {color: White;font-size: small;}
.black {color: Black;}
.list {color: Black;}
.red {color: Red;}
.smallwhite {color: White;font-size: 90%;}
.small {font-size: 90%;}
.title {font-size: large; color: #0099cc;}
.notetitle {font-size: large; color: #0099cc;  font-weight: bold; }
.footer {font-size: 90%;color: #0099cc;}
.bgblue {background: #0099CC;}
.bcsblue {color: #0099CC;}
.bcsbeige {color: #f0eedd;}
.bgbeige {background: #f0eedd;}
.formBtn {background:#0099cc; color:#ffffff; }
.formBtnhov {background:#ffffff; color:#0099cc; }
.sup {font-size : 80%;	vertical-align : super; }
h1,h2,h3,h4 {color: #0099CC;}
h1 {font: bold x-large;border-top-color: #0099cc;border-top-style: solid;border-top-width: thin;}
h2 {font: bold large;}
h3 {font: medium;  margin: 0px 0px; }
h4 {font: small;}
hr {color: #0099cc;  background-color: #0099cc; }
ol {list-style: lower-roman; color: #0099CC;}
li {list-style: square; color: #0099CC;}
   img {padding-left: 2px;	padding-right: 2px; }
</style>
</xsl:result-document>
</xsl:template>

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--    match <note>                                          -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<xsl:template match="note">
 <xsl:variable name="print-file"       select="concat(@Name, '-print.htm')"/>
<xsl:variable name="name"       select="@Name"/>
 <xsl:variable name="type" select="@type"/>
 
 <xsl:variable name="file"        select="if (string($type)=string('')) then concat(@Name, '.htm') else concat(@Name, '.', $type)"/>
<xsl:variable name="print-file"        select="if (string($type)=string('')) then concat(@Name, '-print.htm') else concat(@Name, '-print.', $type)"/>
 
 <xsl:variable name="note-title"  select="note-title"/>
 <xsl:variable name="keywords"    select="/web/@meta-keywords"/>
 <xsl:variable name="header"      select="/web/@header"/>

 <xsl:result-document href="{$print-file}">
 <xsl:variable name="thispage" select="@Name"/>  
 <xsl:variable name="special" select="number(contains('error-404 error-401 error-403 error-500 thanks cancel booking',$thispage))"/>
 <xsl:variable name="thisslash" select="substring('./',($special+1))"/>  
 <xsl:variable name="slash" select="substring('./',(2*$special+1))"/>  
  
  
  <HTML lang="en">
   <HEAD>
    <TITLE>BCS Oxfordshire Branch : <xsl:value-of select="$note-title"/></TITLE>
    <META CONTENT="text/html; charset=windows-1252" HTTP-EQUIV="Content-Type"/>
    <META NAME="KEYWORDS"     CONTENT="{$keywords}"/>
    <META NAME="XML-HEADER"   CONTENT="{$header}"/>
    <META NAME="XSL-HEADER"   CONTENT="{$GBL_xsl_version}"/>
    <META NAME="DESCRIPTION"  CONTENT="{$GBL_description}"/>
    <META NAME="AUTHOR"       CONTENT="{$GBL_author}"/>
    <META NAME="GENERATED"    CONTENT="{$iso_date}"/>
<xsl:choose>
  <xsl:when test="string($type)=string('php')">
<!--
<BASE HREF="http://www.bcsoxon.org"/>	
-->
  </xsl:when>
 <xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
<!-- Google Analytics for Robert Ward  -->
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
if (self.location.hostname == "www.oxon.bcs.org" )
{ 
_uacct = "UA-376837-1";
urchinTracker();
}
</script>
<!-- end Google Analytics for Robert Ward  -->  
  
</HEAD>


<link rel="STYLESHEET" type="text/css" href="{$thisslash}{$stylesheet}"/>
  
   
   <script> defaultStatus = "BCS Oxfordshire Branch - Copyright 2006"; </script>
   <script src="scripts/bcsoxon.js" language="javascript">
   </script>

<!-- body definitions below should be redundant because of the CSS but -->
<!-- body bgcolor repeated here for the benefit of Netscape 4.x users    -->
<!-- scrollbar color repeated here for the benefit of IE6    -->
 <BODY scroll="auto" style="scrollbar-base-color: #0099cc;" bgcolor="#ffffff">

<!-- ******** table containing BCS logo and top blue navigation bar ******** -->

<!-- top level table -->

<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">
 <tr height="1">
  <td>
   <!-- top logo bar -->
      <table class="topline">
    <tr>
     <td align="left" valign="center">
       <!--&nbsp;&nbsp;--><A href="http://www.bcs.org/" target="_new" name="top"><img src="images/bcslogo.gif" border="0" alt="BCS home page" title="BCS home page"/></A>
     </td>
     <td width="640" align="right">
       <span class="title">
       <b>Oxfordshire Branch</b>
       </span>
     </td>
     <td align="right" BGCOLOR="{$GBL_colour_white}">
       &#160;
     </td>
    </tr>
   </table>
<!-- top logo bar -->
  </td>
 </tr>
 <tr height="10">
  <td >

<!-- top menu bar -->
   <table class="topmenu">
    <tr>
     <td align="left" class="white">
       <b>
          <script>displayDate()</script>
        </b>
       
     </td>
     <td align="right" class="smallwhite">
        <!-- START TOP BLUE BAR NAVIGATION LINKS  -->
         <a href="{$slash}{$homepage}" class="titlebar">
         Branch home page
         </a>
         |
         <a href="http://www.bcs.org/" target="_new" class="titlebar">
         BCS website
         </a>
	         <!-- END TOP BLUE BAR NAVIGATION LINKS -->
      
      
     </td>
    </tr>
   </table>
<!-- ******** 
     End of top row menu. 
     ******** -->

  </td>
 </tr>
 <tr>
  <td valign="top">

<!-- Main cell of page -->
   <table width="100%" height="100%" valign="top">
    <tr  valign="top">

     <td width="5" background="images/specialside.jpg">
       &#160;
     </td>


     <td>

<!-- page content here -->

              <!-- BEGIN MAIN BODY TEXT -->
		 <span class="notetitle">
		  <xsl:value-of select="$note-title"/>
		  <hr width="100%" size="1"/>
		 </span>
               <BR/>

<!-- *** The next line inserts the content of the main part of the page -->	  
                <xsl:apply-templates select="note-body"/>

               <BR/>
               <BR/>

<!-- *** Insert common page footer -->
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
      <td align="left">
       <span class="footer">
           Registered Chartered Engineering Institute 1990.<br/>
	   BCS is a member of the Council of the European Professional Informatics Societies. <br/>
	   BCS Is a Registered Charity; No. 292,786 
       </span>
      </td>
      <td align="right">
       <img src="images/bcslogo2.gif" alt="BCS Logo" title="BCS Logo"/>
      </td>
     </tr>
    </table>
    
    <!-- END MAIN BODY TEXT -->


<!-- end of page content -->

<!-- special frame bit -->

     </td>

     </tr>
    </table>
   </td>
  </tr>
  
  <tr>
   <td>  

<!-- ******** 
     Bottom of page Blue Bar 
     ******** -->

     <TABLE class="topmenu" cellPadding="1" >
      <!-- BEGIN BOTTOM NAVIGATION BAR -->
      <TBODY>
       <TR>
        <TD align="left" width="20%">
         <span class="smallwhite">
          Generated: <xsl:value-of select="$iso_date"/>
         </span>
        </TD>
        <TD align="middle">
          <span class="smallwhite">
            &#169; BCS Oxfordshire Branch &amp; Adrian Walmsley 2006
          </span>
        </TD>
        <TD align="right" width="20%">
         <span class="smallwhite">

           <A href="contacts.htm" class="titlebar">contact us</A>
         </span>
        </TD>
       </TR>
      </TBODY>
      <!-- END BOTTOM NAVIGATION BAR -->
     </TABLE>
     
   </td>
  </tr>
</table>

  </BODY>
  </HTML>

 </xsl:result-document>
</xsl:template>

<!-- *************************************************** -->
<!-- *** Tag Defintion & Overloading                 *** -->
<!-- *************************************************** -->

<!-- *************************************************** -->
<!-- *** Include common definitions                  *** -->
<!-- *************************************************** -->

 <xsl:include  href="bcscommon.xsl"/>

<!-- *************************************************** -->
<!-- *** Overloading specific to printable pages     *** -->
<!-- *************************************************** --> 






<xsl:template match="st_row_more">
 <xsl:variable name="link" select="@link"/>
 <TR>
  <td class="st_1st_col" width="150">
    <xsl:value-of select='@type'/>
  </td>
  <td class="st_2nd_col">
     <a href="{$link}" style="text-decoration:'none';">
	 <xsl:apply-templates/>
	 </a>
  </td>
  <td class="st_3rd_col" WIDTH="100">
   <a href="{$link}"><img border="0" src="images/more.gif" alt="More Information" title="More Information"/></a>
  </td>
  
 </TR>
</xsl:template>




<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--    match <note-alert>                                       -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<xsl:template match="note-alert">
  
  

	       <table width="100%" border="0" cellspacing="0">
		<tr >
		  <td background="images/specialtop.jpg">
		    <center><span class="white"><b><xsl:value-of select='@title'/></b></span></center>
		  </td>
		</tr>
		<tr>
		  <td background="images/specialside.jpg">
		             <xsl:apply-templates/>
             		  </td>
		</tr>
		<tr height="11">
		  <td background="images/specialbase.jpg">&#160;
		  </td>
		</tr>
	       </table>  
	      
</xsl:template>





</xsl:stylesheet>

<!-- ~~~~~~~~~~~~~~~~~~~~~~~ END ~~~~~~~~~~~~~~~~~~~~~~~ -->



