mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
Upgrade Saxon to 11.4
This commit is contained in:
parent
bf50b6ff49
commit
0281d94929
6 changed files with 84 additions and 87 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue