In my XML I have the following:
someResult
Use:
ancestor::c[1]/@something
This selects the attribute named something of the first (from the current node upwards) ancestor named c.
something
c