Você está na página 1de 1

<?xml version="1.0" encoding="UTF-8" ?

>
- <!-- New document created with EditiX at Sun Feb 20 11:08:03 IST 2011
-->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:output method="html" />
- <xsl:template match="/">
- <html>
<style type="text/css">th { font-family:Arial, Helvetica, sans-serif; font-siz
e:20pt; color:red; } .upper { text-transform:uppercase; font-weight:bold; }</sty
le>
- <body>
<h1>Book Details</h1>
- <xsl:for-each select="catalog">
- <table border="1">
- <tr>
<th>Title</th>
<th>Author</th>
<th>Publication</th>
<th>Edition</th>
<th>ISBN</th>
<th>Price</th>
</tr>
- <xsl:for-each select="book">
- <tr>
- <td>
<xsl:value-of select="title" />
</td>
- <td class="upper">
<xsl:value-of select="author" />
</td>
- <td>
<xsl:value-of select="publication" />
</td>
- <td>
<xsl:value-of select="edition" />
</td>
- <td>
<xsl:value-of select="isbn" />
</td>
- <td>
<xsl:value-of select="price" />
</td>
</tr>
</xsl:for-each>
</table>
</xsl:for-each>
<xsl:apply-templates />
</body>
</html>
</xsl:template>
</xsl:stylesheet>

Você também pode gostar