<?xml version="1.0"?>

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

<xsl:output method="xml"/> 

<xsl:template match="instructor">
   <li><xsl:value-of select="name"/></li>
</xsl:template>

<xsl:template match="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:template>

<xsl:template match="/">
   <html>
   <head>
      <title>CPS Instructor/Course Webpage</title>
   </head>
   <body>
      <h1>Instructors</h1>
      <ul>
         <xsl:apply-templates select="*/instructor"/>
      </ul>
      <h1>Courses</h1>
      <ul>
         <xsl:apply-templates select="*/course"/>
      </ul>

   </body>
   </html>
</xsl:template>

</xsl:stylesheet>

