Re: Inheriting an attribute from first ancestor that defines it2002-10-26 03:44:51Wow! Talk about responsive. Thank you both very much James and Michael.
Both solutions do exactly what I wanted.
Now I just have to figure out why:
(ancestor::*/@att)
selects elements in document order whereas
ancestor::*[(_at_)att]
selects them in reverse (which is what I'd expect).
Regards,
Sean
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
|
||||||||||||||||