Handling multiple selections with xsl:for-each


   <?xml version="1.0"?> 
   <xsl:stylesheet version="1.0"
                   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
       <xsl:template match="/">
           <HTML>
	   <HEAD>
	      <TITLE>Name of students</TITLE>
	   </HEAD>
	   <BODY>
              <xsl:apply-templates/>
	   </BODY>
           </HTML>
       </xsl:template>

       <xsl:template match="course">
          <xsl:apply-templates select="student"/>
       </xsl:template>

       <xsl:template match="student">
          <xsl:for-each select="name">
             <P> <xsl:value-of select="."/> </P>
          </xsl:for-each>
       </xsl:template>
   </xsl:stylesheet>