Move namespace registration to execute_xpath_expr