Home | History | Annotate | Download | only in libxml2

Lines Matching defs: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);
1685 * Do the xml:base fixup if needed
1691 xmlChar *base;
1695 * The base is only adjusted if "necessary", i.e. if the xinclude node
1696 * has a base specified, or the URL is relative
1698 base = xmlGetNsProp(ctxt->incTab[nr]->ref, BAD_CAST "base",
1700 if (base == NULL) {
1702 * No xml:base on the xinclude node, so we check whether the
1703 * URI base is different than (relative to) the context base
1705 curBase = xmlBuildRelativeURI(URL, ctxt->base);
1715 base = curBase;
1718 if (base != NULL) { /* Adjustment may be needed */
1724 /* If no current base, set it */
1726 xmlNodeSetBase(node, base);
1729 * If the current base is the same as the
1731 * the specified xml:base or the relative URI
1734 xmlNodeSetBase(node, base);
1737 * If the element already has an xml:base
1742 BAD_CAST "base",
1746 relBase = xmlBuildURI(xmlBase, base);
1751 "trying to rebuild base from %s\n",
1765 xmlFree(base);
1947 newctxt->base = xmlStrdup(ctxt->base); /* Inherit the base from the existing context */
2001 xmlChar *base;
2045 base = xmlNodeGetBase(ctxt->doc, cur);
2046 if (base == NULL) {
2049 URI = xmlBuildURI(href, base);
2057 escbase = xmlURIEscape(base);
2072 if (base != NULL)
2073 xmlFree(base);
2083 * Save the base for this include (saving the current one)
2085 oldBase = ctxt->base;
2086 ctxt->base = base;
2096 * Restore the original base before checking for fallback
2098 ctxt->base = oldBase;
2139 if (base != NULL)
2140 xmlFree(base);
2458 ctxt->base = xmlStrdup((xmlChar *)tree->doc->URL);
2541 ctxt->base = xmlNodeGetBase(tree->doc, tree);