public void replaceTemplate(ElemTemplate v,int i) throws TransformerException {
  if (null == m_templates)   throw new ArrayIndexOutOfBoundsException();
  replaceChild(v,(ElemTemplateElement)m_templates.elementAt(i));
  m_templates.setElementAt(v,i);
  v.setStylesheet(this);
}

public void replaceTemplate ( ElemTemplate v , int i ) throws TransformerException { if ( null == m_templates ) throw new ArrayIndexOutOfBoundsException ( ) ; replaceChild ( v , ( ElemTemplateElement ) m_templates . elementAt ( i ) ) ; m_templates . setElementAt ( v , i ) ; v . setStylesheet ( this ) ; }
replace an " xsl : template " property . this is a hook for compilingstylesheethandler , to allow us to access a template , compile it , instantiate it , and replace the original with the compiled instance . added 9 / 5 / 2000 to support compilation experiment
