How to use the XBoolean function from xpath

Find comprehensive JavaScript xpath.XBoolean code examples handpicked from public code repositorys.

33
34
35
36
37
38
39
40
41
42
  functionNameExpr
) {
  const functionName = (typeof functionNameExpr === 'string') ? functionNameExpr : functionNameExpr.evaluate(xPathContext);
  const functionFound = xPathContext.functionResolver.getFunction(functionName) !== undefined;

  return new XPath.XBoolean(functionFound);
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/*
fork icon4
star icon7
watch icon3

+ 54 other calls in file