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

RE: parent attribute? aaargh

Subject: RE: parent attribute? aaargh
From: David Schach <davidsch@xxxxxxxxxxxxx>
Date: Mon, 8 Feb 1999 08:57:09 -0800
xsl get parent attribute
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:  http://www.mulberrytech.com/xsl/xsl-list


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


Current Thread

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.