<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="iso-8859-9" version="1.0" />
<xsl:template match="/">
<html>
<body>
<table border="1" width="100%">
<tr>
<td width="50%">Name></td>
<td width="25%">Stock</td>
<td width="25%">Price</td>
</tr>
<xsl:for-each select="/root/products/item">
<tr>
<td><xsl:value-of select="Name"/></td>
<td><xsl:value-of select="Stock"/></td>
<td><xsl:value-of select="Price"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
|