Upgrade Saxon to 11.4

This commit is contained in:
apenski 2022-11-08 08:32:11 +01:00
parent bf50b6ff49
commit 0281d94929
6 changed files with 84 additions and 87 deletions

View file

@ -49,7 +49,7 @@ import net.sf.saxon.s9api.XPathExecutable;
@Slf4j
class XPathBuilder implements Builder<XPathExecutable> {
private static final String[] IGNORED_PREFIXES = new String[] { "xsd", "saxon", "xsl", "xs" };
private static final String[] IGNORED_PREFIXES = new String[] { "xsd", "saxon", "xsl", "xs", "xml" };
private final String name;
@ -60,6 +60,10 @@ class XPathBuilder implements Builder<XPathExecutable> {
@Setter(AccessLevel.PACKAGE)
private Map<String, String> namespaces;
private static Result<XPathExecutable, String> createError(final String msg) {
return new Result<>(null, Collections.singletonList(msg));
}
Map<String, String> getNamespaces() {
if (this.namespaces == null) {
this.namespaces = new HashMap<>();
@ -69,7 +73,7 @@ class XPathBuilder implements Builder<XPathExecutable> {
/**
* Returns the xpath expression.
*
*
* @return xpath expression
*/
public String getXPath() {
@ -118,8 +122,4 @@ class XPathBuilder implements Builder<XPathExecutable> {
private String extractExpression() {
return this.executable.getUnderlyingExpression().getInternalExpression().toString();
}
private static Result<XPathExecutable, String> createError(final String msg) {
return new Result<>(null, Collections.singletonList(msg));
}
}