﻿<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:rs='urn:schemas-microsoft-com:rowset'
 	xmlns:z='#RowsetSchema'
	xmlns:date="http://www.ora.com/XSLTCookbook/NS/dates"
    xml:space="default" 
    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" 
	version="1.0">

	<xsl:strip-space elements="true" />
	<xsl:output omit-xml-declaration="yes" />
	<xsl:param name="path"></xsl:param>
	<xsl:param name="url"></xsl:param>

	<xsl:template match='NewDataSet'>
		<link rel="stylesheet" type="text/css" href="/xslt/banner.css"/>
		<div id="banner-container">
		
			<div id="banner">
				<div class="banner-item">
					<xsl:choose>
						<xsl:when test="count(*) &lt; 1">
							<a href="/_forms/login.aspx?ReturnUrl=/webshop/producten/overzicht.aspx">
								<h2>VVT lid</h2>
								<p>Leden van VVT kunnen producten bestellen tegen het speciale ledentarief. Hiervoor moet je wel eerst inloggen. Daarna leiden we je automatisch verder naar de webshop.</p>
								<span>inloggen&#160;</span>
							</a>
						</xsl:when>
						<xsl:otherwise>
							<a href="/webshop/producten/overzicht.aspx">
								<h2>VVT lid</h2>
								<p>Leden van VVT kunnen producten bestellen tegen het speciale ledentarief. Aangezien je al bent ingelogd, kun je direct verder naar de webshop.</p>
								<span>overzicht producten&#160;</span>
							</a>
						</xsl:otherwise>
					</xsl:choose>
				</div>
		
					<div class="banner-item">
						<xsl:attribute name="class">banner-item<xsl:if test="count(*) &gt;0"> disabled</xsl:if></xsl:attribute>
						<a>
							<xsl:choose>
								<xsl:when test="count(*) &lt; 1">
									<xsl:attribute name="href">/webshop/producten/overzicht.aspx</xsl:attribute>
								</xsl:when>
								<xsl:otherwise>
									<xsl:attribute name="href">#</xsl:attribute>
								</xsl:otherwise>
							</xsl:choose>
							<h2>Gast</h2>
							<p>Ook als je geen lid bent van VVT kun je producten bestellen in onze webshop. Hiervoor gelden dan de reguliere tarieven.</p>
							<span>overzicht producten&#160;</span>
						</a>
					</div>
			</div>
		</div>
  	</xsl:template>

</xsl:stylesheet>

