I have been working on getting the left nav to have the accordian menu effect. I have almost got it figured out but i cannot get the subcategories to accept the new tame class created. Below is my html code of what the site looks like.
HTML CODE:
__________________________________________________ _____________
<div class="leftNav" id="categories">
<ul class="tame">
<li class="tame"><a href="c-3-door-guards.aspx">Door Guards</a></li>
<li class="tame"><a href="c-25-safety-barriers.aspx">Safety Barriers</a></li>
<li class="tame"><a href="c-13-guard-rails.aspx" style="font-weight:bold">Guard Rails</a>
<ul class="tameTWO">
<li class="tame">**<a href="c-23-guard-rails.aspx">Guard Rails</a></li>
<li class="tame">**<a href="c-30-removable-guard-rail-and-gates.aspx">Removable Guard Rail and Gates</a></li>
<li class="tame">**<a href="c-16-mounting-post-44-double-rail.aspx">Mounting Post 44" (Double Rail)</a></li>
<li class="tame">**<a href="c-15-mounting-post-18-single-rail.aspx">Mounting Post 18" (Single Rail)</a></li>
<li class="tame">**<a href="c-14-guard-rail-accessories.aspx">Guard Rail Accessories</a></li>
</ul>
</li>
__________________________________________________ _____________
Notice that the sub categories still read from the original tame class and not the tameTWO class.
Here is the XML code that i have for the site.
XML CODE
__________________________________________________ _____________
<xsl:template match="Entity">
<xsl:param name="prefix"></xsl:param>
<xsl:param name="eName" select="aspdnsf:GetMLValue(Name)" />
<li class="tame">
<xsl:value-of select="$prefix" />
<xsl:if test="number(ParentEntityID) != 0">
</xsl:if>
<a href="{concat('c-',EntityID,'-',SEName,'.aspx')}">
<xsl:if test="EntityID = $CategoryID or descendant::Entity/EntityID = $CategoryID">
<xsl:attribute name="style">font-weight:bold</xsl:attribute>
</xsl:if>
<xsl:value-of select="$eName"/>
</a>
<xsl:if test="count(child::Entity)>0 and (EntityID = $CategoryID or descendant::Entity/EntityID = $CategoryID)">
<ul class="tameTWO">
<xsl:apply-templates select="Entity">
<xsl:with-param name="prefix" select="concat($prefix, '**')"/>
</xsl:apply-templates>
</ul>
</xsl:if>
</li>
</xsl:template>
__________________________________________________ ______________
For some reason i cannot get the XML to reference the other tame so the leftNav looks correct. Is there any help out there?