Michele Vivoda created JXPATH-204: ------------------------------------- Summary: Empty NodeSet passed to custom function when using union '|' Key: JXPATH-204 URL: https://issues.apache.org/jira/browse/JXPATH-204 Project: Commons JXPath Issue Type: Bug Reporter: Michele Vivoda
A custom function receives an empty NodeSet when union operator is used, this happens because [org.apache.commons.jxpath.ri.axes.UnionContext] is sort of lazy, my fix is to extend getValue in [UnionContext] and calculate the lazy part: {noformat} @Override public Object getValue() { getContextNodeList(); return super.getValue(); }{noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)