|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Optimization using keys
Antsnio Mota wrote:
Yes, it is global. My intention even was to do Hi, I haven't followed the whole thread (was on a little vacation...), but it seems like you want something like the following. It looks like you have your current focused node in a variable, so you can apply-templates on it. When you match it you can apply-templates on its parent in a mode to get a view of the current menu state. ... <div class="menu"> <xsl:apply-templates select="$snode" mode="start-menu"/> </div> ... <xsl:template match="*" mode="start-menu"> <xsl:apply-templates select="parent::*" mode="menu"/> </xsl:template> <xsl:template match="*" mode="menu"> <xsl:apply-templates mode="menu"/> </xsl:template> Then use the templates I provided in the beginning of your thread (if I remember correctly) on dealing with hierarchical menus. best, -Rob
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








