<xsl:template match="sitemap">
	<div class="page">
		<div class="main_title"><xsl:value-of select="$ccf/@name"/></div>
		<div id="sitemap" class="maintxt">
			<ul>
				<xsl:apply-templates select="$cr//cat[@id='site']/cat[not(@nositemap='1')]" mode="sitemapmaincatbloc"/>
			</ul>
		</div>
	</div>
</xsl:template>

<xsl:template match="cat" mode="sitemapmaincatbloc">
	<xsl:apply-templates select="." mode="simplecatlink"/>
</xsl:template>


<xsl:template match="cat" mode="simplecatlink">
    <li>
		<xsl:choose>
			<xsl:when test="@nopage='1'">
				<span><xsl:value-of select="./@name"/></span>
			</xsl:when>
			<xsl:otherwise>
				<a href="{./@mainwu}"><xsl:value-of select="./@name"/></a>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:if test="./cat and not(./@finalnode='1')">
			<ul><xsl:apply-templates select="./cat" mode="simplecatlink"/></ul>
		</xsl:if>
		
		<xsl:if test="./list/item and not(./@nositemaplist='1') and ./@model != 'slideshowmodel'">
			<ul>
				<xsl:apply-templates select="./list/item[not(@display='hidden')]" mode="simpleitemlink"/>
			</ul>
		</xsl:if>
	</li>
</xsl:template>


<xsl:template match="item" mode="simpleitemlink">

	<li><a href="{concat(./../../@mainwu,'#',./@weburl)}"><xsl:value-of select="./titre"/></a></li>

</xsl:template>

	