I am exploring use of this library and found that if there is sub xpath expression, evaluation throws error.
e.g 1:
$(document).xpath("replace(replace('This is the test string','the',''), 'test', 'best')")
throws error
{
Code:"XPTY0004"
message:"Type is not appropriate for the context in which the expression occurs"
}
e.g 2:
$(document).xpath("contcat(concat('a', 'b'),'c')")
throws error
Code:"XPST0017"
message : Expanded QName and number of arguments in a function call do not match the name and arity of a function signature"