Re: [xsl] First ancestor with a specific attribute

Subject: Re: [xsl] First ancestor with a specific attribute
From: Jacobus Reyneke <jacobusreyneke@xxxxxxxxx>
Date: Fri, 1 Jul 2011 14:18:02 +0200
That does the trick, thanks Martin!


> XSLT 2.0:
>  select="ancestor::*[exists(@name)][1]/@name"
>
>> Desired effect: return the first ancestor that has a 'name' element.
>
>
>
>        Martin Honnen --- MVP Data Platform Development
>        http://msmvps.com/blogs/martin_honnen/

Current Thread