You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@locus.apache.org on 2000/11/27 22:16:14 UTC

cvs commit: xml-xalan/src/org/apache/xalan/xslt StylesheetRoot.java XSLTEngineImpl.java

mmidy       00/11/27 13:16:02

  Modified:    src/org/apache/xalan/xslt StylesheetRoot.java
                        XSLTEngineImpl.java
  Log:
  Do not automatically reset stylesheet parameters set using setStylesheetParam()
  
  Revision  Changes    Path
  1.39      +1 -1      xml-xalan/src/org/apache/xalan/xslt/StylesheetRoot.java
  
  Index: StylesheetRoot.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/src/org/apache/xalan/xslt/StylesheetRoot.java,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- StylesheetRoot.java	2000/11/20 17:48:49	1.38
  +++ StylesheetRoot.java	2000/11/27 21:15:43	1.39
  @@ -447,7 +447,7 @@
           processor.m_resultTreeHandler.endDocument();
   
           // Reset the top-level params for the next round.
  -        processor.m_topLevelParams = new Vector();
  +        // processor.m_topLevelParams = new Vector();
   
           if(null != processor.m_diagnosticsPrintWriter)
           {
  
  
  
  1.82      +10 -1     xml-xalan/src/org/apache/xalan/xslt/XSLTEngineImpl.java
  
  Index: XSLTEngineImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/src/org/apache/xalan/xslt/XSLTEngineImpl.java,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- XSLTEngineImpl.java	2000/11/10 16:12:25	1.81
  +++ XSLTEngineImpl.java	2000/11/27 21:15:46	1.82
  @@ -442,9 +442,18 @@
       m_variableStacks = new VariableStack();
       m_stackGuard = new StackGuard();
   		m_variableGuard = null;
  -  	m_topLevelParams = new Vector();
  +  	//m_topLevelParams = new Vector();
       m_parserLiaison.reset();
     }
  +	
  +	/**
  +   * Reset the top-level params, so the processor can be used again.
  +   * This resets the parameters defined with setStylesheetParam().
  +   */
  +  public void resetTopLevelParams()
  +  {
  +		m_topLevelParams = new Vector();
  +	}
     
     /** 
      * Get a Liaison class, as specified by parserLiaisonClassName property