Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <!--
  4. Document : stylesheet.xsl
  5. Created on : 26 listopad 2015, 09:39
  6. Author : CZW12_17
  7. Description:
  8. Purpose of transformation follows.
  9. -->
  10.  
  11. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  12. <xsl:output method="html"/>
  13.  
  14. <!-- TODO customize transformation rules
  15. syntax recommendation http://www.w3.org/TR/xslt
  16. -->
  17. <xsl:template match="/">
  18. <html>
  19. <head>
  20. <title>stylesheet.xsl</title>
  21. </head>
  22. <body>
  23. <h2>Informacje o samochodach</h2>
  24. <table border="1">
  25. <tr bgcolor="#9bcda2">
  26. <th>Numer rejestracyjny</th>
  27. <th>VIN</th>
  28. <th>Kolor</th>
  29. <th>Wersja</th>
  30. </tr>
  31. .
  32. .
  33. .
  34. <xsl:for-each select="root/info">
  35. <tr>
  36. <td><xsl:value-of select="numer_rejestracyjny"/></td>
  37. <td><xsl:value-of select="VIN"/></td>
  38. <td><xsl:value-of select="kolor"/></td>
  39. <td><xsl:value-of select="wyposazenie"/></td>
  40. </tr>
  41. </xsl:for-each>
  42. </table>
  43. </body>
  44. </html>
  45. </xsl:template>
  46.  
  47. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement