Home | History | Annotate | Download | only in libxml2

Lines Matching refs:URL

55     xmlChar              *URI; /* the fully resolved resource URL */
78 xmlChar * url; /* the current URL processed */
80 int urlMax; /* size of URL stack */
81 xmlChar * *urlTab; /* URL stack */
308 * @value: the url
310 * Pushes a new url on top of the url stack
329 xmlXIncludeErrMemory(ctxt, NULL, "adding URL");
340 xmlXIncludeErrMemory(ctxt, NULL, "adding URL");
344 ctxt->url = ctxt->urlTab[ctxt->urlNr] = xmlStrdup(value);
352 * Pops the top URL from the URL stack
363 ctxt->url = ctxt->urlTab[ctxt->urlNr - 1];
365 ctxt->url = NULL;
416 * @URL: the URL or file path
421 xmlXIncludeParseFile(xmlXIncludeCtxtPtr ctxt, const char *URL) {
452 inputStream = xmlLoadExternalEntity(URL, NULL, pctxt);
461 pctxt->directory = xmlParserGetDirectory(URL);
492 xmlChar *URL;
543 URI = xmlBuildURI(href, ctxt->doc->URL);
569 "failed build URL\n", NULL);
575 * Check the URL and remove any fragment identifier
606 URL = xmlSaveUri(uri);
609 if (URL == NULL) {
624 URL);
631 * Check the URL against the stack for recursions
635 if (xmlStrEqual(URL, ctxt->urlTab[i])) {
637 URL);
643 ref = xmlXIncludeNewRef(ctxt, URL, cur);
651 xmlFree(URL);
659 * @url: the associated URL
665 const xmlURL url ATTRIBUTE_UNUSED) {
672 if (xmlStrEqual(doc->URL, ctxt->urlTab[i]))
678 xmlGenericError(xmlGenericErrorContext, "Recursing in doc %s\n", doc->URL);
745 xmlGenericError(xmlGenericErrorContext, "Done recursing in doc %s\n", url);
753 * @url: the associated URL
758 xmlXIncludeAddTxt(xmlXIncludeCtxtPtr ctxt, xmlNodePtr txt, const xmlURL url) {
760 xmlGenericError(xmlGenericErrorContext, "Adding text %s\n", url);
793 ctxt->txturlTab[ctxt->txtNr] = xmlStrdup(url);
1396 * @url: the associated URL
1404 xmlXIncludeLoadDoc(xmlXIncludeCtxtPtr ctxt, const xmlChar *url, int nr) {
1407 xmlChar *URL;
1415 xmlGenericError(xmlGenericErrorContext, "Loading doc %s:%d\n", url, nr);
1418 * Check the URL and remove any fragment identifier
1420 uri = xmlParseURI((const char *)url);
1424 "invalid value URI %s\n", url);
1436 URL = xmlSaveUri(uri);
1438 if (URL == NULL) {
1442 "invalid value URI %s\n", url);
1446 "invalid value URI %s\n", url);
1456 if ((URL[0] == 0) || (URL[0] == '#') ||
1457 ((ctxt->doc != NULL) && (xmlStrEqual(URL, ctxt->doc->URL)))) {
1466 if ((xmlStrEqual(URL, ctxt->incTab[i]->URI)) &&
1470 printf("Already loaded %s\n", URL);
1480 printf("loading %s\n", URL);
1494 doc = xmlXIncludeParseFile(ctxt, (const char *)URL);
1499 xmlFree(URL);
1506 * It's possible that the requested URL has been mapped to a
1508 * To check for this, we compare the URL with that of the doc
1511 if (!xmlStrEqual(URL, doc->URL)) {
1512 xmlFree(URL);
1513 URL = xmlStrdup(doc->URL);
1516 if (xmlStrEqual(URL, ctxt->incTab[i]->URI)) {
1519 printf("Increasing %s count since reused\n", URL);
1543 xmlXIncludeRecurseDoc(ctxt, doc, URL);
1580 xmlFree(URL);
1591 xmlFree(URL);
1608 xmlFree(URL);
1615 xmlFree(URL);
1693 if ((doc != NULL) && (URL != NULL) &&
1702 * has a base specified, or the URL is relative
1711 curBase = xmlBuildRelativeURI(URL, ctxt->base);
1715 "trying to build relative URI from %s\n", URL);
1736 * URL of the document, then reset it to be
1739 if (xmlStrEqual(curBase, node->doc->URL)) {
1777 printf("freeing %s\n", ctxt->incTab[nr]->doc->URL);
1782 xmlFree(URL);
1789 * @url: the associated URL
1797 xmlXIncludeLoadTxt(xmlXIncludeCtxtPtr ctxt, const xmlChar *url, int nr) {
1801 xmlChar *URL;
1810 * Check the URL and remove any fragment identifier
1812 uri = xmlParseURI((const char *)url);
1815 "invalid value URI %s\n", url);
1825 URL = xmlSaveUri(uri);
1827 if (URL == NULL) {
1829 "invalid value URI %s\n", url);
1837 if (URL[0] == 0) {
1841 xmlFree(URL);
1849 if (xmlStrEqual(URL, ctxt->txturlTab[i])) {
1873 xmlFree(URL);
1883 inputStream = xmlLoadExternalEntity((const char*)URL, NULL, pctxt);
1886 xmlFree(URL);
1893 xmlFree(URL);
1925 "%s contains invalid char\n", URL);
1927 xmlFree(URL);
1939 xmlXIncludeAddTxt(ctxt, node, URL);
1947 xmlFree(URL);
2079 URI = xmlBuildURI(href, ctxt->doc->URL);
2099 XML_XINCLUDE_HREF_URI, "failed build URL\n", NULL);
2374 if (doc->URL != NULL) {
2375 ret = xmlXIncludeURLPush(ctxt, doc->URL);
2443 if (doc->URL != NULL)
2491 ctxt->base = xmlStrdup((xmlChar *)tree->doc->URL);