Use variable in xpath

answer here : Unable to use dynamic Xpath