[XSL-LIST Mailing List Archive Home]
Re: [xsl] First ancestor with a specific attribute
Subject: Re: [xsl] First ancestor with a specific attribute|
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 01 Jul 2011 14:02:55 +0200
Jacobus Reyneke wrote:
I'm having a blonde moment here and I don't use xslt everyday. I'm
simply trying to get the first ancestor of a node that contains a
My attempt: select="ancestor::node()[@name!=null]/@name"
Desired effect: return the first ancestor that has a 'name' element.
Martin Honnen --- MVP Data Platform Development