On 11/21/05, Roy, Ansuman <[EMAIL PROTECTED]> wrote:
> many many thanks solprovider
> your solution solved my query but the second solution is nt working
> i.e. the hyperlink to the new page created in not forming on the parent page
>
> how to go about and do it??

Sorry.  I developed and tested using my revised menu.xsl.  The default
menu.xsl is more difficult to extend.  Where you want the menu, add
this line:
 <xsl:apply-templates select="xhtml:[EMAIL PROTECTED] =
'menu']//xhtml:div[starts-with(@class,'menuitem-selected-')]/../xhtml:div[starts-with(@class,
'menublock-')]" mode="onelevel"/>

Add these templates to your XSL:
<xsl:template match="xhtml:div" mode="onelevel">
<xsl:apply-templates select="xhtml:div/xhtml:a" mode="onelevel"/>
</xsl:template>
<xsl:template match="xhtml:a" mode="onelevel">
<div class="onelevel"><xsl:apply-templates select="."/></div>
</xsl:template>

Add some CSS for the new menu:
.onelevel { background-color: #CCFFCC; }
.onelevel a {
    text-decoration: none;
    color: #FF6666;
}

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to