svn commit: r1769968 - /xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java

[email protected]
Newsgroups gmane.text.xml.fop.cvs
Message-ID <[email protected]>
Author: ssteiner
Date: Wed Nov 16 12:44:02 2016
New Revision: 1769968

URL: http://svn.apache.org/viewvc?rev=1769968&view=rev
Log:
FOP-2668: Fix Java 6

Modified:
    xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java

Modified: xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java?rev=1769968&r1=1769967&r2=1769968&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java (original)
+++ xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/servlet/FopServlet.java Wed Nov 16 12:44:02 2016
@@ -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 HttpServ
     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!!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.