Mohammad, I think I'm missing some context here. It seems you are evaluating XPath code from Java code. Is that right? What is the reason? Typically, with Orbeon Forms, there is no need to write Java code. And why do you need to reference variables? Are you the one declaring those variables? If not, where do they come from?
Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet