jkesselm    01/11/29 11:21:02

  Modified:    java/src/org/apache/xml/dtm/ref DTMNodeProxy.java
  Log:
  Minor tweaks
  
  Revision  Changes    Path
  1.11      +6 -3      
xml-xalan/java/src/org/apache/xml/dtm/ref/DTMNodeProxy.java
  
  Index: DTMNodeProxy.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xml/dtm/ref/DTMNodeProxy.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DTMNodeProxy.java 2001/11/15 20:49:31     1.10
  +++ DTMNodeProxy.java 2001/11/29 19:21:02     1.11
  @@ -580,8 +580,10 @@
       return implementation;
     }
   
  -  /**
  -   *
  +  /** This is a bit of a problem in DTM, since a DTM may be a Document
  +   * Fragment and hence not have a clear-cut Document Element. We can
  +   * make it work in some cases but would that be confusing for others?
  +   * 
      * @return
      * @see org.w3c.dom.Document
      */
  @@ -1323,7 +1325,8 @@
        */
       public boolean hasFeature(String feature,String version)
       {
  -      if( ("core".equals(feature) || "xml".equals(feature)) && 
  +      if( ("CORE".equals(feature.toUpperCase()) || 
"XML".equals(feature.toUpperCase())) 
  +                                     && 
             ("1.0".equals(version) || "2.0".equals(version))
             )
           return true;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to