Skip to content

Commit

Permalink
Merge pull request #139 from ndw/go-first
Browse files Browse the repository at this point in the history
Resolve preferentially against the JAR file
  • Loading branch information
ndw authored Sep 14, 2019
2 parents f26b6f1 + 67de7e4 commit b836814
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dependencies {
compile (
[group: 'net.sf.saxon', name: 'Saxon-HE', version: saxonVersion],
[group: 'org.relaxng', name: 'jing', version: '20181222' ],
[group: 'org.xmlresolver', name: 'xmlresolver', version: '1.0.3'],
[group: 'org.xmlresolver', name: 'xmlresolver', version: '1.0.4'],
[group: 'com.xmlcalabash', name: 'xmlcalabash', version: xmlCalabashVersion],
[group: 'com.xmlcalabash', name: 'xmlcalabash1-gradle', version: '1.3.5'],

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=2.3.15
version=2.3.16
saxonVersion=9.9.1-4
xmlCalabashVersion=1.1.27-99
resourcesVersion=2.0.0
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/docbook/XSLT20.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,10 @@ private class DocBookResolver extends Resolver {

@Override
public Source resolve(String href, String base) throws TransformerException {
// We go last
Source src = nextResolver.resolve(href, base);
// We go first
Source src = resolver.resolve(href, base);
if (src == null) {
return resolver.resolve(href, base);
return nextResolver.resolve(href, base);
} else {
return src;
}
Expand Down

0 comments on commit b836814

Please sign in to comment.