Skip to content

Commit

Permalink
Preserve base URI of compiled schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dmj committed Jan 2, 2022
1 parent 5f95939 commit caaf53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/name/dmaus/schxslt/Schematron.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public Schematron (final Source schematron, final String phase, final Transforme

Document stylesheet = compile(factory, schematron, phase, options);
try {
Templates templates = factory.newTemplates(new DOMSource(stylesheet));
Templates templates = factory.newTemplates(new DOMSource(stylesheet, stylesheet.getDocumentURI()));
validator = new Validator(templates);
} catch (TransformerException e) {
throw new SchematronException("Unable to create Validator instance", e);
Expand Down

0 comments on commit caaf53d

Please sign in to comment.