Skip to content

Commit

Permalink
Attempt to workaround issue #94, make sure output-base-uri is handled…
Browse files Browse the repository at this point in the history
… correctly
  • Loading branch information
ndw committed Mar 26, 2013
1 parent 2e4364a commit 57ebb90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/com/xmlcalabash/library/XSLT.java
Expand Up @@ -223,6 +223,12 @@ public void run() throws SaxonApiException {

if (outputBaseURI != null) {
transformer.setBaseOutputURI(outputBaseURI);
// The following hack works around https://saxonica.plan.io/issues/1724
try {
result.setBaseURI(new URI(outputBaseURI));
} catch (URISyntaxException use) {
// whatever
}
}

transformer.setSchemaValidationMode(ValidationMode.DEFAULT);
Expand Down

0 comments on commit 57ebb90

Please sign in to comment.