Lines Matching refs:newctxt
666 xmlXIncludeCtxtPtr newctxt; in xmlXIncludeRecurseDoc() local
684 newctxt = xmlXIncludeNewContext(doc); in xmlXIncludeRecurseDoc()
685 if (newctxt != NULL) { in xmlXIncludeRecurseDoc()
689 newctxt->_private = ctxt->_private; in xmlXIncludeRecurseDoc()
693 newctxt->incMax = ctxt->incMax; in xmlXIncludeRecurseDoc()
694 newctxt->incNr = ctxt->incNr; in xmlXIncludeRecurseDoc()
695 newctxt->incTab = (xmlXIncludeRefPtr *) xmlMalloc(newctxt->incMax * in xmlXIncludeRecurseDoc()
696 sizeof(newctxt->incTab[0])); in xmlXIncludeRecurseDoc()
697 if (newctxt->incTab == NULL) { in xmlXIncludeRecurseDoc()
699 xmlFree(newctxt); in xmlXIncludeRecurseDoc()
705 newctxt->urlMax = ctxt->urlMax; in xmlXIncludeRecurseDoc()
706 newctxt->urlNr = ctxt->urlNr; in xmlXIncludeRecurseDoc()
707 newctxt->urlTab = ctxt->urlTab; in xmlXIncludeRecurseDoc()
712 newctxt->base = xmlStrdup(ctxt->base); in xmlXIncludeRecurseDoc()
717 newctxt->incBase = ctxt->incNr; in xmlXIncludeRecurseDoc()
719 newctxt->incTab[i] = ctxt->incTab[i]; in xmlXIncludeRecurseDoc()
720 newctxt->incTab[i]->count++; /* prevent the recursion from in xmlXIncludeRecurseDoc()
727 newctxt->parseFlags = ctxt->parseFlags; in xmlXIncludeRecurseDoc()
728 xmlXIncludeDoProcess(newctxt, doc, xmlDocGetRootElement(doc)); in xmlXIncludeRecurseDoc()
730 newctxt->incTab[i]->count--; in xmlXIncludeRecurseDoc()
731 newctxt->incTab[i] = NULL; in xmlXIncludeRecurseDoc()
735 ctxt->urlTab = newctxt->urlTab; in xmlXIncludeRecurseDoc()
736 ctxt->urlMax = newctxt->urlMax; in xmlXIncludeRecurseDoc()
738 newctxt->urlMax = 0; in xmlXIncludeRecurseDoc()
739 newctxt->urlNr = 0; in xmlXIncludeRecurseDoc()
740 newctxt->urlTab = NULL; in xmlXIncludeRecurseDoc()
742 xmlXIncludeFreeContext(newctxt); in xmlXIncludeRecurseDoc()
1962 xmlXIncludeCtxtPtr newctxt; in xmlXIncludeLoadFallback() local
1973 newctxt = xmlXIncludeNewContext(ctxt->doc); in xmlXIncludeLoadFallback()
1974 if (newctxt == NULL) in xmlXIncludeLoadFallback()
1976 newctxt->_private = ctxt->_private; in xmlXIncludeLoadFallback()
1977 newctxt->base = xmlStrdup(ctxt->base); /* Inherit the base from the existing context */ in xmlXIncludeLoadFallback()
1978 xmlXIncludeSetFlags(newctxt, ctxt->parseFlags); in xmlXIncludeLoadFallback()
1979 ret = xmlXIncludeDoProcess(newctxt, ctxt->doc, fallback->children); in xmlXIncludeLoadFallback()
1984 xmlXIncludeFreeContext(newctxt); in xmlXIncludeLoadFallback()