<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
							  xmlns:msxsl="urn:schemas-microsoft-com:xslt"
							  xmlns:user="mynamespace">
	<xsl:template name="cat_nav">
		<table>
			<tr>
			<xsl:for-each select="root/top_category/category">
				<xsl:if test="position() &lt; 9">
				<td><a>
					<xsl:attribute name="href"><xsl:value-of select="/root/config/unsecure_path"/>catalog/<xsl:value-of select="category_id"/></xsl:attribute>
					<xsl:value-of select="name"/></a>
					<xsl:value-of select="user:nbsp()" disable-output-escaping="yes"/>
					</td>
				</xsl:if>
			</xsl:for-each>
			<xsl:if test="count(/root/top_category/category) &gt; 8">
				<td><a>
					<xsl:attribute name="href">browse/parent.0</xsl:attribute>More...</a></td>
			</xsl:if>
			</tr>
		</table>
	</xsl:template>
</xsl:stylesheet>
	
