[Mathieu Malaterre]
I had a go at this, using the Debian fop git repository from
<URL: https://salsa.debian.org/java-team/fop.git >.
The patch applied with minimal manual work (two files had changed slightly),
but the code do not build. This is the build failure:
[javac] /home/pere/src/debian/fop/src/java/org/apache/fop/servlet/FopServlet.java:99: error: cannot find symbol
[javac] transFactory.setAttribute(javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD, "");
[javac] ^
[javac] symbol: variable ACCESS_EXTERNAL_DTD
[javac] location: class XMLConstants
[javac] /home/pere/src/debian/fop/src/java/org/apache/fop/servlet/FopServlet.java:100: error: cannot find symbol
[javac] transFactory.setAttribute(javax.xml.XMLConstants.ACCESS_EXTERNAL_STYLESHEET, "");
[javac] ^
[javac] symbol: variable ACCESS_EXTERNAL_STYLESHEET
[javac] location: class XMLConstants
I see from <URL: https://docs.oracle.com/javase/tutorial/jaxp/properties/properties.html >
these were new in JAXP 1.5, but fail to understand why they are not available when
building with javac in jdk 10. :(
Any ideas. My refreshed patch is attached. Add it to debian/patches/ and list it in series
to give it a go yourself.