Forgive me if I seem obtuse, but why would you want to use XPath functions (that's what serialize, concat, and count are) when there are perfectly good Java alternatives that will be so much easier to use. Java is, after all, the language used in executeScript. Serialize is just toString(), concat...