<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- Stylesheet for Visual Script XSLT Tables.  Version 1.0 July 17th, 2003. -->

    <xsl:template match="/">
        <html>
            <head>
               <title>Soccer Team</title>
            </head>
            <body>

                <IMG SRC="soccer logol.gif"
                     ALIGN="BOTTOM" ALT="Logo" BORDER="0" />

                <br/>
                <br/>
<table border="0" width="100%">
                    <tr>
                        <td>
                                <b> 
                                    Team Directory for
                                    <xsl:value-of select="/soccer_team/@name" />                       
                                </b>
                        </td>
                        <td>
                                    <xsl:value-of select="/soccer_team/@website" />
                        </td>

                    </tr>
                </table>

                <br/>
<table border="0" width="100%">
                    <tr bgcolor='yellow'><b>
	<th height='35'><b><font face="arial">Name</font></b></th>
	<th height='35'><b><font face="arial">Position</font></b></th>
	<th height='35'><b><font face="arial">Shirt</font></b></th>
	<th height='35'><b><font face="arial">email</font></b></th>
	<th height='35'><b><font face="arial">Telephone</font></b></th>
  </b>
                    </tr>

                    <!-- Now write the table rows out just here -->
                    <xsl:apply-templates/>   
  <!-- Now write the table last row at end -->
                    <tr bgcolor='yellow'><b>   
	 <th WIDTH="25%" height='35'></th>    
	 <th WIDTH="15%" height='35'></th>    
	 <th WIDTH="10%" height='35'></th>    
	 <th WIDTH="20%" height='35'></th>    
	 <th WIDTH="15%" height='35'></th>    
                        </b>
                    </tr>

                </table>
            </body>
        </html>

    </xsl:template>

  <xsl:template match="staff/member">
                      <tr>    
	                       <td>  <font SIZE="2">
	                                <xsl:value-of select="name"/> </font>
	                        </td>  
	                       <td>  <font SIZE="2">
	                                <xsl:value-of select="position"/> </font>
	                        </td>  
	                       <td>  <font SIZE="2">
	                                <xsl:value-of select="shirt/@number"/> </font>
	                        </td>  
	                       <td>  <font SIZE="2">
	                                <xsl:value-of select="email"/> </font>
	                        </td>  
	                       <td>  <font SIZE="2">
	                                <xsl:value-of select="telephone"/> </font>
	                        </td>  
                    </tr>
    </xsl:template>
    
  <xsl:template match="players/player">
                      <tr>    
	                       <td>  <font SIZE="2">
	                                <xsl:value-of select="name"/> </font>
	                        </td>  
	                       <td>  <font SIZE="2">
	                                <xsl:value-of select="position"/> </font>
	                        </td>  
	                       <td>  <font SIZE="2">
	                                <xsl:value-of select="shirt/@number"/> </font>
	                        </td>  
	                       <td>  <font SIZE="2">
	                                <xsl:value-of select="email"/> </font>
	                        </td>  
	                       <td>  <font SIZE="2">
	                                <xsl:value-of select="telephone"/> </font>
	                        </td>  
                    </tr>
    </xsl:template>
    

</xsl:stylesheet>  
