public void addNodesInDocOrder(NodeList nodelist,XPathContext support){
  if (!m_mutable)   throw new RuntimeException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESET_NOT_MUTABLE,null));
  int nChildren=nodelist.getLength();
  for (int i=0; i < nChildren; i++) {
    Node node=nodelist.item(i);
    if (null != node) {
      addNodeInDocOrder(node,support);
    }
  }
}

public void addNodesInDocOrder ( NodeList nodelist , XPathContext support ) { if ( ! m_mutable ) throw new RuntimeException ( XSLMessages . createXPATHMessage ( XPATHErrorResources . ER_NODESET_NOT_MUTABLE , null ) ) ; int nChildren = nodelist . getLength ( ) ; for ( int i = 0 ; i < nChildren ; i ++ ) { Node node = nodelist . item ( i ) ; if ( null != node ) { addNodeInDocOrder ( node , support ) ; } } }
copy nodelist members into this nodelist , adding in document order . if a node is null , don ' t add it .
