<?xml version = "1.0"?>
<!-- WorldPoets.xsl  -->
<!-- An XSLT transformation  -->

<!-- reference XSL style sheet URI -->
<xsl:stylesheet version = "1.0" 
   xmlns:xsl = "http://www.w3.org/1999/XSL/Transform">

   <xsl:output method = "html" omit-xml-declaration = "no" 
      doctype-system = 
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
      doctype-public = "-//W3C//DTD XHTML 1.0 Strict//EN"/>

   <xsl:template match = "/"> <!-- match root element -->

   <html xmlns = "http://www.w3.org/1999/xhtml">
      <head>
         <title>World Poets</title>
      </head>

      <body>
         <table border = "1" background = "bluesky.jpg">
            <thead>
			   <th colspan="5">World Poets</th>
               <tr>
                  <th>Name</th>
                  <th>National Affiliation</th>
                  <th>Date of Birth</th>
				  <th>Date of Death</th>
				  <th>Webpage</th>
               </tr>
            </thead>

            <!-- insert each name and paragraph element value -->
            <!-- into a table row. -->
            <xsl:for-each select = "/WorldPoets/Poet">
               <tr>
                  <td><xsl:value-of select = "name"/></td>      
                  <td><xsl:value-of select = "NationalAffiliation"/></td>     
                  <td><xsl:value-of select = "DateOfBirth"/></td>
				  <td><xsl:value-of select = "DateOfDeath"/></td>
				  <td>
                    <a><xsl:attribute name="href">
                    <xsl:value-of select="LINK/@VALUE"/></xsl:attribute> 
                    <xsl:value-of select="LINK"/> 
                    </a>
                  </td> 

              </tr>
            </xsl:for-each>
         </table>
      </body>
   </html>

   </xsl:template>
</xsl:stylesheet>



