<!--                                                                  -->
<!--  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="text" indent="no" encoding="utf-8" />
  
    <xsl:include href="/app/tools/common/production/templates/text_templates.xsl" />
	<xsl:include href="tracks_no_timings.xsl" />  
	<xsl:include href="license_overage.xsl" /> 
	<xsl:include href="tracks_no_licenses.xsl" />
	<xsl:include href="inactive_licenses.xsl" />
	<xsl:include href="albums_no_contracts.xsl" />
	<xsl:include href="products_no_prices.xsl" />
	<xsl:include href="missed_sales.xsl" />	
	<xsl:include href="payee_mailing.xsl" />
	<xsl:include href="publisher_mailing.xsl" />
	<xsl:include href="license_accrual.xsl" />
	<xsl:include href="artist_reserve_pipeline.xsl" />	
	<xsl:include href="uk_mech_unit_summary.xsl" />
    <xsl:include href="uk_mech_negative_units.xsl" />
    <xsl:include href="uk_mech_current_retentions.xsl" />
    <xsl:include href="uk_mech_retention_summary.xsl" />
    <xsl:include href="uk_mech_missed_sales.xsl" />

  <xsl:template match="Root">
    <xsl:choose>
      <xsl:when test="$cmd = 'tracks_no_timings' or $cmd = 'ca_tracks_no_timings'">
        <xsl:call-template name="tracksNoTimingsLayout" />
      </xsl:when>
      <xsl:when test="$cmd = 'license_overage' or $cmd = 'ca_license_overage'">
        <xsl:call-template name="licenseOverageLayout" />
      </xsl:when>
      <xsl:when test="$cmd = 'tracks_no_licenses' or $cmd = 'ca_tracks_no_licenses'">
        <xsl:call-template name="tracksNoLicensesLayout" />
      </xsl:when>
      <xsl:when test="$cmd = 'inactive_licenses' or $cmd = 'ca_inactive_licenses'">
        <xsl:call-template name="inactiveLicensesLayout" />
      </xsl:when>
      <xsl:when test="$cmd = 'albums_no_contracts'">
        <xsl:call-template name="albumsNoContractsLayout" />
      </xsl:when>
      <xsl:when test="$cmd = 'products_no_prices'">
        <xsl:call-template name="productsNoPricesLayout" />
      </xsl:when>
      <xsl:when test="$cmd = 'missed_sales'">
        <xsl:call-template name="missedSalesLayout" />
      </xsl:when>
      <xsl:when test="$cmd = 'payee_mailing'">
        <xsl:call-template name="payeeMailingLayout" />
      </xsl:when>
      <xsl:when test="$cmd = 'publisher_mailing' or $cmd = 'ca_publisher_mailing'">
        <xsl:call-template name="publisherMailingLayout" />
      </xsl:when>
      <xsl:when test="$cmd = 'license_accrual' or $cmd = 'ca_license_accrual'">
        <xsl:call-template name="licenseAccrualLayout" />
      </xsl:when>
      <xsl:when test="$cmd = 'artist_reserve_pipeline'">
        <xsl:call-template name="artistPipelineLayout" />
      </xsl:when>
      <xsl:when test="$cmd = 'uk_mech_unit_summary'">
        <xsl:call-template name="ukMechUnitSummaryLayout" />
      </xsl:when>
      <xsl:when test="$cmd = 'uk_mech_negative_units'">
        <xsl:call-template name="ukMechNegativeUnitsLayout" />
      </xsl:when>        
      <xsl:when test="$cmd = 'uk_mech_current_retentions'">
        <xsl:call-template name="ukMechCurrentRetentionsLayout" />
      </xsl:when>          
      <xsl:when test="$cmd = 'uk_mech_retention_summary' or $cmd = 'uk_mech_retention_run_summary'">
        <xsl:call-template name="ukMechRetentionSummaryLayout" />
      </xsl:when> 
      <xsl:when test="$cmd = 'uk_mech_missed_sales'">
        <xsl:call-template name="ukMechMissedSalesLayout" />
      </xsl:when>                 
    </xsl:choose>
  </xsl:template>

</xsl:stylesheet>

