Subject: Re: parent attribute? aaargh
From: Tyler Baker <tyler@xxxxxxxxxxx>
Date: Mon, 08 Feb 1999 10:44:48 -0500
|
Mattias Konradsson wrote:
> Sigh, this is getting ridiculous, ancestor() solved the problem of accessing
> the parent *but* I can't seem to get the attribute of the ancestor, I don't
> believe it !
>
> <xsl:value-of select="ancestor(submenu@id)" />
>
> Should work right? I've also tried a number of other patterns to no avail,
> am I overlooking something simple, is there a bug or is the Universe simply
> hellbent on preventing me from finishing this implementation? :P
Try:
<xsl:value-of select="ancestor(submenu)/@id"/>
Tyler
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|