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 ref = xmlXIncludeNewRef(ctxt, URL
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);
1384 * @url: the associated URL
1392 xmlXIncludeLoadDoc(xmlXIncludeCtxtPtr ctxt, const xmlChar *url, int nr) {
1395 xmlChar *URL;
1403 xmlGenericError(xmlGenericErrorContext, "Loading doc %s:%d\n", url, nr);
1406 * Check the URL and remove any fragment identifier
1408 uri = xmlParseURI((const char *)url);
1412 "invalid value URI %s\n", url);
1424 URL = xmlSaveUri(uri);
1426 if (URL == NULL) {
1430 "invalid value URI %s\n", url);
1434 "invalid value URI %s\n", url);
1444 if ((URL[0] == 0) || (URL[0] == '#') ||
1445 ((ctxt->doc != NULL) && (xmlStrEqual(URL, ctxt->doc->URL)))) {
1454 if ((xmlStrEqual(URL, ctxt->incTab[i]->URI)) &&
1458 printf("Already loaded %s\n", URL);
1468 printf("loading %s\n", URL);
1482 doc = xmlXIncludeParseFile(ctxt, (const char *)URL);
1487 xmlFree(URL);
1494 * It's possible that the requested URL has been mapped to a
1496 * To check for this, we compare the URL with that of the doc
1499 if (!xmlStrEqual(URL, doc->URL)) {
1500 xmlFree(URL);
1501 URL = xmlStrdup(doc->URL);
1504 if (xmlStrEqual(URL, ctxt->incTab[i]->URI)) {
1507 printf("Increasing %s count since reused\n", URL);
1531 xmlXIncludeRecurseDoc(ctxt, doc, URL);
1568 xmlFree(URL);
1579 xmlFree(URL);
1596 xmlFree(URL);
1603 xmlFree(URL);
1681 if ((doc != NULL) && (URL != NULL) && (xmlStrchr(URL, (xmlChar) '/')) &&
1690 * has a base specified, or the URL is relative
1699 curBase = xmlBuildRelativeURI(URL, ctxt->base);
1703 "trying to build relative URI from %s\n", URL);
1724 * URL of the document, then reset it to be
1727 if (xmlStrEqual(curBase, node->doc->URL)) {
1765 printf("freeing %s\n", ctxt->incTab[nr]->doc->URL);
1770 xmlFree(URL);
1777 * @url: the associated URL
1785 xmlXIncludeLoadTxt(xmlXIncludeCtxtPtr ctxt, const xmlChar *url, int nr) {
1789 xmlChar *URL;
1795 * Check the URL and remove any fragment identifier
1797 uri = xmlParseURI((const char *)url);
1800 "invalid value URI %s\n", url);
1810 URL = xmlSaveUri(uri);
1812 if (URL == NULL) {
1814 "invalid value URI %s\n", url);
1822 if (URL[0] == 0) {
1826 xmlFree(URL);
1834 if (xmlStrEqual(URL, ctxt->txturlTab[i])) {
1858 xmlFree(URL);
1867 buf = xmlParserInputBufferCreateFilename((const char *)URL, enc);
1869 xmlFree(URL);
1891 "%s contains invalid char\n", URL);
1893 xmlFree(URL);
1903 xmlXIncludeAddTxt(ctxt, node, URL);
1910 xmlFree(URL);
2041 URI = xmlBuildURI(href, ctxt->doc->URL);
2061 XML_XINCLUDE_HREF_URI, "failed build URL\n", NULL);
2336 if (doc->URL != NULL) {
2337 ret = xmlXIncludeURLPush(ctxt, doc->URL);
2405 if (doc->URL != NULL)
2454 ctxt->base = xmlStrdup((xmlChar *)doc->URL);