<?xml version="1.0" ?> 
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
 
 <html>

   <title>Stylesheet Example</title>
    
   <head>
     <link rel="stylesheet" href="stylesheet.css" type="text/css" /> 
   </head>
   
   <body>
     <h1>Company Information for Infoteria</h1>
     <span class="subhead">Employee Listing</span>
 
   <table border="2" >
     <tr>
       <th>Name</th> 
       <th>Postion</th> 
       <th>Email</th>
     </tr>

     <xsl:for-each select="Company/Employee">
       <xsl:sort select='substring-after(Email,"@")'/>
       
     <tr>
    
       <td>
         <xsl:value-of select="FirstName" /> 
         <xsl:value-of select="LastName" /> 
       </td>
       
       <td>
         <xsl:value-of select="Position" /> 
       </td>
       
       <td>
         <xsl:value-of select="Email" /> 
       </td>
     </tr>
  
     </xsl:for-each>

  </table>

  <br/>
  
  <span class="text">Total Employees: <xsl:value-of select="count(//Employee)"/></span>
  
  <noscript/>
  </body>
  
  </html>
  </xsl:template>
  </xsl:stylesheet>
