modified xpath query for referenced node