<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--  $Id$  -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:dyn="http://exslt.org/dynamic" extension-element-prefixes="dyn">
    <xsl:output method="html" indent="no" doctype-system="" encoding="utf-8" />

    <xsl:include href="/app/tools/rps/templates/help/help_layout.xsl" />

    <xsl:template name="helpHeader">
        Help - Stat Rates
    </xsl:template>

    <xsl:template name="helpPage">
        <xsl:if test="Params/country = 'United States'">
            <xsl:choose>
                <xsl:when test="Params/type = 'ringtone'">
                    <xsl:call-template name="usRingStatRates" />
                </xsl:when>
                <xsl:otherwise>
                    <xsl:call-template name="usStatRates" />
                </xsl:otherwise>
            </xsl:choose>
        </xsl:if>
        <xsl:if test="Params/country = 'Canadian'">
            <xsl:call-template name="caStatRates" />
        </xsl:if>
    </xsl:template>

    <xsl:template name="usStatRates">
        <p>The US statutory mechanical royalty rate table is provided as a reference and includes all of the statutory rates assigned over time.</p>
        <img src="/production/redesign/images/help/rps/reference/us_statrates.png" class="HelpImage" />
        <xsl:call-template name="longExplanation" />
    </xsl:template>

    <xsl:template name="usRingStatRates">
        <p>The US ringtone mechanical royalty rate table is provided as a reference and includes the current base rate for ringtone mechanicals.</p>
        <img src="/production/redesign/images/help/rps/reference/us_ringstatrates.png" class="HelpImage" />
        <p>As no historical statutory rates current exist, all licenses are calculated using the base ringtone rate.</p>
    </xsl:template>

    <xsl:template name="caStatRates">
        <p>The Canadian statutory mechanical royalty rate table is provided as a reference and includes all of the statutory rates assigned over time.</p>
        <img src="/production/redesign/images/help/rps/reference/ca_statrates.png" class="HelpImage" />
        <xsl:call-template name="longExplanation" />
    </xsl:template>

    <xsl:template name="longExplanation">
        <p>
            The historical statutory rate table is used by the application to apply the proper rate for a license.
            <ul>
                <li>A license that is configured for a "Lock Date" will use the statutory rate from the rate period defined by the date associated with the "Lock Date".</li>
                <li>A license that is configured for "Sales Date" will use the statutory rate from the rate period associated with the date the sales took place.</li>
                <li>Licenses that are configured for "Minimum Stat" will use the associated "Base Rate" noted in the table.</li>
                <li>Licenses that are configured for the "Stat Rate" will use the song timing and "Minute Rate" noted in the table.
                    <ul>
                        <li>Song timing under 5 minutes use the "Base Rate."</li>
                        <li>Song timing over 5 minutes use the "Minute Rate."</li>
                    </ul>
                </li>
            </ul>
        </p>
    </xsl:template>

</xsl:stylesheet>
