Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Document : stylesheet.xsl
- Created on : 26 listopad 2015, 09:39
- Author : CZW12_17
- Description:
- Purpose of transformation follows.
- -->
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:output method="html"/>
- <!-- TODO customize transformation rules
- syntax recommendation http://www.w3.org/TR/xslt
- -->
- <xsl:template match="/">
- <html>
- <head>
- <title>stylesheet.xsl</title>
- </head>
- <body>
- <h2>Informacje o samochodach</h2>
- <table border="1">
- <tr bgcolor="#9bcda2">
- <th>Numer rejestracyjny</th>
- <th>VIN</th>
- <th>Kolor</th>
- <th>Wersja</th>
- </tr>
- .
- .
- .
- <xsl:for-each select="root/info">
- <tr>
- <td><xsl:value-of select="numer_rejestracyjny"/></td>
- <td><xsl:value-of select="VIN"/></td>
- <td><xsl:value-of select="kolor"/></td>
- <td><xsl:value-of select="wyposazenie"/></td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement