Lines Matching refs:newctxt
655 xmlXIncludeCtxtPtr newctxt;
673 newctxt = xmlXIncludeNewContext(doc);
674 if (newctxt != NULL) {
678 newctxt->incMax = ctxt->incMax;
679 newctxt->incNr = ctxt->incNr;
680 newctxt->incTab = (xmlXIncludeRefPtr *) xmlMalloc(newctxt->incMax *
681 sizeof(newctxt->incTab[0]));
682 if (newctxt->incTab == NULL) {
684 xmlFree(newctxt);
690 newctxt->urlMax = ctxt->urlMax;
691 newctxt->urlNr = ctxt->urlNr;
692 newctxt->urlTab = ctxt->urlTab;
697 newctxt->base = xmlStrdup(ctxt->base);
702 newctxt->incBase = ctxt->incNr;
704 newctxt->incTab[i] = ctxt->incTab[i];
705 newctxt->incTab[i]->count++; /* prevent the recursion from
712 newctxt->parseFlags = ctxt->parseFlags;
713 xmlXIncludeDoProcess(newctxt, doc, xmlDocGetRootElement(doc));
715 newctxt->incTab[i]->count--;
716 newctxt->incTab[i] = NULL;
720 ctxt->urlTab = newctxt->urlTab;
721 ctxt->urlMax = newctxt->urlMax;
723 newctxt->urlMax = 0;
724 newctxt->urlNr = 0;
725 newctxt->urlTab = NULL;
727 xmlXIncludeFreeContext(newctxt);
1920 xmlXIncludeCtxtPtr newctxt;
1930 newctxt = xmlXIncludeNewContext(ctxt->doc);
1931 if (newctxt == NULL)
1933 newctxt->base = xmlStrdup(ctxt->base); /* Inherit the base from the existing context */
1934 xmlXIncludeSetFlags(newctxt, ctxt->parseFlags);
1935 ret = xmlXIncludeDoProcess(newctxt, ctxt->doc, fallback->children);
1940 xmlXIncludeFreeContext(newctxt);