xsl-list
[Top] [All Lists]

Re: Inheriting an attribute from first ancestor that defines it

2002-10-26 03:44:51
Wow! 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