125126127128129130131132133134135
result = dynamicXPath.execute(xctxt, contextNode, xctxt.getNamespaceContext()).num(); } catch (TransformerException e) { xctxt.popCurrentNode(); xctxt.popContextNodeList(); return Double.NaN; } xctxt.popCurrentNode();
135136137138139140141142143144145
if (result > maxValue) maxValue = result; } xctxt.popContextNodeList(); return maxValue; } /**
206207208209210211212213214215216
216217218219220221222223224225226
if (result < minValue) minValue = result; } xctxt.popContextNodeList(); return minValue; } /**
286287288289290291292293294295296
296297298299300301302303304305306
sum = sum + result; } xctxt.popContextNodeList(); return sum; } /** * The dyn:map function evaluates the expression passed as the second argument for
427428429430431432433434435436437
} } catch (Exception e) { xctxt.popCurrentNode(); xctxt.popContextNodeList(); return new NodeSet(); } xctxt.popCurrentNode();
435436437438439440441442443444445
xctxt.popCurrentNode(); } xctxt.popContextNodeList(); return resultSet; } /** * The dyn:evaluate function evaluates a string as an XPath expression and returns
575576577578579580581582583584585
} } else { xctxt.popCurrentNode(); xctxt.popContextNodeList(); return new NodeSet(); } } catch (TransformerException e) {
582583584585586587588589590591592
} } catch (TransformerException e) { xctxt.popCurrentNode(); xctxt.popContextNodeList(); return new NodeSet(); } xctxt.popCurrentNode();