[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

parent path

Subject: parent path
From: "Mattias Konradsson" <preacher@xxxxxxxxxxx>
Date: Thu, 4 Feb 1999 15:00:03 +0100
xsl parent path
Uhh, I'm trying to do some recursive hierarchial menus and it's turning my
brain inside out :P Aaaanyway

What i need to do is to access each submenu that has a submenu as parent and
create an parent attribute set to the id of the parent,
I'd like to do something like this:

<xsl:template match="submenu">
<submenu>
	<xsl:attribute name="id">
		<xsl:eval>menuId();</xsl:eval>
</xsl:attribute>


	<xsl:attribute name="parent">
	<xsl:value-of select="submenu/." />
	</xsl:attribute>

	<xsl:apply-templates />
</submenu>

except submenu/. doesnt work of course for accessing the parent submenu, any
help would be really appreciated :)

--------
Mattias Konradsson
Icon medialab



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • parent path
    • Mattias Konradsson - Thu, 4 Feb 1999 15:00:03 +0100 <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.