Lines Matching refs:nr
1240 * @nr: the entity name
1376 * @nr: the xinclude node number
1383 xmlXIncludeLoadDoc(xmlXIncludeCtxtPtr ctxt, const xmlChar *url, int nr) {
1394 xmlGenericError(xmlGenericErrorContext, "Loading doc %s:%d\n", url, nr);
1401 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1410 if ((ctxt->incTab != NULL) && (ctxt->incTab[nr] != NULL) &&
1411 (ctxt->incTab[nr]->fragment != NULL)) {
1413 fragment = xmlStrdup(ctxt->incTab[nr]->fragment);
1419 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1483 ctxt->incTab[nr]->doc = doc;
1494 for (i = nr + 1; i < ctxt->incNr; i++) {
1496 ctxt->incTab[nr]->count++;
1533 ctxt->incTab[nr]->inc = xmlCopyNodeList(ctxt->doc->children);
1535 ctxt->incTab[nr]->inc = xmlXIncludeCopyNodeList(ctxt, ctxt->doc,
1550 xptrctxt = xmlXPtrNewContext(ctxt->doc, ctxt->incTab[nr]->ref,
1556 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1565 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1582 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1624 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1631 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1646 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1657 ctxt->incTab[nr]->xptr = xptr;
1658 ctxt->incTab[nr]->inc = NULL;
1660 ctxt->incTab[nr]->inc =
1681 base = xmlGetNsProp(ctxt->incTab[nr]->ref, BAD_CAST "base",
1690 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1702 node = ctxt->incTab[nr]->inc;
1732 ctxt->incTab[nr]->ref,
1751 if ((nr < ctxt->incNr) && (ctxt->incTab[nr]->doc != NULL) &&
1752 (ctxt->incTab[nr]->count <= 1)) {
1754 printf("freeing %s\n", ctxt->incTab[nr]->doc->URL);
1756 xmlFreeDoc(ctxt->incTab[nr]->doc);
1757 ctxt->incTab[nr]->doc = NULL;
1767 * @nr: the xinclude node number
1774 xmlXIncludeLoadTxt(xmlXIncludeCtxtPtr ctxt, const xmlChar *url, int nr) {
1788 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref, XML_XINCLUDE_HREF_URI,
1793 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref, XML_XINCLUDE_TEXT_FRAGMENT,
1802 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref, XML_XINCLUDE_HREF_URI,
1812 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1831 if ((ctxt->incTab[nr] != NULL) && (ctxt->incTab[nr]->ref != NULL)) {
1832 encoding = xmlGetProp(ctxt->incTab[nr]->ref, XINCLUDE_PARSE_ENCODING);
1843 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1878 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1898 ctxt->incTab[nr]->inc = node;
1907 * @nr: the xinclude node number
1915 xmlXIncludeLoadFallback(xmlXIncludeCtxtPtr ctxt, xmlNodePtr fallback, int nr) {
1939 ctxt->incTab[nr]->inc = xmlDocCopyNodeList(ctxt->doc,
1942 ctxt->incTab[nr]->inc = NULL;
1943 ctxt->incTab[nr]->emptyFb = 1; /* flag empty callback */
1973 * @nr: the node number
1980 xmlXIncludeLoadNode(xmlXIncludeCtxtPtr ctxt, int nr) {
1992 if ((nr < 0) || (nr >= ctxt->incNr))
1994 cur = ctxt->incTab[nr]->ref;
2014 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2049 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2072 ret = xmlXIncludeLoadDoc(ctxt, URI, nr);
2075 ret = xmlXIncludeLoadTxt(ctxt, URI, nr);
2099 ret = xmlXIncludeLoadFallback(ctxt, children, nr);
2107 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2130 * @nr: the node number
2137 xmlXIncludeIncludeNode(xmlXIncludeCtxtPtr ctxt, int nr) {
2142 if ((nr < 0) || (nr >= ctxt->incNr))
2144 cur = ctxt->incTab[nr]->ref;
2151 if ((ctxt->incTab[nr]->inc == NULL) &&
2152 (ctxt->incTab[nr]->xptr != NULL)) {
2153 ctxt->incTab[nr]->inc =
2155 ctxt->incTab[nr]->xptr);
2156 xmlXPathFreeObject(ctxt->incTab[nr]->xptr);
2157 ctxt->incTab[nr]->xptr = NULL;
2159 list = ctxt->incTab[nr]->inc;
2160 ctxt->incTab[nr]->inc = NULL;
2176 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2204 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,