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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] First ancestor with a spe, Martin Honnen | Thread | [xsl] Flat bullets to nested ul, Emma Burrows |
Re: [xsl] First ancestor with a spe, Martin Honnen | Date | [xsl] Flat bullets to nested ul, Emma Burrows |
Month |