fix
This commit is contained in:
parent
64daa568b9
commit
c0d0c1f39a
1 changed files with 8 additions and 5 deletions
|
@ -111,13 +111,16 @@ public class TransformerUtil {
|
||||||
transformerFactory = TransformerFactory.newInstance();
|
transformerFactory = TransformerFactory.newInstance();
|
||||||
try {
|
try {
|
||||||
transformerFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
|
transformerFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
|
||||||
} catch (TransformerConfigurationException e) {
|
} catch (TransformerConfigurationException ignored) {
|
||||||
throw new RuntimeException(e);
|
// some platforms don't support this. For example our testsuite pulls Selenium which requires Xalan 2.7.1
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
|
transformerFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
|
||||||
|
|
||||||
transformerFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
|
transformerFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_STYLESHEET, "");
|
||||||
|
} catch (Exception ignored) {
|
||||||
transformerFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_STYLESHEET, "");
|
// some platforms don't support this. For example our testsuite pulls Selenium which requires Xalan 2.7.1
|
||||||
|
}
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
if (tccl_jaxp) {
|
if (tccl_jaxp) {
|
||||||
|
|
Loading…
Reference in a new issue