<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:copyRight="http://xml.sz.luohuedu.net/">
<xsl:template match="/">
<table bgcolor="#FFFFFF" border="0" cellpadding="3" cellspacing="0" width="100%" > 
	  <xsl:for-each select="/AlbumList/Album[position() mod 4 = 1]">
	    <tr>
	      <td width="33%" align="center" valign="middle">
	        <xsl:apply-templates select="."/>
	      </td>
	      <td width="34%" align="center" valign="middle">
	        <xsl:apply-templates select="following-sibling::Album[position() = 1]"/>
	      </td>
	      <td width="33%" align="center" valign="middle">
	        <xsl:apply-templates select="following-sibling::Album[position() = 2]"/>
	      </td>
	      <td width="33%" align="center" valign="middle">
	        <xsl:apply-templates select="following-sibling::Album[position() = 3]"/>
	      </td>
	    </tr>
	  </xsl:for-each>
</table>
<table bgcolor="#FFFFFF" border="0" cellpadding="3" cellspacing="0" width="100%" > 
	  <xsl:for-each select="/AlbumList/Track">
	    <tr>
	      <td width="33%" align="left" valign="middle">
	        <xsl:apply-templates select="."/>
	      </td>
	     </tr>
	  </xsl:for-each>
</table>
  </xsl:template>

    <xsl:template match="/AlbumList/Album">
    <xsl:for-each select="CDID">
	<a>
	<xsl:attribute name="href">
	<xsl:text disable-output-escaping="yes">http://cdlibx/CDID/</xsl:text>
	<xsl:value-of select="." /><xsl:text disable-output-escaping="yes">.xml</xsl:text>
	</xsl:attribute>
	<img style="border-color:#C0C0C0; border-style:dashed; border-width:thin; margin:5; " border="0">
        <xsl:attribute name="src">
        <xsl:text disable-output-escaping="yes">http://cdlibx/ThumbByCDID/</xsl:text>
	<xsl:value-of select="." />
        <xsl:text disable-output-escaping="yes">.xml</xsl:text>
	</xsl:attribute>
        </img>
	</a>
        </xsl:for-each>
        <br/>
    <span style="font-size:smaller; font-weight:bold; ">
    <xsl:for-each select="Title">
	<xsl:apply-templates />
    </xsl:for-each>
	</span>
</xsl:template>

 <xsl:template match="/AlbumList/Track">
                        <ul style="margin-bottom:0; margin-top:0; " start="1" type="square">
                            <xsl:for-each select="Title">
                                <li>
                                    <a>
                                        <xsl:attribute name="href"><xsl:text disable-output-escaping="yes">http://cdlibx/TRACK/</xsl:text><xsl:value-of select="../TrackID" /><xsl:text disable-output-escaping="yes">.xml#</xsl:text></xsl:attribute>
                                        <xsl:apply-templates />
                                    </a>
                                </li>
                            </xsl:for-each>
                        </ul>
  </xsl:template>
</xsl:stylesheet>
