SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2001
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to output nested tables in XSL?

    PHP Code:
    <table><xsl:attribute name="bgcolor"><tr><td>
    <
    table><tr><td><a><xsl:attribute name="href"><xsl:value-of select="URI" /></xsl:attribute><font color="DF3716"><b><xsl:value-of select="Title" /></b></font></a><br /><xsl:value-of select="substring(Description,1, 150)" />...</td></tr></table>
    </
    td></tr></table
    I tried the codes above to output a nested table without success. Could anyone tell me how to create tables with XSL/XML?

    Thanks!

  2. #2
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please post the generated code or error you get out - offhand I can see no problem with that code.


    M@rco


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •