public void removeDocumentFromCache(int n){
  if (DTM.NULL == n)   return;
  for (int i=m_sourceTree.size() - 1; i >= 0; --i) {
    SourceTree st=(SourceTree)m_sourceTree.elementAt(i);
    if (st != null && st.m_root == n) {
      m_sourceTree.removeElementAt(i);
      return;
    }
  }
}

public void removeDocumentFromCache ( int n ) { if ( DTM . NULL == n ) return ; for ( int i = m_sourceTree . size ( ) - 1 ; i >= 0 ; -- i ) { SourceTree st = ( SourceTree ) m_sourceTree . elementAt ( i ) ; if ( st != null && st . m_root == n ) { m_sourceTree . removeElementAt ( i ) ; return ; } } }
jjk : support < ? xalan : doc_cache_off ? > kluge in elemforeach . todo : this function is highly dangerous . cache management must be improved .
