<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">

	<xsl:variable name="accessDenied">
		<xsl:choose>
			<xsl:when test="/Root/Messages/Message/Code = 'access_denied'">1</xsl:when>
			<xsl:when test="$area = 'contract' and not(/Root/Access/rps/artist_contract/main and /Root/Access/rps/label_contract/main)">1</xsl:when>
			<xsl:when test="/Root/User/AccessLevel = 5  and not(/Root/User/UserAccess/LabelID)">1</xsl:when>
			<xsl:otherwise>0</xsl:otherwise>
		</xsl:choose>
	</xsl:variable>

	<xsl:variable name="accessLevel"><xsl:value-of select="/Root/User/AccessLevel" /><xsl:value-of select="/Root/CurrentUser/AccessLevel" /></xsl:variable>

    <xsl:variable name="action"><xsl:value-of select="/Root/App" /></xsl:variable>

    <xsl:variable name="app"><xsl:value-of select="/Root/App" /></xsl:variable>
    <xsl:variable name="area"><xsl:value-of select="/Root/Area" /></xsl:variable>
    <xsl:variable name="cmd"><xsl:value-of select="/Root/Cmd" /></xsl:variable>

    <xsl:variable name="view"><xsl:value-of select="/Root/Cmd" /></xsl:variable>
    <xsl:variable name="service"><xsl:value-of select="/Root/Params/service" /></xsl:variable>
    <xsl:variable name="format"><xsl:value-of select="/Root/Params/format" /></xsl:variable>

    <xsl:variable name="country_code"><xsl:value-of select="/Root/Params/country" /></xsl:variable>
    <xsl:variable name="country"><xsl:value-of select="/Root/Report/Country" /></xsl:variable>

    <xsl:variable name="now" select="'1'"/>

    <xsl:variable name="lcletters">abcdefghijklmnopqrstuvwxyz</xsl:variable>
    <xsl:variable name="ucletters">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
    <xsl:variable name="tipBreak">&lt;br&gt;</xsl:variable>

    <xsl:variable name="yuiAttentionIcon">&lt;svg xmlns='http://www.w3.org/2000/svg' class='Icon Icon-attention Icon-default-role Icon-default-size'&gt;&lt;use xmlns:xlink='http://www.w3.org/1999/xlink' xlink:href='/production/redesign/assets/icons/sprite.svg#attention'&gt;&lt;/use&gt;&lt;/svg&gt;</xsl:variable>

</xsl:stylesheet>

