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>
- <head>
- <link rel="stylesheet" href="style.css" type="text/css"/>
- </head>
- <body>
- <table border="1">
- <caption><h2>The best movies</h2></caption>
- <thead>
- <tr style="background-color: green">
- <th>Title</th>
- <th>Year</th>
- <th>Director</th>
- <th>Country</th>
- <th>Rating</th>
- <th>Photo</th>
- </tr>
- </thead>
- <tbody>
- <xsl:for-each select="BestMovies/movie">
- <tr style="background-color: {@type}">
- <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"/></td>
- </tr>
- </xsl:for-each>
- </tbody>
- </table>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement