<?xml version="1.0" ?>
<!-- Style sheet generating the alphabetically ordered list -->
<!-- To learn about this file, visit:
		http://larve.net/people/hugo/2000/10/concerts/generation    -->
<!-- $Id: name.xsl 747 2000-10-22 04:00:09Z hugo $ -->
<!-- Copyright (c) 2000 Hugo Haas <hugo@larve.net> -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
                xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="format-concert.xsl"/>
<xsl:import href="header-footer.xsl"/>

<xsl:output
   method="xml"
   encoding="us-ascii"
   omit-xml-declaration="yes"
   doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" 
   doctype-system="http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd"
   />


<xsl:template match="concerts">
  <html lang="en" xml:lang="en">
  <head>
  <title>Hugo Haas's Concert Reviews: by band name</title>
  <link rel="stylesheet" type="text/css" href="/stylesheets/base" />
  <link rel="stylesheet" type="text/css" href="reviews" />
  </head>
  <body>
    <h2>Concert Reviews: by band name</h2>
    <xsl:call-template name="header"/>
    <dl>
      <xsl:for-each select="concert/artist[not(. = following::artist)]">
        <xsl:sort select="last"/>
        <dt>
	  <xsl:value-of select="last"/>
	  <xsl:if test="boolean(first)">
	    <xsl:value-of select="concat(', ', first)"/>
	  </xsl:if>
	</dt>
	<dd>
	  <ul>
	    <xsl:for-each
	       select="//concerts/concert[attribute::status='seen'
					  and .//artist=current()]">
	      <xsl:sort select="date/year" data-type="number"
                        order="ascending"/>
	      <xsl:sort select="date/month" data-type="number"
                        order="ascending"/>
	      <xsl:sort select="date/day" data-type="number"
                        order="ascending"/>
	      <li>
		<xsl:call-template name="concert-entry"/>
	      </li>
	    </xsl:for-each>
	  </ul>
	</dd>
      </xsl:for-each>
    </dl>
    <xsl:call-template name="footer"/>
  </body>
  </html>
</xsl:template>

</xsl:stylesheet>
