<?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 Skeleton - 08/24/2018

Interior XSL
Defines the basic interior page
-->

<xsl:stylesheet version="3.0" 
				xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
				xmlns:xs="http://www.w3.org/2001/XMLSchema"
				xmlns:fn="http://omniupdate.com/XSL/Functions"
				xmlns:ouc="http://omniupdate.com/XSL/Variables"
				xmlns:ou="http://omniupdate.com/XSL/Variables"
				exclude-result-prefixes="ou xsl xs fn ouc">

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

	<xsl:output method="xml" version="1.0" indent="yes" encoding="UTF-8" include-content-type="no" omit-xml-declaration="yes"/>

	<xsl:template match="/document">
		<xsl:choose>
			<xsl:when test="$ou:action = 'pub'">
				<news>
					<option site="www">
						<heading><xsl:value-of select="ouc:properties[@label='config']/parameter[@name='heading-www']"/></heading>
						<link><xsl:value-of select="ouc:properties[@label='config']/parameter[@name='news-list-page-www']"/></link>
						<link-text><xsl:value-of select="ouc:properties[@label='config']/parameter[@name='news-list-page-link-text-www']"/></link-text>
					</option>
					<option site="bulldog">
						<heading><xsl:value-of select="ouc:properties[@label='config']/parameter[@name='heading-bulldog']"/></heading>
<!-- 						<link><xsl:value-of select="ouc:properties[@label='config']/parameter[@name='news-list-page-bulldog']"/></link>
						<link-text><xsl:value-of select="ouc:properties[@label='config']/parameter[@name='news-list-page-link-text-bulldog']"/></link-text> -->
					</option>
					<items>
					<xsl:for-each select="ouc:properties[@label='config']/parameter[starts-with(@name,'news-item-')]">
						<item><xsl:value-of select="."/></item>
					</xsl:for-each>
					</items>
				</news>
			</xsl:when>
			<xsl:otherwise>
				<html lang="en">

					<head>
						<link href="//netdna.bootstrapcdn.com/bootswatch/3.1.0/cerulean/bootstrap.min.css" rel="stylesheet"/>
						<style>
							body{
							font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
							}
							.ox-regioneditbutton {
							display: none;
							}
						</style>
					</head>

					<body id="properties">

						<div class="container">
							<h1>Home Page News Section</h1>
							To edit the three news items that will show up on the homepage, please check out this page and go to the Page Properties screen.  Make sure to publish the "Homepage - News Section" asset after publishing out this file.

							<br/>

							<br/>

							<h2>Properties for this template:</h2>


							<xsl:for-each select="ouc:properties[@label='config']/parameter/@prompt">
								<p><strong><xsl:value-of select="../@prompt"/>: </strong>  <xsl:value-of select=".."/></p>
							</xsl:for-each>



						</div>

						<div style="display:none;">
							<ouc:div label="fake" group="fake" button="hide"/>
						</div>

					</body>
				</html>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>

</xsl:stylesheet>