title: Why won't my list of data show in my XML?
body: <p>So there's supposed to be employee data in list form on the website, but nothing pops up after the 'Employee Report'. I don't know what I'm doing wrong. I looked through most of the book, and can't seem to see what the problem is. Can someone help?</p>
  
  <p>This is my XML:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;!--
     New Perspectives on XML, 3rd Edition
     Tutorial 7
     Case Problem 1
  
     Employee List
     Author: 
     Date:   4/6/2020
  
     Filename:         hbemployees.xml
     Supporting Files: hbemployees.xsl
  
  --&gt;
  
  &lt;?xml-stylesheet type="text/xsl" href="hbemployees.xsl" ?&gt;
  
  &lt;employees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
     &lt;employee empID="4"&gt;
        &lt;name&gt;Heffner, Marian&lt;/name&gt;
        &lt;position&gt;Chief Operating Officer&lt;/position&gt;
        &lt;phone&gt;x10962&lt;/phone&gt;
        &lt;email&gt;mheffner50@example.com/harrisbarnes&lt;/email&gt;
        &lt;department&gt;Management&lt;/department&gt;
        &lt;salary&gt;262000&lt;/salary&gt;
        &lt;gender&gt;female&lt;/gender&gt;
        &lt;maritalStatus&gt;married&lt;/maritalStatus&gt;
        &lt;workStatus&gt;Full Time&lt;/workStatus&gt;
     &lt;/employee&gt;
     &lt;employee empID="192"&gt;
        &lt;name&gt;Murff, Nicolle&lt;/name&gt;
        &lt;position&gt;Mgr Software Client Supp&lt;/position&gt;
        &lt;phone&gt;x32524&lt;/phone&gt;
        &lt;email&gt;nmurff63@example.com/harrisbarnes&lt;/email&gt;
        &lt;department&gt;Sales&lt;/department&gt;
        &lt;salary&gt;137000&lt;/salary&gt;
        &lt;gender&gt;female&lt;/gender&gt;
        &lt;maritalStatus&gt;married&lt;/maritalStatus&gt;
        &lt;workStatus&gt;Full Time&lt;/workStatus&gt;
     &lt;/employee&gt;
     &lt;employee empID="295"&gt;
        &lt;name&gt;Vecchio, Art&lt;/name&gt;
        &lt;position&gt;Line Worker&lt;/position&gt;
        &lt;phone&gt;x12125&lt;/phone&gt;
        &lt;email&gt;avecchio55@example.com/harrisbarnes&lt;/email&gt;
        &lt;department&gt;Management&lt;/department&gt;
        &lt;salary&gt;83000&lt;/salary&gt;
        &lt;gender&gt;male&lt;/gender&gt;
        &lt;maritalStatus&gt;married&lt;/maritalStatus&gt;
        &lt;workStatus&gt;Part Time&lt;/workStatus&gt;
     &lt;/employee&gt;
     &lt;employee empID="294"&gt;
        &lt;name&gt;Lewis, Richard&lt;/name&gt;
        &lt;position&gt;Met Read/Coll&lt;/position&gt;
        &lt;phone&gt;x22131&lt;/phone&gt;
        &lt;email&gt;rlewis19@example.com/harrisbarnes&lt;/email&gt;
        &lt;department&gt;Production&lt;/department&gt;
        &lt;salary&gt;74500&lt;/salary&gt;
        &lt;gender&gt;male&lt;/gender&gt;
        &lt;maritalStatus&gt;married&lt;/maritalStatus&gt;
        &lt;workStatus&gt;Full Time&lt;/workStatus&gt;
     &lt;/employee&gt;
  </code></pre>
  
  <p>This is my XSL:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;!--
     New Perspectives on XML, 3rd Edition
     Tutorial 7
     Case Problem 1
  
     Harris and Barnes Style Sheet
     Author: 
     Date:   4/6/2020
  
     Filename:         hbemployees.xsl
     Supporting Files: 
  --&gt;
  
  
  &lt;xsl:stylesheet version="1.0"
       xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
      &lt;xsl:key name="departments" match="employee" use="department" /&gt;
  
  
     &lt;xsl:output method="html"
        doctype-system="about:legacy-compat"
        encoding="UTF-8"
        indent="yes" /&gt;
  
  
     &lt;xsl:template match="/"&gt;
        &lt;html&gt;
           &lt;head&gt;
              &lt;title&gt;Employee Report&lt;/title&gt;
              &lt;link href="hbstyles.css" rel="stylesheet" type="text/css" /&gt;
           &lt;/head&gt;
  
           &lt;body&gt;
              &lt;div id="wrap"&gt;
                 &lt;header&gt;
                    &lt;img src="hblogo.png" alt="Harris and Barnes" /&gt;
                 &lt;/header&gt;
  
                 &lt;h1&gt;Employee Report&lt;/h1&gt;
                 &lt;xsl:for-each select="//employeee[generate-id()=generate-id(key('departments', department)[1])]"&gt;
                     &lt;xsl:sort select="department" /&gt;
                     &lt;table class="employeeList"&gt;
                         &lt;caption&gt;&lt;xsl:value-of select="department" /&gt;&lt;/caption&gt;
                         &lt;thead&gt;
                             &lt;tr&gt;
                                 &lt;th&gt;Name&lt;/th&gt;
                                 &lt;th&gt;Position&lt;/th&gt;
                                 &lt;th&gt;Salary&lt;/th&gt;
                                 &lt;th&gt;Phone&lt;/th&gt;
                                 &lt;th&gt;Gender&lt;/th&gt;
                                 &lt;th&gt;Marital Status&lt;/th&gt;
                                 &lt;th&gt;Work Status&lt;/th&gt;
                             &lt;/tr&gt;
                         &lt;/thead&gt;
                         &lt;tbody&gt;
                             &lt;xsl:apply-templates select="key('departments', department)"&gt;
                                 &lt;xsl:sort select="salary" order="descending" /&gt;
                             &lt;/xsl:apply-templates&gt;
                         &lt;/tbody&gt;
                     &lt;/table&gt;
                 &lt;/xsl:for-each&gt;
               &lt;/div&gt;
           &lt;/body&gt;
  
        &lt;/html&gt;
     &lt;/xsl:template&gt;
  
     &lt;xsl:template match="employees/employee"&gt;
         &lt;tr&gt;
             &lt;td&gt;
                 &lt;xsl:value-of select="name"/&gt;
             &lt;/td&gt;
             &lt;td&gt;
                 &lt;xsl:value-of select="position"/&gt;
             &lt;/td&gt;
             &lt;td&gt;
                 &lt;xsl:value-of select="format-number(salary,'$#,##0')"/&gt;
             &lt;/td&gt;
             &lt;td&gt;
                 &lt;xsl:value-of select="phone"/&gt;
             &lt;/td&gt;
             &lt;td&gt;
                 &lt;xsl:value-of select="gender"/&gt;
             &lt;/td&gt;
             &lt;td&gt;
                 &lt;xsl:value-of select="maritalStatus"/&gt;
             &lt;/td&gt;
             &lt;td&gt;
                 &lt;xsl:value-of select="workStatus"/&gt;
             &lt;/td&gt;
         &lt;/tr&gt;
     &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>What am I doing wrong? It doesn't even show me an error, it just won't show up.</p>