The xsl:value-of to get the value of nodes



XSL Style Sheet:
   <?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">
            <P>
               <xsl:value-of select="name"/> 
            </P>
         </xsl:template>
   </xsl:stylesheet>
HTML output file:
   <HTML>
   <HEAD>
   <TITLE>Name of students</TITLE>
   </HEAD>
   <BODY> 
   <P>John Smith</P>
   <P>George Lucas</P>
   <P>Elizabeth Roberts</P>
   </BODY>
   </HTML>