create xpath context function

create xpath context function