[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] First ancestor with a specific attribute
Subject: [xsl] First ancestor with a specific attribute From: Jacobus Reyneke <jacobusreyneke@xxxxxxxxx> Date: Fri, 1 Jul 2011 13:56:53 +0200 |
Hi, 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 specific attribute. My attempt: select="ancestor::node()[@name!=null]/@name" Desired effect: return the first ancestor that has a 'name' element. My bit of xpath returns nothing, even if some of the ancestor nodes contain a 'name' attribute. Best, Jacobus
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Reading multiple document, Jacobus Reyneke | Thread | Re: [xsl] First ancestor with a spe, Martin Honnen |
Re: [xsl] Reading multiple document, Jacobus Reyneke | Date | Re: [xsl] First ancestor with a spe, Martin Honnen |
Month |