RE: parent attribute? aaargh

Subject: RE: parent attribute? aaargh
From: David Schach <davidsch@xxxxxxxxxxxxx>
Date: Mon, 8 Feb 1999 08:57:09 -0800
You can get an attribute of an ancestor.  ancestor(*) is your parent so
ancestor(*)/@id is it's id attribute.  Alternatively, ancestor(*[@id]) is
the first ancestor element that has an id attribute. I hope that helps.

> -----Original Message-----
> From:	Mattias Konradsson [SMTP:preacher@xxxxxxxxxxx]
> Sent:	Monday, February 08, 1999 1:57 AM
> To:	xsl-list@xxxxxxxxxxxxxxxx
> Subject:	parent attribute? aaargh
> 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
> Mattias Konradsson
> Icon medialab
>  XSL-List info and archive:

 XSL-List info and archive:

Current Thread