Home | History | Annotate | Download | only in libxml2

Lines Matching refs:URL

53     xmlChar              *URI; /* the fully resolved resource URL */
76 xmlChar * url; /* the current URL processed */
78 int urlMax; /* size of URL stack */
79 xmlChar * *urlTab; /* URL stack */
306 * @value: the url
308 * Pushes a new url on top of the url stack
327 xmlXIncludeErrMemory(ctxt, NULL, "adding URL");
338 xmlXIncludeErrMemory(ctxt, NULL, "adding URL");
342 ctxt->url = ctxt->urlTab[ctxt->urlNr] = xmlStrdup(value);
350 * Pops the top URL from the URL stack
361 ctxt->url = ctxt->urlTab[ctxt->urlNr - 1];
363 ctxt->url = NULL;
414 * @URL: the URL or file path
419 xmlXIncludeParseFile(xmlXIncludeCtxtPtr ctxt, const char *URL) {
450 inputStream = xmlLoadExternalEntity(URL, NULL, pctxt);
459 pctxt->directory = xmlParserGetDirectory(URL);
490 xmlChar *URL;
541 URI = xmlBuildURI(href, ctxt->doc->URL);
567 "failed build URL\n", NULL);
573 * Check the URL and remove any fragment identifier
604 URL = xmlSaveUri(uri);
607 if (URL == NULL) {
622 URL);
629 * Check the URL against the stack for recursions
633 if (xmlStrEqual(URL, ctxt->urlTab[i])) {
635 "detected a recursion in %s\n", URL);
641 URL, cur);
649 xmlFree(URL);
657 * @url: the associated URL
663 const xmlURL url ATTRIBUTE_UNUSED) {
670 if (xmlStrEqual(doc->URL, ctxt->urlTab[i]))
676 xmlGenericError(xmlGenericErrorContext, "Recursing in doc %s\n", doc->URL);
743 xmlGenericError(xmlGenericErrorContext, "Done recursing in doc %s\n", url);
751 * @url: the associated URL
756 xmlXIncludeAddTxt(xmlXIncludeCtxtPtr ctxt, xmlNodePtr txt, const xmlURL url) {
758 xmlGenericError(xmlGenericErrorContext, "Adding text %s\n", url);
791 ctxt->txturlTab[ctxt->txtNr] = xmlStrdup(url);
1390 * @url: the associated URL
1398 xmlXIncludeLoadDoc(xmlXIncludeCtxtPtr ctxt, const xmlChar *url, int nr) {
1401 xmlChar *URL;
1409 xmlGenericError(xmlGenericErrorContext, "Loading doc %s:%d\n", url, nr);
1412 * Check the URL and remove any fragment identifier
1414 uri = xmlParseURI((const char *)url);
1418 "invalid value URI %s\n", url);
1430 URL = xmlSaveUri(uri);
1432 if (URL == NULL) {
1436 "invalid value URI %s\n", url);
1440 "invalid value URI %s\n", url);
1450 if ((URL[0] == 0) || (URL[0] == '#') ||
1451 ((ctxt->doc != NULL) && (xmlStrEqual(URL, ctxt->doc->URL)))) {
1460 if ((xmlStrEqual(URL, ctxt->incTab[i]->URI)) &&
1464 printf("Already loaded %s\n", URL);
1474 printf("loading %s\n", URL);
1488 doc = xmlXIncludeParseFile(ctxt, (const char *)URL);
1493 xmlFree(URL);
1500 * It's possible that the requested URL has been mapped to a
1502 * To check for this, we compare the URL with that of the doc
1505 if (!xmlStrEqual(URL, doc->URL)) {
1506 xmlFree(URL);
1507 URL = xmlStrdup(doc->URL);
1510 if (xmlStrEqual(URL, ctxt->incTab[i]->URI)) {
1513 printf("Increasing %s count since reused\n", URL);
1537 xmlXIncludeRecurseDoc(ctxt, doc, URL);
1574 xmlFree(URL);
1585 xmlFree(URL);
1602 xmlFree(URL);
1609 xmlFree(URL);
1687 if ((doc != NULL) && (URL != NULL) && (xmlStrchr(URL, (xmlChar) '/')) &&
1696 * has a base specified, or the URL is relative
1705 curBase = xmlBuildRelativeURI(URL, ctxt->base);
1709 "trying to build relative URI from %s\n", URL);
1730 * URL of the document, then reset it to be
1733 if (xmlStrEqual(curBase, node->doc->URL)) {
1771 printf("freeing %s\n", ctxt->incTab[nr]->doc->URL);
1776 xmlFree(URL);
1783 * @url: the associated URL
1791 xmlXIncludeLoadTxt(xmlXIncludeCtxtPtr ctxt, const xmlChar *url, int nr) {
1795 xmlChar *URL;
1801 * Check the URL and remove any fragment identifier
1803 uri = xmlParseURI((const char *)url);
1806 "invalid value URI %s\n", url);
1816 URL = xmlSaveUri(uri);
1818 if (URL == NULL) {
1820 "invalid value URI %s\n", url);
1828 if (URL[0] == 0) {
1832 xmlFree(URL);
1840 if (xmlStrEqual(URL, ctxt->txturlTab[i])) {
1864 xmlFree(URL);
1873 buf = xmlParserInputBufferCreateFilename((const char *)URL, enc);
1875 xmlFree(URL);
1897 "%s contains invalid char\n", URL);
1899 xmlFree(URL);
1909 xmlXIncludeAddTxt(ctxt, node, URL);
1916 xmlFree(URL);
2047 URI = xmlBuildURI(href, ctxt->doc->URL);
2067 XML_XINCLUDE_HREF_URI, "failed build URL\n", NULL);
2342 if (doc->URL != NULL) {
2343 ret = xmlXIncludeURLPush(ctxt, doc->URL);
2411 if (doc->URL != NULL)
2458 ctxt->base = xmlStrdup((xmlChar *)tree->doc->URL);