﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
	<xsl:output method="xml" indent="yes"/>

	<xsl:template match="/">
		<xsl:variable name="HostName" select="normalize-space(AjaxRequest/HostName)"></xsl:variable>
		<xsl:variable name="TemplateURL" select="normalize-space(AjaxRequest/TemplateURL)"></xsl:variable>

		<div class="TournamentClubBackground">
			<div align="left" style="background-color:#47B5E7;line-height:25px;" class="paddingLeft10 TournamentShareHeader marginBottom10">
				Tournament Hosts
			</div>

			<table class="tableMaster paddingBottom10" cellpadding="5" cellspacing="3">
				<xsl:for-each select="AjaxRequest/Hosts/Host">
					<tr>
						<td class="textCenter verticallyMiddle" width="110px">
							<a href="http://{$HostName}/{BrandKey}" target="_blank">
								<img src="{BrandLogoSmallURL}" style="display:none;" onload="setWidthAndHeightImage(this,'100');"></img>
							</a>
						</td>
						<td>
							<a href="http://{$HostName}/{BrandKey}" target="_blank">
								<span class="brandTitle">
									<xsl:value-of select="BrandKey"/>
								</span>
							</a>
							<div class="brandDescription">
								<xsl:value-of select="BrandDescription"/>
							</div>
						</td>
					</tr>
				</xsl:for-each>
			</table>
		</div>
	</xsl:template>
</xsl:stylesheet>
