<?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"/>
	
	<xsl:include href="Style1.xsl"/>
	<xsl:template match="/">
		<html>
			<body>
				<!-- Set Formatting Characteristics -->
				<xsl:call-template name="Style1"/>


				<head>
					<title>Stylesheet Example</title>
				</head>

		<h1>Product Listing</h1>
		
			<table border="1">
				<tr>
					<th>ID</th>
					<th>Name</th>
					<th>Price</th>
					<th>Quantity</th>
				</tr>
				<xsl:for-each select="/catalog/product">
					<xsl:sort select="name" order="ascending"/>
					<tr>
						<td>
							<xsl:value-of select="prodid"/>
						</td>
						<td>
							<xsl:value-of select="name"/>
						</td>
						<td>
							<xsl:value-of select="price"/>
						</td>
						<td>
							<xsl:value-of select="quantity"/>
						</td>
					</tr>
				</xsl:for-each>
			</table>
		Total Products: <xsl:value-of select="count(products/product)"/><br/>

		
			</body>
		</html>
	</xsl:template>

	<xsl:template match="products">
	</xsl:template>
</xsl:stylesheet>
