Hi Andreas
Asankha,

What is actually the reason for having our own stringValueOf method
and not relying on the stringValueOf method of BaseXPath?
I checked in the history of SVN, but I cannot seem to locate the origin of the method to trace back.. however, the BaseXPath method is defined as:

"/The string-value of the expression is determined per the string(..) core function defined in the XPath specification. This means that an expression that selects zero nodes will return the empty string, while an expression that selects one-or-more nodes will return the string-value of the first node./"

In the overridden case, we create the String representation as the concatenation of the text values of multi-node results. I think that is useful to check for existence of a value etc

cheers
asankha

--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com




Reply via email to