Subject: Re: XPath: ancestor:: axis vs. use of ../../../ etc.
From: "Lars Nyman" <larsnyman@xxxxxxxxxxxxx>
Date: Fri, 7 Mar 2003 15:03:07 -0800
|
> [ I guess I thought the XPath would be more readable if
> I showed *by name* which element had the @name attribute
> vs. leaving it just at a long string of "../../../" ]
To make it explicit that it is a span-fill element that has/must have the
@name attribute, you can use
parent::*/parent::span-fill/@name
or
../parent::span-fill/@name
Lars
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|