xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwi...@apache.org
Subject cvs commit: xml-xerces/java/src/org/apache/xerces/jaxp SAXParserImpl.java
Date Tue, 13 Feb 2001 03:27:58 GMT
edwingo     01/02/12 19:27:58

  Modified:    java/src/org/apache/xerces/jaxp SAXParserImpl.java
  Log:
  Fix "namespaceAware" attribute
  
  Revision  Changes    Path
  1.5       +8 -7      xml-xerces/java/src/org/apache/xerces/jaxp/SAXParserImpl.java
  
  Index: SAXParserImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/jaxp/SAXParserImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SAXParserImpl.java	2001/02/03 00:28:59	1.4
  +++ SAXParserImpl.java	2001/02/13 03:27:57	1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: SAXParserImpl.java,v 1.4 2001/02/03 00:28:59 edwingo Exp $
  + * $Id: SAXParserImpl.java,v 1.5 2001/02/13 03:27:57 edwingo Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -78,7 +78,7 @@
   /**
    * @author Rajiv Mordani
    * @author Edwin Goei
  - * @version $Revision: 1.4 $
  + * @version $Revision: 1.5 $
    */
   
   /**
  @@ -120,11 +120,12 @@
           // Allow SAX parser to use a different ErrorHandler if it wants to
           xmlReader.setFeature(validation, validating);
   
  -        if (spf.isNamespaceAware()) {
  -            namespaceAware = true;
  -	    // XXX default value of namespaceAware conflicts with SAX2
  -	    // namespaces feature so do nothing for now
  -        }
  +        // "namespaceAware" == SAX Namespaces feature
  +        // Note: there is a compatibility problem here with default values:
  +        // JAXP default is false while SAX 2 default is true!
  +        namespaceAware = spf.isNamespaceAware();
  +        String namespaces = "http://xml.org/sax/features/namespaces";
  +        xmlReader.setFeature(namespaces, namespaceAware);
   
           setFeatures(features);
       }
  
  
  

Mime
View raw message