I am using the xpathfunctionresolver to add my custom function into the xpath namespace. Most of the examples that I found on web makes use of myAdditionFuntion(2,3) where the functionresolver adds the two numbers and returns the double object.
I want my custom function myAdditionFunction(a,b) to return the two parameters provided a and b at expr.evaluate(doc);
String str = new String("ext:myAdditionFunction(a,b)"
That is instead of the output as a,b I am getting here the object details as a DTMNodeList.
Please tell me way to work around with DTMNodelist to retreive the text contents of the DTMNode. I would be grateful if you can provide me with any example other than adding double and returning double value.