Use Xerces as the default provider for property org.xml.sax.driver. Even though this property is set in XercesImpl.jar, it is sometimes undefined, which causes failures in the conf tests. More investigation is needed, but for now this patch fixes the problem.


git-svn-id: https://svn.apache.org/repos/asf/xalan/java/trunk@337758 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java b/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java
index dd24f36..c20c43a 100644
--- a/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java
+++ b/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java
@@ -130,6 +130,15 @@
     public final static String ENABLE_INLINING = "enable-inlining";
     public final static String INDENT_NUMBER = "indent-number";
     
+    static {
+        // If 'org.xml.sax.driver' not set, default to Xerces
+        String saxDriver = System.getProperty("org.xml.sax.driver");
+        if (saxDriver == null) {
+            System.setProperty("org.xml.sax.driver", 
+                               "org.apache.xerces.parsers.SAXParser");                              
+        }        
+    }
+    
     /**
      * This error listener is used only for this factory and is not passed to
      * the Templates or Transformer objects that we create.