Lines Matching defs:ref
58 xmlNodePtr ref; /* the node making the reference in the source */
189 * @ref: the XInclude reference
194 xmlXIncludeFreeRef(xmlXIncludeRefPtr ref) {
195 if (ref == NULL)
198 xmlGenericError(xmlGenericErrorContext, "Freeing ref\n");
200 if (ref->doc != NULL) {
202 xmlGenericError(xmlGenericErrorContext, "Freeing doc %s\n", ref->URI);
204 xmlFreeDoc(ref->doc);
206 if (ref->URI != NULL)
207 xmlFree(ref->URI);
208 if (ref->fragment != NULL)
209 xmlFree(ref->fragment);
210 if (ref->xptr != NULL)
211 xmlXPathFreeObject(ref->xptr);
212 xmlFree(ref);
226 xmlNodePtr ref) {
230 xmlGenericError(xmlGenericErrorContext, "New ref %s\n", URI);
234 xmlXIncludeErrMemory(ctxt, ref, "growing XInclude context");
243 ret->ref = ref;
253 xmlXIncludeErrMemory(ctxt, ref, "growing XInclude context");
263 xmlXIncludeErrMemory(ctxt, ref, "growing XInclude context");
490 xmlXIncludeRefPtr ref;
643 ref = xmlXIncludeNewRef(ctxt, URL, cur);
644 if (ref == NULL) {
647 ref->fragment = fragment;
648 ref->doc = NULL;
649 ref->xml = xml;
650 ref->count = 1;
1420 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1438 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1569 xptrctxt = xmlXPtrNewContext(ctxt->doc, ctxt->incTab[nr]->ref,
1575 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1584 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1601 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1643 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1650 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1665 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1702 base = xmlGetNsProp(ctxt->incTab[nr]->ref, BAD_CAST "base",
1711 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1753 ctxt->incTab[nr]->ref,
1812 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref, XML_XINCLUDE_HREF_URI,
1817 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref, XML_XINCLUDE_TEXT_FRAGMENT,
1826 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref, XML_XINCLUDE_HREF_URI,
1836 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1855 if ((ctxt->incTab[nr] != NULL) && (ctxt->incTab[nr]->ref != NULL)) {
1856 encoding = xmlGetProp(ctxt->incTab[nr]->ref, XINCLUDE_PARSE_ENCODING);
1867 ref,
1921 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2041 cur = ctxt->incTab[nr]->ref;
2061 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2096 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2154 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2191 cur = ctxt->incTab[nr]->ref;
2223 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2251 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,