Lines Matching full:base
84 xmlChar * base; /* the current xml:base */
405 if (ctxt->base != NULL) {
406 xmlFree(ctxt->base);
494 xmlChar *base;
539 base = xmlNodeGetBase(ctxt->doc, cur);
540 if (base == NULL) {
543 URI = xmlBuildURI(href, base);
551 escbase = xmlURIEscape(base);
563 if (base != NULL)
564 xmlFree(base);
708 * Inherit the existing base
710 newctxt->base = xmlStrdup(ctxt->base);
1679 * Do the xml:base fixup if needed
1685 xmlChar *base;
1689 * The base is only adjusted if "necessary", i.e. if the xinclude node
1690 * has a base specified, or the URL is relative
1692 base = xmlGetNsProp(ctxt->incTab[nr]->ref, BAD_CAST "base",
1694 if (base == NULL) {
1696 * No xml:base on the xinclude node, so we check whether the
1697 * URI base is different than (relative to) the context base
1699 curBase = xmlBuildRelativeURI(URL, ctxt->base);
1709 base = curBase;
1712 if (base != NULL) { /* Adjustment may be needed */
1718 /* If no current base, set it */
1720 xmlNodeSetBase(node, base);
1723 * If the current base is the same as the
1725 * the specified xml:base or the relative URI
1728 xmlNodeSetBase(node, base);
1731 * If the element already has an xml:base
1736 BAD_CAST "base",
1740 relBase = xmlBuildURI(xmlBase, base);
1745 "trying to rebuild base from %s\n",
1759 xmlFree(base);
1941 newctxt->base = xmlStrdup(ctxt->base); /* Inherit the base from the existing context */
1995 xmlChar *base;
2039 base = xmlNodeGetBase(ctxt->doc, cur);
2040 if (base == NULL) {
2043 URI = xmlBuildURI(href, base);
2051 escbase = xmlURIEscape(base);
2066 if (base != NULL)
2067 xmlFree(base);
2077 * Save the base for this include (saving the current one)
2079 oldBase = ctxt->base;
2080 ctxt->base = base;
2090 * Restore the original base before checking for fallback
2092 ctxt->base = oldBase;
2133 if (base != NULL)
2134 xmlFree(base);
2454 ctxt->base = xmlStrdup((xmlChar *)doc->URL);
2513 ctxt->base = xmlNodeGetBase(tree->doc, tree);