<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:template match="/PERIODIC_TABLE">
      <html>
        <body>
          <h1>Atomic Number vs. Melting Point</h1>
          <table>
            <th>Element</th>
            <th>Atomic Number</th>
            <th>Melting Point</th>
            <xsl:apply-templates select="ATOM"/>
          </table>
        </body>
      </html>
    </xsl:template>

    <xsl:template match="ATOM">
      <xsl:apply-templates
       select="MELTING_POINT"/>
    </xsl:template>

    <xsl:template match="MELTING_POINT">
       <tr>
        <td>
          <xsl:value-of
           select="../NAME"/>
        </td>
        <td>
          <xsl:value-of
         select="../ATOMIC_NUMBER"/>
        </td>
        <td>
          <xsl:value-of select="."/>
          <xsl:value-of select="@UNITS"/>
        </td>
      </tr>
   </xsl:template>

</xsl:stylesheet>
