xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sb...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xml/dtm/ref DTMManagerDefault.java
Date Mon, 05 Nov 2001 20:30:46 GMT
sboag       01/11/05 12:30:46

  Modified:    java/src/org/apache/xml/dtm/ref DTMManagerDefault.java
  Log:
  Don't set the ErrorHandler if it is already set.
  
  Revision  Changes    Path
  1.29      +4 -2      xml-xalan/java/src/org/apache/xml/dtm/ref/DTMManagerDefault.java
  
  Index: DTMManagerDefault.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/dtm/ref/DTMManagerDefault.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- DTMManagerDefault.java	2001/11/02 21:02:15	1.28
  +++ DTMManagerDefault.java	2001/11/05 20:30:46	1.29
  @@ -303,7 +303,8 @@
               return dtm;
             }
   
  -          reader.setDTDHandler(dtm);
  +          if(null == reader.getErrorHandler())
  +            reader.setDTDHandler(dtm);
             reader.setErrorHandler(dtm);
   
             try
  @@ -340,7 +341,8 @@
             // not incremental
             reader.setContentHandler(dtm);
             reader.setDTDHandler(dtm);
  -          reader.setErrorHandler(dtm);
  +          if(null == reader.getErrorHandler())
  +            reader.setDTDHandler(dtm);
   
             try
             {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message