git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194736
13f79535-47bb-0310-9956-
ffa450edef68
File xmlfile, xsltfile;
boolean useOldTransform = false;
+ boolean gotParser = false;
public XSLTInputHandler(File xmlfile, File xsltfile) {
this.xmlfile = xmlfile;
* overwrites the method of the super class to return the xmlfile
*/
public InputSource getInputSource() {
+ if(!gotParser) {
+ throw new IllegalStateException("The method getParser() must be called and the parser used when using XSLTInputHandler");
+ }
if (useOldTransform) {
try {
java.io.Writer writer;
*
*/
public XMLReader getParser() throws FOPException {
+ gotParser = true;
+
XMLReader result = null;
try {
// try trax first