mrglavas 2004/07/22 14:15:20 Modified: java/src/org/apache/xerces/parsers AbstractSAXParser.java XML11Configuration.java Added: java/src/org/apache/xerces/parsers XML11Configurable.java Log: Adding an interface to allow parser configurations which aren't
subclasses of XML11Configuration to be recognized as supporting XML 1.1 by the SAX parser. Revision Changes Path 1.56 +2 -2 xml-xerces/java/src/org/apache/xerces/parsers/AbstractSAXParser.java Index: AbstractSAXParser.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/AbstractSAXParser.java,v retrieving revision 1.55 retrieving revision 1.56 diff -u -r1.55 -r1.56 --- AbstractSAXParser.java 11 May 2004 01:06:55 -0000 1.55 +++ AbstractSAXParser.java 22 Jul 2004 21:15:20 -0000 1.56 @@ -1713,7 +1713,7 @@ // if (suffixLength == Constants.XML_11_FEATURE.length() && featureId.endsWith(Constants.XML_11_FEATURE)) { - return (fConfiguration instanceof XML11Configuration); + return (fConfiguration instanceof XML11Configurable); } // http://xml.org/sax/features/lexical-handler/parameter-entities 1.18 +2 -2 xml-xerces/java/src/org/apache/xerces/parsers/XML11Configuration.java Index: XML11Configuration.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/XML11Configuration.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- XML11Configuration.java 12 Apr 2004 21:56:02 -0000 1.17 +++ XML11Configuration.java 22 Jul 2004 21:15:20 -0000 1.18 @@ -73,7 +73,7 @@ * @version $Id$ */ public class XML11Configuration extends ParserConfigurationSettings - implements XMLPullParserConfiguration { + implements XMLPullParserConfiguration, XML11Configurable { // // Constants 1.1 xml-xerces/java/src/org/apache/xerces/parsers/XML11Configurable.java Index: XML11Configurable.java =================================================================== /* * Copyright 2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.xerces.parsers; /** * <p>An <code>XMLParserConfiguration</code> implements this interface * in order to indicate that it provides support for XML 1.1.</p> * * @author Michael Glavassevich, IBM * * @version $Id: XML11Configurable.java,v 1.1 2004/07/22 21:15:20 mrglavas Exp $ */ public interface XML11Configurable {} --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]