1 <?xml version="1.0" encoding="ISO-8859-1"?>
3 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5 <xsl:template match='/'>
7 <xsl:apply-templates />
11 <xsl:template match='tienda'>
12 <head><title><xsl:value-of select='nombre' /> (Generado por tienda1-html.xsl)</title></head>
14 <h1><xsl:value-of select='nombre' /> </h1>
16 <h2>Teléfono: <xsl:value-of select='telefono' /> </h2>
18 <h2>Nuestros mejores productos </h2>
20 <tr><th>Código</th><th>Existencias</th><th>Artículo</th></tr>
21 <xsl:apply-templates select='producto' />
26 <xsl:template match='producto'>
27 <tr><xsl:apply-templates /></tr>
30 <xsl:template match='codigo|cantidad|articulo'>
31 <td><xsl:apply-templates /></td>