scale results xpath function