<?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 v3 - 4/7/2016
-
IMPLEMENTATION VARIABLES 
Define global implementation variables here, so that they may be accessed by all page types and in the info/debug tabs.
This also provides a convenient area for complicated logic to exist without clouding up the general xsl/html structure.
-
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="ou xsl xs fn ouc">

	<!--
		
	OU CAMPUS SYSTEM PARAMETERS - don't edit 
	
	-->
	<!-- Current Page Info -->
	<xsl:param name="ou:action"/>		<!-- Page 'state' in OU Campus 
							(prv = Preview, pub = Publish, edt = Edit, cmp = Compare) -->
	<xsl:param name="ou:uuid"/>		<!-- Unique Page ID -->
	<xsl:param name="ou:path"/>		<!-- Root-relative path to page output -->
	<xsl:param name="ou:dirname"/>		<!-- Root-relative path to current folder (USE "dirname" BELOW INSTEAD) -->
	<xsl:param name="ou:filename"/>		<!-- Filename of output -->
	<xsl:param name="ou:created" as="xs:dateTime"/>		<!-- Page Creation date/time -->
	<xsl:param name="ou:modified" as="xs:dateTime"/> 	<!-- Last Page Modification date/time -->
	<xsl:param name="ou:feed"/>		<!-- Path (root-relative) to RSS Feed that's assigned to current page -->
	
	<!-- Staging Server Info -->
	<xsl:param name="ou:servername"/>	<!-- Staging Server's Domain Name -->
	<xsl:param name="ou:root"/>		<!-- Path from root of staging server -->
	<xsl:param name="ou:site"/>		<!-- Site Name (same as foldername on staging server) -->
	<xsl:param name="ou:stagingpath"/>		<!-- Staging path of the file -->
	
	<!-- Production Server Info -->
	<xsl:param name="ou:target"/>		<!-- Name of Target Production Server -->
	<xsl:param name="ou:httproot"/>		<!-- Address of Target Production Server (from site settings) -->
	<xsl:param name="ou:ftproot"/>		<!-- Folder path to site root on Production Server (from site settings) -->
	<xsl:param name="ou:ftphome"/>		<!-- Initial subdirectory for site root on Production Server (from site settings) -->
	
	<!-- User Info -->
	<xsl:param name="ou:username"/>		<!-- Active user/publisher -->
	<xsl:param name="ou:lastname"/>		<!-- Active user/publisher -->
	<xsl:param name="ou:firstname"/> 	<!-- Active user/publisher -->
	<xsl:param name="ou:email"/>		<!-- Active user/publisher -->

	
	<!-- 
	
	DIRECTORY VARIABLES (add "ou:" before variable name - in XSL only) 
	
		Example: 
		<xsl:param name="ou:theme-color" /> 
		... Where "theme-color" is the actual Directory Variable name
	-->
	
	<!-- for the following, all are set with start and end slash: /folder/ -->
	<xsl:param name="ou:breadcrumb-start"/> <!-- top level breadcrumb -->
	<xsl:param name="ou:athletics"/>
	<xsl:param name="ou:omak-index"/>
	<xsl:param name="ou:wenatchee-index"/>
	<xsl:param name="ou:blog-props-path"/>
	<xsl:param name="ou:nav-start"/>
	<xsl:param name="ou:nav-path"/>
	<!-- 
	
	GLOBAL VARIABLES - Implementation Specific 
	
	-->
	<xsl:variable name="ou:search-pr" select="'wenatchee'"/>
	
	<xsl:variable name="body-class" />	<!-- Stores a CSS class to be assigned to a wysiwyg region -->
	
	<!-- server information -->
	<xsl:variable name="server-type" select="'php'"/> 
	<xsl:variable name="index-file" select="'index'"/> 
	<xsl:variable name="extension" select="'html'"/> 	

	<!-- for various concatenation purposes -->
	<xsl:variable name="dirname" select="if(string-length($ou:dirname) = 1) then $ou:dirname else concat($ou:dirname,'/')" />
	<xsl:variable name="domain" select="substring($ou:httproot,1,string-length($ou:httproot)-1)" /> 				
	<xsl:variable name="path" select="substring($ou:root,1,string-length($ou:httproot)-1)"/>
	
	<!-- navigation info -->
	<xsl:variable name="nav-file" select="'_nav.inc'" />
	<!--<xsl:variable name="nav-start" select="if(string-length($ou:nav-start) != 0) then concat($ou:nav-start,'/',$nav-file) else concat('/', $nav-file)" />-->
	<xsl:variable name="nav-start">
		<xsl:choose>
			<xsl:when test="(string-length($ou:nav-start) = 1)">
				<xsl:value-of select="concat($ou:nav-start,$nav-file)"/>
			</xsl:when>
			<xsl:when test="(string-length($ou:nav-start) &gt; 1)">
				<xsl:value-of select="concat($ou:nav-start,'/',$nav-file)"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="concat('/',$nav-file)"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:variable>
	
	<xsl:variable name="nav-path">
		<xsl:choose>
			<xsl:when test="(string-length($ou:nav-path) = 1)">
				<xsl:value-of select="concat($ou:nav-path,$nav-file)"/>
			</xsl:when>
			<xsl:when test="(string-length($ou:nav-path) &gt; 1)">
				<xsl:value-of select="$ou:nav-path"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="concat('/',$nav-file)"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:variable>
		
	<!-- section property files -->
	<xsl:variable name="props-file" select="'_props.pcf'"/> 	
	<xsl:variable name="props-path" select="concat($ou:root, $ou:site, $dirname, $props-file)"/>	
	<xsl:variable name="sidebar-title" select="document($props-path)/document/ouc:properties[@label='config']/parameter[@name='sidebar-title']"/>	
	
	
	<!-- page information -->
	<xsl:variable name="page-type" select="ou:pcf-param('page-type')"/>
	<xsl:variable name="page-title" select="/document/ouc:properties/title" />
	<xsl:variable name="breadcrumb" select="ou:pcf-param('breadcrumb')" />
	<xsl:variable name="heading" select="ou:pcf-param('heading')" />
	<xsl:variable name="feature_select" select="ou:pcf-param('feature_select')" />
	<xsl:variable name="feature" select="ou:pcf-param('feature')" />
	<xsl:variable name="title_placement" select="ou:pcf-param('title_placement')" />
	<xsl:variable name="sidebar" select="ou:pcf-param('sidebar')" />
	<xsl:variable name="fullwidth_select" select="ou:pcf-param('fullwidth_select')" />

	<!-- Miscellaneous -->
	<xsl:variable name="nbsp"><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text></xsl:variable>
	<xsl:variable name="amp"><xsl:text disable-output-escaping="yes">&amp;</xsl:text></xsl:variable>					
	
</xsl:stylesheet>
