morten 01/06/08 05:12:56
Modified: java/src/org/apache/xalan/xsltc/compiler Parser.java
java/src/org/apache/xalan/xsltc/runtime DefaultRun.java
Log:
Added two lines of code to explicitly set the feature
"http://xml.org/sax/features/namespaces" of the SAXParser to "true".
The default is "true" but xerces seems to set it to "false", and this
caused some problems for our Stylesheet and XML doc parsers (which are
both using SAX2).
Submitted by: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
Revision Changes Path
1.9 +2 -1
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Parser.java
Index: Parser.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Parser.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Parser.java 2001/06/06 17:48:56 1.8
+++ Parser.java 2001/06/08 12:12:45 1.9
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: Parser.java,v 1.8 2001/06/06 17:48:56 tmiller Exp $
+ * @(#)$Id: Parser.java,v 1.9 2001/06/08 12:12:45 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -373,6 +373,7 @@
try {
// Create a SAX parser and get the XMLReader object it uses
final SAXParserFactory factory = SAXParserFactory.newInstance();
+ factory.setFeature("http://xml.org/sax/features/namespaces",true);
final SAXParser parser = factory.newSAXParser();
final XMLReader reader = parser.getXMLReader();
1.6 +2 -1
xml-xalan/java/src/org/apache/xalan/xsltc/runtime/DefaultRun.java
Index: DefaultRun.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/DefaultRun.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- DefaultRun.java 2001/05/22 17:27:16 1.5
+++ DefaultRun.java 2001/06/08 12:12:53 1.6
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: DefaultRun.java,v 1.5 2001/05/22 17:27:16 morten Exp $
+ * @(#)$Id: DefaultRun.java,v 1.6 2001/06/08 12:12:53 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -126,6 +126,7 @@
// Create a SAX parser and get the XMLReader object it uses
final SAXParserFactory factory = SAXParserFactory.newInstance();
+ factory.setFeature("http://xml.org/sax/features/namespaces",true);
final SAXParser parser = factory.newSAXParser();
final XMLReader reader = parser.getXMLReader();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]