parent path

Subject: parent path
From: "Mattias Konradsson" <preacher@xxxxxxxxxxx>
Date: Thu, 4 Feb 1999 15:00:03 +0100
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">
	<xsl:attribute name="id">

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

	<xsl:apply-templates />

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:

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