hxt-xpath: generalize getFromNodeSet