keiron 02/04/22 06:23:20 Modified: src/org/apache/fop/apps Driver.java Log: synced with branch makes FOP running with any JAXP1.1 compliant parser Revision Changes Path 1.47 +7 -9 xml-fop/src/org/apache/fop/apps/Driver.java Index: Driver.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/apps/Driver.java,v retrieving revision 1.46 retrieving revision 1.47 diff -u -r1.46 -r1.47 --- Driver.java 11 Apr 2002 09:33:26 -0000 1.46 +++ Driver.java 22 Apr 2002 13:23:20 -0000 1.47 @@ -1,5 +1,5 @@ /* - * $Id: Driver.java,v 1.46 2002/04/11 09:33:26 keiron Exp $ + * $Id: Driver.java,v 1.47 2002/04/22 13:23:20 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -175,15 +175,13 @@ private FOUserAgent userAgent = null; public static final String getParserClassName() { - String parserClassName = null; - try { - parserClassName = System.getProperty("org.xml.sax.parser"); - } catch (SecurityException se) {} - - if (parserClassName == null) { - parserClassName = "org.apache.xerces.parsers.SAXParser"; + try { + return javax.xml.parsers.SAXParserFactory.newInstance().newSAXParser().getXMLReader().getClass().getName(); + } catch (javax.xml.parsers.ParserConfigurationException e) { + return null; + } catch (org.xml.sax.SAXException e) { + return null; } - return parserClassName; } /**
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]