<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet>
<!-- 
Implementations Skeletor v3 - 5/10/2014

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">

	<!--
		
	System Params - don't edit 
	
	-->
	
	<xsl:param name="ou:action"/>
	<xsl:param name="ou:root"/>
	<xsl:param name="ou:site"/>
	<xsl:param name="ou:path"/>
	<xsl:param name="ou:dirname"/>
	<xsl:param name="ou:filename"/>
	<xsl:param name="ou:username"/>
	<xsl:param name="ou:lastname"/>
	<xsl:param name="ou:firstname"/>
	<xsl:param name="ou:email"/>
	<xsl:param name="ou:httproot"/>
	<xsl:param name="ou:ftproot"/>
	<xsl:param name="ou:ftphome"/>
	<xsl:param name="ou:ftpdir"/>
	<xsl:param name="ou:created" as="xs:dateTime"/>
	<xsl:param name="ou:modified" as="xs:dateTime"/>
	<xsl:param name="ou:feed"/>
	
	<!-- 
	
	Implementation Specific Variables 
	
	-->
	<xsl:param name="bodyClass"/>
	<xsl:param name="ou:navdir"/>
	
	<!-- server information -->
	<xsl:param name="serverType" select="'asp'"/> 
	<xsl:param name="index-file" select="'index'"/> 
	<xsl:param name="extension" select="'html'"/> 	

	<!-- for various concatenation purposes -->
	<xsl:param name="dirname" select="if(string-length($ou:dirname) = 1) then $ou:dirname else concat($ou:dirname,'/')" />
	<xsl:param name="domain" select="substring($ou:httproot,1,string-length($ou:httproot)-1)" /> 				
	<xsl:param name="path" select="substring($ou:root,1,string-length($ou:httproot)-1)"/>
	
	<!-- section property files -->
	<xsl:param name="props-file" select="'_props.pcf'"/> 	
	<xsl:param name="props-path" select="concat($ou:root, $ou:site, $dirname, $props-file)"/>		
	
	<!-- for the following, all are set with start and end slash: /folder/ -->
	<xsl:param name="ou:breadcrumbStart"/> <!-- top level breadcrumb -->
		
	<!-- page information -->
	<xsl:variable name="pageType" select="/document/parameter[@name='pagetype']"/>
	<xsl:variable name="pageTitle" select="/document/ouc:properties[@label='metadata']/title" />
	
	<!-- nav information -->
	<xsl:param name="nav-file" select="'_nav.html'"/> 
	<xsl:param name="navdir" select="if(string-length($ou:navdir) = 1) then $ou:navdir else $dirname" />
	<xsl:variable name="leftnav_editable" select="/document/ouc:properties[@label='config']/parameter[@name='leftnav_editable']/option[@selected='true']/@value"/>	
	<xsl:variable name="displayContactInfo" select="/document/ouc:properties[@label='config']/parameter[@name='displaycontactinfo']/option[@selected='true']/@value"/>	
	<xsl:variable name="pageTitleImage" select="/document/ouc:properties[@label='config']/parameter[@name='pagetitleimage']"/>
	<xsl:variable name="pageImageAlt" select="/document/ouc:properties[@label='config']/parameter[@name='pageimagealt']"/>
	<xsl:variable name="newsReleaseLogo" select="/document/ouc:properties[@label='config']/parameter[@name='newsreleaselogo']"/>
	<xsl:variable name="_newsReleaseDate" select="/document/ouc:properties[@label='config']/parameter[@name='newsreleasedate']"/>
	
	<xsl:variable name="leftColTitle" select="/document/ouc:properties[@label='config']/parameter[@name='leftcoltitle']"/>	
	<xsl:variable name="rightColTitle" select="/document/ouc:properties[@label='config']/parameter[@name='rightcoltitle']"/>
	
</xsl:stylesheet>
