I think you want to do is select the "parent" of the matching select. I don't have my xPath notes with me at the moment, but I would highly suggest the following tools: http://topxml.com/xsl/XPathRef.asp http://www.bubasoft.net/xpathbuilder/Xpathbuilder2.aspx