XSLT terminado
[curso-xml.git] / plantilla.xsl
1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet version="1.0"
3     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4 <xsl:template match="/">
5 <html>
6     <body>
7     <h2>Mi coleccion de CD</h2>
8     <table border="1">
9         <tr bgcolor="#9acd32">
10             <th align="left">Titulo</th>
11             <th align="left">Artista</th>
12         </tr>
13         <xsl:for-each select="catalogo/cd">
14             <tr>
15                 <td><xsl:value-of select="titulo"/></td>
16                 <td><xsl:value-of select="artista"/></td>
17             </tr>
18         </xsl:for-each>
19     </table>
20     </body>
21 </html>
22 </xsl:template>
23 </xsl:stylesheet>