• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/libxml2-26/libxml2/

Lines Matching +defs:base +defs:name

85     xmlChar *		 base; /* the current xml:base */
164 * @name: the attribute name
172 const xmlChar *name) {
175 ret = xmlGetNsProp(cur, XINCLUDE_NS, name);
179 ret = xmlGetNsProp(cur, XINCLUDE_OLD_NS, name);
183 ret = xmlGetProp(cur, name);
406 if (ctxt->base != NULL) {
407 xmlFree(ctxt->base);
495 xmlChar *base;
540 base = xmlNodeGetBase(ctxt->doc, cur);
541 if (base == NULL) {
544 URI = xmlBuildURI(href, base);
552 escbase = xmlURIEscape(base);
564 if (base != NULL)
565 xmlFree(base);
709 * Inherit the existing base
711 newctxt->base = xmlStrdup(ctxt->base);
1258 * @nr: the entity name
1264 xmlChar *name ATTRIBUTE_UNUSED) {
1285 ret = xmlAddDocEntity(doc, ent->name, ent->etype, ent->ExternalID,
1291 prev = xmlGetDocEntity(doc, ent->name);
1326 ent->name);
1356 target = xmlCreateIntSubset(doc, cur->name, NULL, NULL);
1688 * Do the xml:base fixup if needed
1694 xmlChar *base;
1698 * The base is only adjusted if "necessary", i.e. if the xinclude node
1699 * has a base specified, or the URL is relative
1701 base = xmlGetNsProp(ctxt->incTab[nr]->ref, BAD_CAST "base",
1703 if (base == NULL) {
1705 * No xml:base on the xinclude node, so we check whether the
1706 * URI base is different than (relative to) the context base
1708 curBase = xmlBuildRelativeURI(URL, ctxt->base);
1718 base = curBase;
1721 if (base != NULL) { /* Adjustment may be needed */
1727 /* If no current base, set it */
1729 xmlNodeSetBase(node, base);
1732 * If the current base is the same as the
1734 * the specified xml:base or the relative URI
1737 xmlNodeSetBase(node, base);
1740 * If the element already has an xml:base
1745 BAD_CAST "base",
1749 relBase = xmlBuildURI(xmlBase, base);
1754 "trying to rebuild base from %s\n",
1768 xmlFree(base);
1976 newctxt->base = xmlStrdup(ctxt->base); /* Inherit the base from the existing context */
2030 xmlChar *base;
2074 base = xmlNodeGetBase(ctxt->doc, cur);
2075 if (base == NULL) {
2078 URI = xmlBuildURI(href, base);
2086 escbase = xmlURIEscape(base);
2101 if (base != NULL)
2102 xmlFree(base);
2112 * Save the base for this include (saving the current one)
2114 oldBase = ctxt->base;
2115 ctxt->base = base;
2125 * Restore the original base before checking for fallback
2127 ctxt->base = oldBase;
2142 (xmlStrEqual(children->name, XINCLUDE_FALLBACK)) &&
2168 if (base != NULL)
2169 xmlFree(base);
2248 end = xmlNewDocNode(cur->doc, cur->ns, cur->name, NULL);
2302 if (xmlStrEqual(node->name, XINCLUDE_NODE)) {
2311 if (xmlStrEqual(child->name, XINCLUDE_NODE)) {
2318 if (xmlStrEqual(child->name, XINCLUDE_FALLBACK)) {
2332 if (xmlStrEqual(node->name, XINCLUDE_FALLBACK)) {
2338 (!xmlStrEqual(node->parent->name, XINCLUDE_NODE))) {
2488 ctxt->base = xmlStrdup((xmlChar *)tree->doc->URL);
2572 ctxt->base = xmlNodeGetBase(tree->doc, tree);