aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/apps
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-06-20 05:15:40 +0000
committerGlen Mazza <gmazza@apache.org>2004-06-20 05:15:40 +0000
commit8c0097a948c3bf27caec924b3006036d249e8f8d (patch)
treec0d3e68d267c01ee03df9c41655b56d806e24fbc /src/java/org/apache/fop/apps
parentb7326926ad01239cbe89e64bf76d7ccc0cfb78cf (diff)
downloadxmlgraphics-fop-8c0097a948c3bf27caec924b3006036d249e8f8d.tar.gz
xmlgraphics-fop-8c0097a948c3bf27caec924b3006036d249e8f8d.zip
1. ProxyContentHandler no longer needed.
2. fo:repeatable-page-master-reference's ValidateChildNode() implemented. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197738 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/apps')
-rw-r--r--src/java/org/apache/fop/apps/Driver.java29
1 files changed, 4 insertions, 25 deletions
diff --git a/src/java/org/apache/fop/apps/Driver.java b/src/java/org/apache/fop/apps/Driver.java
index a5376877c..7b0cece47 100644
--- a/src/java/org/apache/fop/apps/Driver.java
+++ b/src/java/org/apache/fop/apps/Driver.java
@@ -30,20 +30,16 @@ import org.apache.fop.render.mif.MIFHandler;
import org.apache.fop.render.rtf.RTFHandler;
import org.apache.fop.tools.DocumentInputSource;
import org.apache.fop.tools.DocumentReader;
-import org.apache.fop.tools.ProxyContentHandler;
import org.apache.commons.logging.impl.SimpleLog;
import org.apache.commons.logging.Log;
-// DOM
-/* org.w3c.dom.Document is not imported to reduce confusion with
- org.apache.fop.control.Document */
-
-// SAX
+// XML
import org.xml.sax.ContentHandler;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
+import org.w3c.dom.Document;
// Java
import java.io.IOException;
@@ -483,24 +479,7 @@ public class Driver {
}
treeBuilder.setFOInputHandler(foInputHandler);
-
- return new ProxyContentHandler(treeBuilder) {
-
- public void startDocument() throws SAXException {
- if (foInputHandler instanceof FOTreeHandler) {
- FOTreeHandler foTreeHandler = (FOTreeHandler)foInputHandler;
- }
- super.startDocument();
- }
-
- public void endDocument() throws SAXException {
- super.endDocument();
- if (foInputHandler instanceof FOTreeHandler) {
- FOTreeHandler foTreeHandler = (FOTreeHandler)foInputHandler;
- }
- }
-
- };
+ return treeBuilder;
}
/**
@@ -564,7 +543,7 @@ public class Driver {
* @param document the DOM document to read from
* @throws FOPException if anything goes wrong.
*/
- public synchronized void render(org.w3c.dom.Document document)
+ public synchronized void render(Document document)
throws FOPException {
DocumentInputSource source = new DocumentInputSource(document);
DocumentReader reader = new DocumentReader();