<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">	
<!-- root node-->
<xsl:template match="/">
<html>
<body>
<h2>Some Good Books </h2>
<xsl:apply-templates />
</body>
</html>
</xsl:template>

<!-- into the books node -->
<xsl:template match="books">
  <ul id="booklist">  
  <xsl:apply-templates>
   <xsl:sort select="author" />
   </xsl:apply-templates>
 </ul>
 
</xsl:template>

<!-- into book nodes -->
<xsl:template match="book"> 
<li><em><xsl:value-of select="title" /></em> by <xsl:value-of select="author" /></li>
</xsl:template>

</xsl:stylesheet>
