You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by ga...@apache.org on 2001/05/18 23:29:19 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/transformer ResultTreeHandler.java

garyp       01/05/18 14:29:19

  Modified:    java/src/org/apache/xalan/transformer ResultTreeHandler.java
  Log:
  Resolve bug 1330 <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1330>.
  setContentHandler failed to also reset m_lexicalHandler if the ContentHandler
  was also a LexicalHandler.  This caused the old LexicalHandler to be used which
  was pointing to a previous result tree.
  
  Revision  Changes    Path
  1.38      +5 -0      xml-xalan/java/src/org/apache/xalan/transformer/ResultTreeHandler.java
  
  Index: ResultTreeHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/transformer/ResultTreeHandler.java,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- ResultTreeHandler.java	2001/03/28 04:41:04	1.37
  +++ ResultTreeHandler.java	2001/05/18 21:29:18	1.38
  @@ -1109,6 +1109,11 @@
       m_startElement.setContentHandler(m_contentHandler);
       m_startDoc.setContentHandler(m_contentHandler);
   
  +    if (m_contentHandler instanceof LexicalHandler)
  +      m_lexicalHandler = (LexicalHandler) m_contentHandler;
  +    else
  +      m_lexicalHandler = null;
  +
       reInitEvents();
     }
   
  
  
  

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