To move up the tree you use ".." per level ie in this instance probably
select="../../../@something"
You can also select an ancestor node by name (approx)
select="ancestor::c[1]/@something"
See http://www.stackoverflow.com/questions/3672992 for further examples