Permalink
Browse files

Attempt to resolve issue #66, let unknown schemes pass through to the…

… URI resolver
  • Loading branch information...
ndw committed Jan 29, 2013
1 parent dae9687 commit 365a5abacc3a07b829183ea7b55cfd579523be76
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/com/xmlcalabash/util/XProcURIResolver.java
@@ -110,13 +110,15 @@ public Source resolve(String href, String base) throws TransformerException {
}
runtime.finest(null,null,"Resolved again: " + absoluteURI);
-
} catch (MalformedURLException mue) {
- throw new XProcException(mue);
+ // Ignore this. We want to give the URIResolver a chance to deal with
+ // schemes that the URL class might not know anything about...
}
- runtime.finest(null,null,"uriResolver.resolve(" + absoluteURI.toString() + "," + base + ")");
- Source resolved = uriResolver.resolve(absoluteURI.toString(), base);
+ String resolvedUri = absoluteURI == null ? href : absoluteURI.toString();
+
+ runtime.finest(null,null,"uriResolver.resolve(" + href + "," + base + ")");
+ Source resolved = uriResolver.resolve(href, base);
// FIXME: This is a grotesque hack. This is wrong. Wrong. Wrong.
// To support caching, XMLResolver (xmlresolver.org) returns a Source even when it hasn't

0 comments on commit 365a5ab

Please sign in to comment.