Hi,
 
I'm trying to test XPath 3.0 math functions but I'm getting the Unknown system function error:
  

String strXpath = "pow(2,2)";
Processor proc =

new Processor(false);
XPathCompiler xpath = proc.newXPathCompiler();
DocumentBuilder docBuild = proc.newDocumentBuilder();
docBuild.setLineNumbering(
true);
docBuild.setWhitespaceStrippingPolicy(WhitespaceStrippingPolicy.
ALL);
XdmNode source = docBuild.build (
new StreamSource( new StringReader (strXML)));
XPathSelector selector = xpath.compile(strXpath).load();
selector.setContextItem(source);
XdmValue result = selector.evaluate();
Returning :
net.sf.saxon.s9api.SaxonApiException: Unknown system function pow()
 
I'm using my licensed version of SaxonPE 9.4.
 
It seems that by default the compiler is using XPath 2.0, is there any settings to alter in order to use the 3.0 extensions ?
 
Thanks in advance and best regards.
Andrea