You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sa...@apache.org on 2003/11/19 00:25:00 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/trax TransformerFactoryImpl.java
santiagopg 2003/11/18 15:25:00
Modified: java/src/org/apache/xalan/xsltc/trax
TransformerFactoryImpl.java
Log:
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.
Revision Changes Path
1.67 +10 -1 xml-xalan/java/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java
Index: TransformerFactoryImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- TransformerFactoryImpl.java 17 Nov 2003 20:01:59 -0000 1.66
+++ TransformerFactoryImpl.java 18 Nov 2003 23:25:00 -0000 1.67
@@ -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.
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org