sboag       00/12/07 10:36:57

  Modified:    java/src/org/apache/xalan/transformer TransformerImpl.java
  Log:
  Do reset after transformation, so the transformer will be set up for
  another transformation.
  
  Revision  Changes    Path
  1.57      +4 -2      
xml-xalan/java/src/org/apache/xalan/transformer/TransformerImpl.java
  
  Index: TransformerImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/transformer/TransformerImpl.java,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- TransformerImpl.java      2000/12/06 05:53:05     1.56
  +++ TransformerImpl.java      2000/12/07 18:36:56     1.57
  @@ -702,11 +702,12 @@
     public void setOutputProperty(String name, String value)
       throws IllegalArgumentException
     {
  +    if(null == m_outputFormat)
  +      m_outputFormat = new OutputProperties(Method.XML);
  +
       if(!m_outputFormat.isLegalPropertyKey(name))
         throw new IllegalArgumentException("output property not recognized: 
"+name);
       
  -    if(null == m_outputFormat)
  -      m_outputFormat = new OutputProperties(Method.XML);
       m_outputFormat.setProperty(name, value);
     }
     
  @@ -1090,6 +1091,7 @@
         {
           m_resultTreeHandler.endDocument();
         }
  +      this.reset();
       }
       catch (Exception se)
       {
  
  
  

Reply via email to