index_statistics.xsl

Discuss the powerful Explorer Templates used in the CAT programs
Post Reply
User avatar
wolf
Posts: 6
Joined: Tue Sep 22, 2015 8:13 pm

index_statistics.xsl

Post by wolf » Sat Dec 03, 2016 12:54 am

Hi to all

i have a small question about the index_statistics.xsl. I want exclude not only various artists also soundtrack i want exclude.
I make some tryings but without success. Here is the code:

Code: Select all

 <title>CATraxx - Index (Statistics)</title>  
  <link rel="stylesheet" type="text/css" href="style.css"/>
  </head>
  <body>
    <xsl:apply-templates select="data"/>
  </body>  
  </html>
</xsl:template>

<xsl:template match="data">
  <table class="index_table_pageheading" cellspacing="0" cellpadding="0">
    <tr>
      <td valign="top" width="34%">
        <xsl:value-of select="general/appname"/><xsl:text> </xsl:text><xsl:value-of select="general/appversion"/>
      </td>
      <td width="10">
      </td>
      <td align="center" valign="top" width="33%">
        <xsl:value-of select="database/filename"/>
      </td>
      <td width="10">
      </td>
      <td align="right" valign="top" width="33%">
        <xsl:value-of select="@longdate"/>
      </td>
    </tr>
    </table>
  <table class="index_table_toplinks" cellspacing="0" cellpadding="0">
    <tr>
      <td>
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td><a href="gohome"><img src="homepage.gif" border="0"/></a></td>
            <td width="5"></td>
            <td width="100%"><a href="gohome">Home page</a></td>
            </tr>
        </table>
      </td>
    </tr>     
  </table>  
  <br/>  
  ##CMD:CHART:<xsl:value-of select="@explorerwidth"/>,<xsl:value-of select="round(@explorerwidth div 3)"/>,1,1,0,Album,Format,,39,4,0,0,,Album / Format##
  <br/><br/>
  ##CMD:CHART:<xsl:value-of select="@explorerwidth"/>,<xsl:value-of select="round(@explorerwidth div 3)"/>,1,1,0,Album,Released,,9,1,3,0,,Album / Release Year##
  <br/><br/>
  ##CMD:CHART:<xsl:value-of select="@explorerwidth"/>,<xsl:value-of select="round(@explorerwidth div 3)"/>,1,1,0,Album,Artist,,39,4,0,16,Artist!=Various Artists,Album / Artist##       (Soundtrack) too 
  <br/><br/>
  ##CMD:CHART:<xsl:value-of select="@explorerwidth"/>,<xsl:value-of select="round(@explorerwidth div 3)"/>,1,1,0,Track,Artist,,39,4,0,16,Artist!=Various Artists,Track / Artist##
   
</xsl:template>

</xsl:stylesheet>  
I hope some can help me
Many thanks in advance and greetings from Germany

Wolf
Kind regards from Germany

Wolf

User avatar
LotsOCds
Posts: 177
Joined: Thu Aug 20, 2015 4:23 am
Location: California, USA

Re: index_statistics.xsl

Post by LotsOCds » Sat Dec 10, 2016 7:24 pm

Hi wolf,

Sorry for the slow response, I have been away from the forum for a while. The search string you want to use is

Code: Select all

Artist!=Various Artists@Soundtrack=False
An example in your code looks like this

Code: Select all

 ##CMD:CHART:<xsl:value-of select="@explorerwidth"/>,<xsl:value-of select="round(@explorerwidth div 3)"/>,1,1,0,Album,Format,,39,4,0,0,Artist!=Various Artists@Soundtrack=False,Album / Format##
Hope this helps!
Cheers,
Dave

User avatar
wolf
Posts: 6
Joined: Tue Sep 22, 2015 8:13 pm

Re: index_statistics.xsl

Post by wolf » Sat Dec 10, 2016 11:41 pm

Hi Dave

many thank's for your help. :D
That is what I want.
Kind regards from Germany

Wolf

Post Reply