That is not possible. But there are some alternatives.
You could use a helper object that keeps the information you want to use in your Xpath for example.