﻿<?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="no" omit-xml-declaration ="yes"/>
    <xsl:template match="/">
        <div id="divRelatedUsers">
            <xsl:for-each select="RelatesUsers/RelatedUser">
                <div id="div_User_{userID}">
                    <xsl:choose>
                        <xsl:when test="RelationshipStatusID = 1">
                            <span class="link"
                                  onClick="MenuBar_GetNotificationByUser('{userID}','divGetSocialOperations_Container','Notifications');">
                                <xsl:value-of select="displayName"/>
                            </span>
                        </xsl:when>
                        <xsl:otherwise>
                            <span class="label">
                                <xsl:value-of select="displayName"/>
                            </span>
                        </xsl:otherwise>
                    </xsl:choose>
                </div>
            </xsl:for-each>
        </div>
    </xsl:template>
</xsl:stylesheet>
