[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: translate to XML using XSL into an HTML table
> <xsl:for-each select="//LISTING"> should match both > listings (...I believe). > Can you post some idea of your output HTML? > I'm guessing <tr><td>first</td><td>last</td></tr> My Phone Book ------------------ FIRST|LAST|PHONE ------------------ Derek| Steve| Corey| Tiko | Kurt | Jane | ------------------ is from <?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="."/></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet> ____________________________________________________________________________________Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|