[xsl] translate to XML using XSL into an HTML table

Subject: [xsl] translate to XML using XSL into an HTML table
From: oryann9 <oryann9@xxxxxxxxx>
Date: Fri, 3 Aug 2007 11:58:12 -0700 (PDT)
Hello all , 

This is my 1st post so be kind...
Anywho... here is my xsl code and I need to make a
table for every entry in my XML code, but cannot get
it to work. Please help!
Thank you,
oryan

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="html"/>
<xsl:template match="/">
<html>
    <head>
         <title> My Phone Book</title>
    </head>
     <h2> My Phone Book </h2>
    <body bgcolor="YELLOW">
        <table border="3">
           <tr bgcolor="lightblue">
               <th>FirstName</th>
               <th>LastName</th>
               <th>Phone</th>
           </tr>
            <xsl:for-each select="//FIRST"> 
            <tr>
                <td> <xsl:value-of
select="//FIRST/*"/> 

                </td>
            </tr>                 
            </xsl:for-each>             
        </table>
    </body>
</html>
</xsl:template>
</xsl:stylesheet>


XML CODE:

<?xml version="1.0"?>
<!DOCTYPE PHONEBOOK>
<PHONEBOOK>
    <LISTING>
        <FIRST> Derek </FIRST>
        <LAST> Smith </LAST>
        <PHONE> 614-757-2123 </PHONE>
        
        <FIRST> Steve </FIRST>
        <LAST> Gretschmann </LAST> 
        <PHONE> 614-757-2323 </PHONE>
        
        <FIRST> Corey </FIRST>
        <LAST> Pohl </LAST>
        <PHONE> 614-806-1416 </PHONE>
        
        <FIRST> Tiko </FIRST>
        <LAST> Lewis </LAST>
        <PHONE> 614-232-3434 </PHONE> 
   
        <FIRST> Kurt </FIRST>
        <LAST> Smith </LAST>
        <PHONE> 419-455-9090 </PHONE>   
    </LISTING>

    <LISTING>
       <FIRST>Jane</FIRST>
       <LAST>Smith</LAST>
       <PHONE>1-800-234-5678</PHONE>
       <PHONE>1-555-222-3333</PHONE>
    </LISTING>

</PHONEBOOK>   


       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

Current Thread