﻿<xsl:stylesheet xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" version="1.0" exclude-result-prefixes="xsl ddwrt msxsl" xmlns:ddwrt="https://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:xsl="https://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:ddwrt2="urn:frontpage:internal">
	<xsl:param name="dvt_adhocmode"></xsl:param>
	<xsl:param name="dvt_adhocfiltermode">xsl</xsl:param>
	<xsl:param name="dvt_fieldsort"></xsl:param>
	<xsl:param name="dvt_sortfield"></xsl:param>
	<xsl:param name="dvt_groupfield"></xsl:param>
	<xsl:param name="dvt_groupdisplay"></xsl:param>
	<xsl:param name="dvt_sortdir">ascending</xsl:param>
	<xsl:param name="dvt_groupdir">ascending</xsl:param>
	<xsl:param name="dvt_grouptype"></xsl:param>
	<xsl:param name="dvt_sorttype">text</xsl:param>
	<xsl:param name="dvt_groupsorttype">text</xsl:param>
	<xsl:param name="dvt_filterfield"></xsl:param>
	<xsl:param name="dvt_filterval"></xsl:param>
	<xsl:param name="dvt_filtertype"></xsl:param>
	<xsl:param name="dvt_firstrow">1</xsl:param>
	<xsl:param name="dvt_nextpagedata"></xsl:param>
	<xsl:param name="dvt_apos">'</xsl:param>
	<xsl:param name="filterParam"></xsl:param>
	<xsl:template match="/">
		<xsl:call-template name="dvt_1"/>
	</xsl:template>
	<xsl:template name="dvt_1.empty">
		<xsl:variable name="ViewEmptyText">There are no items to show in this view.</xsl:variable>
		<table border="0" width="100%">
			<tr>
				<td class="ms-vb">
					<xsl:value-of select="$ViewEmptyText"/>
				</td>
			</tr>
		</table>
	</xsl:template>
<xsl:template name="dvt_1">
<xsl:variable name="StyleName">RepForm1</xsl:variable>
<xsl:variable name="Rows" select="/dataroot/Businesses[normalize-space(Type) = 'Hotel']" />

<xsl:variable name="RowCount" select="count($Rows)" />
<xsl:variable name="IsEmpty" select="$RowCount = 0" />
<xsl:choose>
	<xsl:when test="$IsEmpty">
	<xsl:call-template name="dvt_1.empty" />
	</xsl:when>
	<xsl:otherwise>
				<table border="0" width="100%">
					<xsl:call-template name="dvt_1.body">
						<xsl:with-param name="Rows" select="$Rows" />
						<xsl:with-param name="FirstRow" select="1" />
						<xsl:with-param name="LastRow" select="$RowCount" />
					</xsl:call-template>
	</table>
			</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="dvt_1.body">
<xsl:param name="Rows" />
<xsl:param name="FirstRow" />
<xsl:param name="LastRow" />
<xsl:for-each select="$Rows">
<xsl:variable name="KeepItemsTogether" select="false()" />
<xsl:variable name="HideGroupDetail" select="false()" />
<xsl:variable name="GroupStyle" select="'auto'" />
<xsl:if test="true()">
<xsl:if ddwrt:cf_ignore="1" test="not($HideGroupDetail)">
					<tr style="display:{$GroupStyle}">
						<td class="ms-vb" colspan="2" style="border: 1px solid #E1E1E1; height: 19px; font-weight: 700; color: #000000; font-size: medium;" width="100%">
							<b style="color: #00008B">
								
							</b><xsl:value-of select="BusinessName" /></td>
					</tr>
					<tr style="display:{$GroupStyle}">
						<td class="ms-vb" colspan="2" width="100%"><a href="{WebLink}" target="_blank" title="Please click here to goto website"><img border="0" src="{Image}" style="float: right" /></a><span style="color: #000000">Address:
						 
						 <span style="font-size: small">
						 <xsl:value-of select="Address" />
						 <br />
						 Contact: <xsl:value-of select="ContactName" /><br />
						 Telephone: <xsl:value-of select="TelephoneNumber" /><br />Fax:<xsl:value-of select="Fax_x0020_Number" /><xsl:text ddwrt:whitespace-preserve="yes" xml:space="preserve" xmlns:ddwrt="https://schemas.microsoft.com/WebParts/v2/DataView/runtime">  </xsl:text><xsl:value-of select="FaxNumber" /><br />Mobile:<xsl:value-of select="Mobile_x0020_Number" />
						 <xsl:text ddwrt:whitespace-preserve="yes" xml:space="preserve" xmlns:ddwrt="https://schemas.microsoft.com/WebParts/v2/DataView/runtime">   </xsl:text>
						 <br /><br />
						 Email:  <a href="mailto:{EmailAddress}?subject=Lisburn.com"><xsl:value-of select="EmailAddress" /></a><br /><br />
						 
						 
						 
						 
						 
						 
						 Web Link: <a href="{WebLink}" target="_blank"><xsl:value-of select="BusinessName" /></a><br /></span></span><span style="font-size: small"><br />Memo<br /><xsl:value-of select="Description" /><br /><br /></span><a href="{Maplink}" target="_blank">Map Link</a><br /><br /><a href="#top" title="Top of page"><img alt="" height="9" src="images/top5.gif" style="border-width: 0px" width="31" /></a><br /></td>
					</tr>
				</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>