|
1 <?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 <!-- Edited by XMLSpy® --> |
|
3 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
4 |
|
5 <xsl:template match="/"> |
|
6 <html> |
|
7 <body> |
|
8 <h2 id="xsltheader">this xml file should be formatted using an xsl file(lower iframe should contain xml dump)!</h2> |
|
9 <table border="1"> |
|
10 <tr bgcolor="#990099"> |
|
11 <th>Title</th> |
|
12 <th>Artist</th> |
|
13 <th>Price</th> |
|
14 </tr> |
|
15 <xsl:for-each select="catalog/cd"> |
|
16 <tr> |
|
17 <td><xsl:value-of select="title"/></td> |
|
18 <td><xsl:value-of select="artist"/></td> |
|
19 <td><xsl:value-of select="price"/></td> |
|
20 </tr> |
|
21 </xsl:for-each> |
|
22 </table> |
|
23 </body> |
|
24 </html> |
|
25 </xsl:template> |
|
26 </xsl:stylesheet> |
|
27 |