aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2016-11-16 12:44:02 +0000
committerSimon Steiner <ssteiner@apache.org>2016-11-16 12:44:02 +0000
commite6078323b34165ba1b237ea9456c5ec5d317f7e3 (patch)
tree13c1ce003c4f1d468e202ed1b43de9a1da143aaa /fop-core
parent6e63f99fb2fc07f9a9690ce14e8f99cb045b6d4a (diff)
downloadxmlgraphics-fop-e6078323b34165ba1b237ea9456c5ec5d317f7e3.tar.gz
xmlgraphics-fop-e6078323b34165ba1b237ea9456c5ec5d317f7e3.zip
FOP-2668: Fix Java 6
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1769968 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core')
-rw-r--r--fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java b/fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java
index 0250415f2..8d2f0c4cd 100644
--- a/fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java
+++ b/fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java
@@ -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!!