I am trying to show one row at a time and with a button show the next row, and either with a function show each tour one at a time instead of just having all of them in one table. i hope someone can help me with this
<?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" version="4.0"/> <!-- start of root template --> <xsl:template match="/"> <html> <head> <title>Tours</title> </head> <body> <center> <table border="5"> <tr> <th colspan="8">Tours</th> </tr> <tr> <th>Description</th> <th>Tour Name</th> <th>Tour Photo</th> <th>Tour Guide</th> <th>Email</th> <th>Tour Start</th> <th>Tour End</th> <th>Itinerary</th> </tr> <xsl:for-each select="tours/tour"> <tr> <td><xsl:value-of select="description"/></td> <td><xsl:value-of select="tourName" /> </td> <td><xsl:value-of select="tourPhoto" /><th><img src="{tourPhoto}"></img></th></td> <td><xsl:value-of select="tourGuide" /></td> <td><xsl:value-of select="tdEmail" /></td> <td><xsl:value-of select="tourStart" /></td> <td><xsl:value-of select="tourEnd" /></td> <td><xsl:value-of select="itinerary"/></td> </tr> </xsl:for-each> </table> </center> </body> </html> </xsl:template> <!-- end of root template -->
No comments:
Post a Comment