From ab328e83fc37768d06e3f2251921bdcef3d54bd9 Mon Sep 17 00:00:00 2001 From: fotis Date: Fri, 3 Dec 1999 12:27:12 +0000 Subject: [PATCH] sets Xerces-J as default sax parser git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193267 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/apps/AWTCommandLine.java | 8 +++++++- src/org/apache/fop/apps/CommandLine.java | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/org/apache/fop/apps/AWTCommandLine.java b/src/org/apache/fop/apps/AWTCommandLine.java index ee1e1c25a..b99a0e35a 100644 --- a/src/org/apache/fop/apps/AWTCommandLine.java +++ b/src/org/apache/fop/apps/AWTCommandLine.java @@ -57,12 +57,18 @@ public class AWTCommandLine { frame.setVisible(true); } + /** + * creates a SAX parser, using the value of org.xml.sax.parser + * defaulting to org.apache.xerces.parsers.SAXParser + * + * @return the created SAX parser + */ static Parser createParser() { String parserClassName = System.getProperty("org.xml.sax.parser"); if (parserClassName == null) { - parserClassName = "com.jclark.xml.sax.Driver"; + parserClassName = "org.apache.xerces.parsers.SAXParser"; } System.err.println("using SAX parser " + parserClassName); diff --git a/src/org/apache/fop/apps/CommandLine.java b/src/org/apache/fop/apps/CommandLine.java index 67101ccb3..b6622bd7b 100644 --- a/src/org/apache/fop/apps/CommandLine.java +++ b/src/org/apache/fop/apps/CommandLine.java @@ -76,7 +76,7 @@ public class CommandLine { /** * creates a SAX parser, using the value of org.xml.sax.parser - * defaulting to com.jclark.xml.sax.Driver + * defaulting to org.apache.xerces.parsers.SAXParser * * @return the created SAX parser */ @@ -84,7 +84,7 @@ public class CommandLine { String parserClassName = System.getProperty("org.xml.sax.parser"); if (parserClassName == null) { - parserClassName = "com.jclark.xml.sax.Driver"; + parserClassName = "org.apache.xerces.parsers.SAXParser"; } System.err.println("using SAX parser " + parserClassName); -- 2.39.5