<?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;">
]>
<!--

-->
<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"
	expand-text="yes">

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

	<xsl:template name="template-headcode" expand-text="no">
		<style>
			ul.pagination > li:first-child > a:before{
				content: '&lt;';
			}
			ul.pagination > li:last-child > a:before{
				content: '&gt;';
			}
		</style>
	</xsl:template>

	<xsl:template name="page-content">
		<xsl:variable name="col-med" select="if (ou:pcf-param('aside') = 'display') then 'col-md-10 col-sm-push-2' else 'col-md-12'" />

		<section class="page-header background-color-secondary custom-text-color-white">
			<div class="container">
				<div class="row">
					<div class="col-md-12">

						<xsl:call-template name="breadcrumb" />

					</div>
				</div>
			</div>
		</section>
		<div class="container">
			<div class="row">

				<div class="{$col-med} interior-content match-height col-sm-push-2">

					<xsl:if test="ou:pcf-param('heading') != ''">

						<div class="heading heading-border heading-middle-border">

							<h1>{ou:pcf-param('heading')}</h1>

						</div>

					</xsl:if>

					<xsl:apply-templates select="ouc:div[@label = 'maincontent']" />

					<xsl:call-template name="news-events">
						<xsl:with-param name="rss-feed" select="if (ou:pcf-param('news-feed') = '') then $ou:feed else ou:pcf-param('news-feed')" />
						<xsl:with-param name="mode" select="'newslisting'" />
						<xsl:with-param name="count" select="ou:pcf-param('news-count')" />
					</xsl:call-template>

				</div>

				<xsl:if test="ou:pcf-param('aside') = 'display'">

					<div class="col-md-2 interior-navigation match-height col-sm-pull-10">
						<aside class="sidebar">

							<xsl:if test="doc-available($props-path)">

								<span class="heading-primary">{ou:pcf-param('breadcrumb', doc($props-path))}</span>

							</xsl:if>

							<xsl:if test="ou:pcf-param('nested-navigation') = 'display'">

								<xsl:call-template name="nested-navigation" />

							</xsl:if>

							<xsl:if test="ou:pcf-param('region-aside') = 'display'">

								<xsl:apply-templates select="ouc:div[@label = 'region-aside']" />

							</xsl:if>

						</aside>
					</div>

				</xsl:if>

			</div>
		</div>

	</xsl:template>

</xsl:stylesheet>