<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY amp   "&#38;">
<!ENTITY copy   "&#169;">
<!ENTITY gt   "&#62;">
<!ENTITY hellip "&#8230;">
<!ENTITY laquo  "&#171;">
<!ENTITY lsaquo   "&#8249;">
<!ENTITY lsquo   "&#8216;">
<!ENTITY lt   "&#60;">
<!ENTITY nbsp   "&#160;">
<!ENTITY quot   "&#34;">
<!ENTITY raquo  "&#187;">
<!ENTITY rsaquo   "&#8250;">
<!ENTITY rsquo   "&#8217;">
]>

<!--
Implementations Skeletor - 5/12/2016

COMMMON STYLESHEET 
Imported by all page type-specific stylesheets, and imports utility stylesheets.
Defines html, xsl templates and functions used globally throughout the implementation
Defines outer html structure and common include content.

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"
    exclude-result-prefixes="xsl xs ou fn ouc">

	<xsl:import href="_shared/template-matches.xsl"/>
	<xsl:import href="_shared/ouvariables.xsl"/>
	<xsl:import href="_shared/functions.xsl"/>
	<xsl:import href="_shared/breadcrumb.xsl"/>
	<xsl:import href="_shared/ou-forms.xsl"/>
	<xsl:import href="_shared/ougalleries.xsl"/>
	<xsl:import href="_dmc/_core/functions.xsl"/> <!-- enable dmc functionality -->

	<!-- Default: for HTML5 use below output declaration -->
	<xsl:output method="html" version="5.0" indent="yes" encoding="UTF-8" include-content-type="no"/>

	<!-- If using xml or xhtml output, add in the below attribute to your xsl:output statement -->
	<!-- omit-xml-declaration="yes" -->

	<!-- If your output is not HTML5 -->
	<!-- 
	<xsl:output method="html" version="4.01"     
            doctype-public="-//W3C//DTD HTML 4.01//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" 
            indent="yes" encoding="UTF-8" include-content-type="no" /> 
     -->

	<xsl:template match="/document"> 
		
		<!-- begin html -->
		<html lang="en">
			<head>
				<xsl:call-template name="common-headcode"/> <!-- common headcode -->
				<xsl:call-template name="template-headcode"/> <!-- each page type may have a version of this template -->
				<xsl:apply-templates select="headcode/node()"/>
				<title><xsl:if test="$page-title != ''"><xsl:value-of select="concat($page-title, ' - ' )" /></xsl:if>Ky. Council on Postsecondary Education</title>
				
				<!-- copy meta tags from pcf, but only those with content -->				
				<xsl:apply-templates select="/document/ouc:properties[@label='metadata']/meta[@name='Description'][string-length(@content)>0]"/>
				<meta name="Keywords" content="{if(/document/ouc:properties[@label='metadata']/meta[@name='Keywords'][string-length(@content)>0]) then  concat(/document/ouc:properties[@label='metadata']/meta[@name='Keywords']/@content, ', ') else ''}kentucky, CPE, higher education, university, college, license, licensure, academic, program, data, research, students, policy, graduate, post-secondary, community and technical college" />
			</head>
			<body class="homepage">				
				<xsl:apply-templates select="bodycode/node()"/> <!-- pcf -->
				<xsl:call-template name="common-header"/>
				<xsl:call-template name="page-content"/> <!-- each page type has a unique version of this template -->
				<xsl:call-template name="common-footer"/>
				<xsl:call-template name="template-footcode"/>
				<xsl:apply-templates select="footcode/node()"/> <!-- pcf -->	
			</body>	
		</html>	
		<!-- end html -->
	</xsl:template>		
			
	<xsl:template name="common-headcode">
		<xsl:copy-of select="ou:include-file('/_resources/includes/headcode-2020.inc')"/> 
	</xsl:template>
	
	<xsl:template name="common-header">
		
		<xsl:call-template name="unparsed-include-file">
			<xsl:with-param name="path">/_resources/includes/header-2020-home.inc</xsl:with-param>
		</xsl:call-template>
		
	</xsl:template>
	
	<xsl:template name="common-footer">
		
		<footer>
			<xsl:call-template name="unparsed-include-file">
				<xsl:with-param name="path">/_resources/includes/footer-2020.inc</xsl:with-param>
			</xsl:call-template>
		</footer>
		
		<xsl:copy-of select="ou:include-file('/_resources/includes/footcode-2020.inc')"/>
		<xsl:if test="descendant::gallery"> 
			<xsl:copy-of select="ou:gallery-headcode($gallery-type)"/>
		</xsl:if>
		<xsl:call-template name="form-footcode"/>
		<xsl:if test="$ou:action = 'pub'">
			<xsl:copy-of select="ou:include-file('/_resources/includes/analytics.inc')"/>
		</xsl:if>
		<div id="hidden" style='display:none;'><xsl:comment> com.omniupdate.ob </xsl:comment><xsl:comment> /com.omniupdate.ob </xsl:comment></div>
	</xsl:template>
	
	<!--<xsl:template name="secondary-nav">
		<div id="secondary-nav">
			<h2 class="hidden-header">Secondary Navigation</h2>
			<xsl:copy-of select="ou:include-file('/_resources/includes/secondary-nav.inc')"/>
		</div>
	</xsl:template>
	
	<xsl:template name="secondary-nav-mobile">
		<div id="secondary-nav-mobile">
			<xsl:copy-of select="ou:include-file('/_resources/includes/secondary-nav-mobile.inc')"/>
		</div>
	</xsl:template>-->

	<!-- in case not defined in page type xsl -->
	<xsl:template name="page-content"><p>No template defined.</p></xsl:template><!-- leave for debugging purposes -->			
	<xsl:template name="template-headcode"/>
	<xsl:template name="template-footcode"/>
	
</xsl:stylesheet>
