<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp   "&#160;">
<!ENTITY copy   "&#169;">
]> 
<!-- 
Implementations Skeleton - 05/12/2016

INTERIOR PAGE 
A simple page type.

Contributors: Your Name Here
Last Updated: Enter Date Here
-->
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ou="http://omniupdate.com/XSL/Variables"
    xmlns:fn="http://omniupdate.com/XSL/Functions" xmlns:ouc="http://omniupdate.com/XSL/Variables" xmlns:svg="http://www.w3.org/2000/svg" exclude-result-prefixes="ou xsl xs fn ouc svg">

    <xsl:import href="common.xsl"/>

    <xsl:template name="template-footcode"/>
    <xsl:template name="common-footer"/>
    <xsl:template name="page-content"/>
	<xsl:template name="common-headcode">
		<html lang="en"/>
		<head>
			<meta charset="UTF-8"/>
			<link rel="stylesheet" type="text/css" href="http://cpe.domain-account.com/calendar/themes/core.css" />
			<link rel="stylesheet" type="text/css" href="http://cpe.domain-account.com/calendar/themes/cpedefault/css/style.css" />
			<link rel="shortcut icon" href="http://cpe.domain-account.com/calendar/favicon.ico"/>


			<meta charset="utf-8"/>
			<meta name="creator" content="Commonwealth of Kentucky"/>
			<meta name="robots" content="index, follow"/>
			<meta name="revisit-after" content="3 days"/>
			<meta name="Language" content="EN-US"/>    
			<meta http-equiv="X-UA-Compatible" content="IE=edge" />
			<link href='https://fonts.googleapis.com/css?family=Roboto:400,300italic,400italic,500,500italic,700,700italic,300' rel='stylesheet' type='text/css'/>
			<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/>
			<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
			<link rel="stylesheet" href="/_resources/css/style.css"/>
			<link type="text/css" rel="stylesheet" href="https://secure.kentucky.gov/enterprise/styles/external-enterprise-bar-footer.css"/>
			<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>

			<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
			<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->

			<script>
				(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
				(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
				m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
				})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

				ga('create', 'UA-77210830-1', 'auto');
				ga('send', 'pageview');

			</script>
			<link rel="stylesheet" type="text/css" href="/calendar/themes/cpe/css/style.css" />
			<link rel="stylesheet" href="/_resources/css/oustyles.css" />

			<script src="http://cpe.domain-account.com/calendar/inc/javascript/validation.js"></script>
		</head>
	</xsl:template>
    <xsl:output method="html" version="4.0" indent="yes" encoding="UTF-8" include-content-type="no" omit-xml-declaration="yes"/>

    <xsl:template match="/document[not($ou:action = 'pub')]">
        <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;</xsl:text>
        <html>
            <head>
                <title>Global Calendar Section PCF to Include</title>
                <xsl:if test="$ou:action != 'edt'">
                    <xsl:call-template name="common-headcode"/>
                </xsl:if>
            </head>
			<body>
				<header>
					<xsl:call-template name="content"/>
				</header>
			</body>
        </html>
    </xsl:template>
    
    <xsl:template match="/document[($ou:action = 'pub')]">
        <xsl:call-template name="content"/>
    </xsl:template>

    <!-- Calendar template -->
    <xsl:template name="content">
		<div id="ou-calendarsection">
      		<xsl:apply-templates select="ouc:div[@label='maincontent']" />
		</div>
    </xsl:template>


</xsl:stylesheet>
