<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:output method="html"/> 

<xsl:template match="/">
   <html>
   <head>
      <title>CPS Instructor/Course Webpage</title>
   </head>
   <body>
      <h1>Instructors</h1>
      <ul>
      <xsl:for-each select="/*/instructor">
         <li><xsl:value-of select="name"/></li>
      </xsl:for-each>
      </ul>
      <h1>Courses</h1>
      <ul>
      <xsl:for-each select="*/course">
         <li>
            <b><xsl:value-of select="dept"/>
               <xsl:text> </xsl:text>
               <xsl:value-of select="no"/></b>
               <xsl:text>: </xsl:text>
               <xsl:value-of select="credits"/>
          </li>
      </xsl:for-each>
      </ul>
   </body>
   </html>
</xsl:template>

</xsl:stylesheet>

