Skip to content
Snippets Groups Projects
Commit bcecfb4a authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- try to use newInstance of TransformerFactory with specified Factory

parent a534f181
No related branches found
No related tags found
No related merge requests found
......@@ -185,13 +185,14 @@ public class SLUBTechnicalMetadataExtractorMediaConchPlugin implements MDExtract
// Use a Transformer for output
TransformerFactory tFactory;
try {
tFactory = TransformerFactory.newInstance();
tFactory = TransformerFactory.newInstance("com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl", ClassLoader.getPlatformClassLoader());
//System.out.println("Factory module name:" + tFactory.getClass().getModule().getName());
//tFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
//tFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
//tFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_STYLESHEET, "");
//tFactory.setFeature(XMLConstants.USE_CATALOG, false);
System.out.println(System.getProperty("javax.xml.transform.TransformerFactory"));
System.out.println("transformerFactory:" + System.getProperty("javax.xml.transform.TransformerFactory"));
try {
System.out.println("stylesource=" + stylesource);
assert (!stylesource.isEmpty());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment