<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method = "xml"
	            indent="no"
				xmlns="http://www.w3.org/1999/XML"
				omit-xml-declaration = "no"
	            encoding="ISO-8859-1"
				/>
<!--
	            doctype-public= "-//W3C//DTD XML 1.1//EN"
-->

	<xsl:template match = "/product-list">
		<html-fragment>
		<p>
			[ <a><xsl:attribute name = "href">javascript:switch_config('demonstration_6:welcome_brochure')</xsl:attribute>Shopping Home</a> ]
		</p>
		<ul>
<!--			<li><xsl:value-of select = "name()" /> : <xsl:value-of select="@eid" /></li>-->
			<xsl:apply-templates select = "product">
				<xsl:with-param name = "eid" select = "@eid" />
			</xsl:apply-templates>
		</ul>
		</html-fragment>
	</xsl:template>

	<xsl:template match = "product">
		<xsl:param name = "eid" />
		<li>
			<a><xsl:attribute name = "href">javascript:product_view('<xsl:value-of select = "$eid" />',<xsl:value-of select = "@pid" />);</xsl:attribute><xsl:value-of select = "@name" /></a>
		</li>
	</xsl:template>

</xsl:stylesheet>


