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

- works locally, but not in Rosetta, unknown reason :(

parent 79ed730a
Branches
Tags
No related merge requests found
......@@ -23,7 +23,6 @@ import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import javax.xml.XMLConstants;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Transformer;
......@@ -187,9 +186,12 @@ public class SLUBTechnicalMetadataExtractorMediaConchPlugin implements MDExtract
TransformerFactory tFactory;
try {
tFactory = TransformerFactory.newInstance();
System.out.println("Factory module name:" + tFactory.getClass().getModule().getName());
tFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
tFactory.setFeature(XMLConstants.USE_CATALOG, false);
//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"));
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