xsl-list
[Top] [All Lists]

Re: XPath: ancestor:: axis vs. use of ../../../ etc.

2003-03-07 16:03:07
[ 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



<Prev in Thread] Current Thread [Next in Thread>