[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: 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
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member