<?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>
<STYLE>
H1 {COLOR: red; FONT-FAMILY: Arial; FONT-SIZE: 14pt;}
H2 {COLOR: darkblue; FONT-FAMILY: Arial; FONT-SIZE: 12pt;}
.subhead {COLOR: darkblue; FONT-FAMILY: Arial; FONT-SIZE: 12pt;}
.text {COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 12pt;}
TH {COLOR: white; FONT-FAMILY: Arial; background-color:
darkblue;}
TD {COLOR: blue; FONT-FAMILY: Arial}
TR { background-color: beige; }
BODY { background-color: beige; }
</STYLE>
</head>
  <body> <h1>Company Information for Infoteria </h1>
    <p class="subhead"> Employee Listing </p>
    <table border="1" valign="top">
      <tr>
        <th >Name</th>
        <th >Position</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>
 <p class="text"> Total Employees: <xsl:value-of select="count(Company/Employee)" /> </p> 
  </body>
  </html>

</xsl:template>
</xsl:stylesheet>
