t;xsl:template match=&quot;BOOKLIST&quot;&gt;
    &lt;h2&gt;
        &lt;xsl:apply-templates select="BOOK"&gt;
            &lt;xsl:sort select="AUTHOR"/&gt;
            &lt;xsl:sort select="@DATE" order="descending" lang="GregorianDate"/&gt;
        &lt;/xsl:apply-templates&gt;            
    &lt;/h2&gt;
&lt;/xsl:template&gt;</pre>
    </font></td>
  </tr>
</table>
</div><font SIZE="2">
</font>


<p>Example 2: sorting with xsl:for-each. This example also shows a template for a BOOKLIST
elem