Browse Source

FOP-2668: Fix Java 6

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1769968 13f79535-47bb-0310-9956-ffa450edef68
pull/57/head
Simon Steiner 7 years ago
parent
commit
f177f8c029
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java

+ 2
- 3
fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java View File

@@ -30,7 +30,6 @@ import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.xml.XMLConstants;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
@@ -97,8 +96,8 @@ public class FopServlet extends HttpServlet {
public void init() throws ServletException {
this.uriResolver = new ServletContextURIResolver(getServletContext());
this.transFactory = TransformerFactory.newInstance();
transFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
transFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_STYLESHEET, "");
transFactory.setAttribute("http://javax.xml.XMLConstants/property/accessExternalDTD", "");
transFactory.setAttribute("http://javax.xml.XMLConstants/property/accessExternalStylesheet", "");
this.transFactory.setURIResolver(this.uriResolver);
//Configure FopFactory as desired
// TODO: Double check this behaves properly!!

Loading…
Cancel
Save