Advertisement
Guest User

XSL

a guest
Jan 29th, 2023
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.  
  4. <xsl:template match="/">
  5. <html>
  6. <body>
  7. <h2>The best movies</h2>
  8.  
  9. <table border = "1">
  10. <tr bgcolor = "green">
  11. <th>Title</th>
  12. <th>Year</th>
  13. <th>Director</th>
  14. <th>Country</th>
  15. <th>Rating</th>
  16. <th>Photo</th>
  17. </tr>
  18.  
  19. <xsl:for-each select="BestMovies/movie">
  20. <tr>
  21. <td><xsl:value-of select = "title"/></td>
  22. <td><xsl:value-of select = "year"/></td>
  23. <td><xsl:value-of select = "filmDirector"/></td>
  24. <td><xsl:value-of select = "country"/></td>
  25. <td><xsl:value-of select = "filmweb_rating"/></td>
  26. <td><img src="{photo}" alt="brak zdjecia" width="100px" height="100px"/> <xsl:value-of select = "photo"/> </td>
  27. </tr>
  28. </xsl:for-each>
  29. </table>
  30.  
  31. </body>
  32. </html>
  33. </xsl:template>
  34. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement