<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--  $Id$  -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

    <xsl:template name="albumsNoContractsLayout">
        <div class="AuditReport" id="auditReport">
            <h2 class="AuditReport-header">
                Albums And Tracks Without Contracts
                <xsl:call-template name="helpIcon">
                    <xsl:with-param name="tip">
                        Album only listings indicate no contracts are attached<xsl:value-of select="$tipBreak" />at the album or track level
                    </xsl:with-param>
                </xsl:call-template>
            </h2>
            <xsl:choose>
                <xsl:when test="Report/Album">
                    <xsl:call-template name="reportHeading" />
                    <xsl:call-template name="albumsNoContractsTable" />
                    <xsl:call-template name="reportFooter" />
                </xsl:when>
                <xsl:otherwise>
                    <section class="Table-empty-results">
                        <p>No albums without contracts were found.</p>
                    </section>
                </xsl:otherwise>
            </xsl:choose>
            <xsl:call-template name="backToStatementsHome" />
        </div>


    </xsl:template>

    <xsl:template name="albumsNoContractsTable">
        <table class="Table Table-with-highlight">
            <thead>
                <tr class="Table-row Table-row-header">
                    <th class="Table-col">Label</th>
                    <th class="Table-col">Catalog&#160;#</th>
                    <th class="Table-col">Album&#160;Title</th>
                    <th class="Table-col">Album Artist</th>
                    <th class="Table-col">Track&#160;No</th>
                    <th class="Table-col">Track&#160;Title</th>
                    <th class="Table-col">Track Artist</th>
                </tr>
            </thead>
            <tbody>
                <xsl:for-each select="Report/Album">
                    <tr class="Table-row Table-row-data">
                        <td class="Table-col"><xsl:value-of select="LabelName" /></td>
                        <td class="Table-col"><xsl:value-of select="CatalogNumber" /></td>
                        <td class="Table-col">
                            <a href="/rps/catalog?c=show&amp;AlbumID={AlbumID}"><xsl:value-of select="AlbumTitle" /></a>
                        </td>
                        <td class="Table-col"><xsl:value-of select="AlbumArtistName" /></td>
                        <td class="Table-col"><xsl:value-of select="TrackOrder" /></td>
                        <td class="Table-col"><xsl:value-of select="TrackTitle" /></td>
                        <td class="Table-col"><xsl:value-of select="TrackArtistName" /></td>
                    </tr>
                </xsl:for-each>
            </tbody>
        </table>
    </xsl:template>

</xsl:stylesheet>
