<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  <!-- XSL Stylesheet for Aristotelian Product List -->
  <xsl:template match="/">
    <html>
      <head>
        <title>
          <xsl:value-of select="//productList/listTitle"></xsl:value-of>
        </title>
      </head>
      <body>
        <h2>
          <xsl:value-of select="//productList/listTitle"></xsl:value-of>
        </h2>
        <div>
          <table border="1">
            <tr>
              <th>Product</th>
                <th>Model Number</th>
                  <th>Supported Languages</th>
            </tr>
            <xsl:apply-templates match="//productList/product">
              <xsl:sort select="name"></xsl:value-of>
            </xsl:apply-templates>
          </table>
        </div>
      </body>
    </html>
  </xsl:template>
  <xsl:template match="product">
            <xsl:for-each select="//productList/product">
              <tr>
                <td>
                  <xsl:value-of select="name"></xsl:value-of>
                </td>
                <td>
                  <xsl:value-of select="model"></xsl:value-of>
                </td>
                <td>
                  <xsl:value-of select="languages"></xsl:value-of>
                </td>
              </tr>
            </xsl:for-each>

</xsl:stylesheet>


