﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" indent="yes" omit-xml-declaration ="yes"/>
    <xsl:template match ="/">
        <xsl:variable name ="HostName" select ="normalize-space(Output/HostName)"></xsl:variable>
        <div align="left" valign="top">
            <div id="divMarketPlace">
                <xsl:if test="count(Output/Communities/Community[OwnerBrandID != -99]) &gt; 0">
                    <div id="div_LifeSpace_MarketPlace" style="margin-left:5px;display:block;">
                        <xsl:for-each select ="Output/Communities/Community[OwnerBrandID != -99]">
                            <div>
                                <a class="link label" href="http://{$HostName}/{normalize-space(PromoteKey)}" target="_blank">
                                    <xsl:value-of select="CommunityName" />
                                </a>
                            </div>
                        </xsl:for-each>
                    </div>
                </xsl:if>
            </div>
        </div>
        <!--<div>&#xa0;</div>
        <div>
            <a class="labelBold" href="http://{$HostName}/ListCommunities.aspx">&lt;View All Communities&gt;</a>
        </div>-->
    </xsl:template>
</xsl:stylesheet>
