Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <html>
- <body>
- <h2>The best movies</h2>
- <table border = "1">
- <tr bgcolor = "green">
- <th>Title</th>
- <th>Year</th>
- <th>Director</th>
- <th>Country</th>
- <th>Rating</th>
- <th>Photo</th>
- </tr>
- <xsl:for-each select="BestMovies/movie">
- <tr>
- <td><xsl:value-of select = "title"/></td>
- <td><xsl:value-of select = "year"/></td>
- <td><xsl:value-of select = "filmDirector"/></td>
- <td><xsl:value-of select = "country"/></td>
- <td><xsl:value-of select = "filmweb_rating"/></td>
- <td><img src="{photo}" alt="brak zdjecia" width="100px" height="100px"/> <xsl:value-of select = "photo"/> </td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement