Skip to content

Commit

Permalink
add setSystemId for enabling relative XSLT imports, fixes #9 #33
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Aug 8, 2019
1 parent 2589608 commit 093baef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/pl/psnc/dl/ege/MultiXslConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ private File performStandardTransformation(InputStream inputStream)
throw ex;
}
}
XsltExecutable exec = comp.compile(new StreamSource(is));
StreamSource xslSource = new StreamSource(is);
xslSource.setSystemId(xslUri.toString());
XsltExecutable exec = comp.compile(xslSource);
XsltTransformer transformer = exec.load();
DocumentBuilder documentBuilder = proc.newDocumentBuilder();
documentBuilder.setDTDValidation(false);
Expand Down

0 comments on commit 093baef

Please sign in to comment.