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

Lines Matching +defs:base +defs:name

346  * @name:  the root element name
353 xmlSAX2InternalSubset(void *ctx, const xmlChar *name,
362 name, ExternalID, SystemID);
376 xmlCreateIntSubset(ctxt->myDoc, name, ExternalID, SystemID);
384 * @name: the root element name
391 xmlSAX2ExternalSubset(void *ctx, const xmlChar *name,
399 name, ExternalID, SystemID);
426 xmlNewDtd(ctxt->myDoc, name, ExternalID, SystemID);
468 input->base = ctxt->input->cur;
523 const char *base = NULL;
527 base = ctxt->input->filename;
528 if (base == NULL)
529 base = ctxt->directory;
531 URI = xmlBuildURI(systemId, (const xmlChar *) base);
548 * @name: The entity name
550 * Get an entity by name
555 xmlSAX2GetEntity(void *ctx, const xmlChar *name)
563 "SAX.xmlSAX2GetEntity(%s)\n", name);
567 ret = xmlGetPredefinedEntity(name);
574 ret = xmlGetDocEntity(ctxt->myDoc, name);
577 ret = xmlGetDocEntity(ctxt->myDoc, name);
580 ret = xmlGetDocEntity(ctxt->myDoc, name);
584 name, NULL);
590 ret = xmlGetDocEntity(ctxt->myDoc, name);
611 "Failure to process entity %s\n", name, NULL);
628 * @name: The entity name
630 * Get a parameter entity by name
635 xmlSAX2GetParameterEntity(void *ctx, const xmlChar *name)
643 "SAX.xmlSAX2GetParameterEntity(%s)\n", name);
646 ret = xmlGetParameterEntity(ctxt->myDoc, name);
654 * @name: the entity name
663 xmlSAX2EntityDecl(void *ctx, const xmlChar *name, int type,
673 name, type, publicId, systemId, content);
676 ent = xmlAddDocEntity(ctxt->myDoc, name, type, publicId,
681 name);
684 const char *base = NULL;
687 base = ctxt->input->filename;
688 if (base == NULL)
689 base = ctxt->directory;
691 URI = xmlBuildURI(systemId, (const xmlChar *) base);
695 ent = xmlAddDtdEntity(ctxt->myDoc, name, type, publicId,
700 "Entity(%s) already defined in the external subset\n", name);
703 const char *base = NULL;
706 base = ctxt->input->filename;
707 if (base == NULL)
708 base = ctxt->directory;
710 URI = xmlBuildURI(systemId, (const xmlChar *) base);
716 name, NULL);
723 * @elem: the name of the element
724 * @fullname: the attribute name
739 xmlChar *name = NULL, *prefix = NULL;
759 /* TODO: optimize name/prefix allocation */
760 name = xmlSplitQName(ctxt, fullname, &prefix);
764 name, prefix, (xmlAttributeType) type,
768 name, prefix, (xmlAttributeType) type,
773 name, NULL);
787 if (name != NULL)
788 xmlFree(name);
794 * @name: the element name
801 xmlSAX2ElementDecl(void *ctx, const xmlChar * name, int type,
812 "SAX.xmlSAX2ElementDecl(%s, %d, ...)\n", name, type);
817 name, (xmlElementTypeVal) type, content);
820 name, (xmlElementTypeVal) type, content);
824 name, NULL);
840 * @name: The name of the notation
847 xmlSAX2NotationDecl(void *ctx, const xmlChar *name,
858 "SAX.xmlSAX2NotationDecl(%s, %s, %s)\n", name, publicId, systemId);
864 name, NULL);
867 nota = xmlAddNotationDecl(&ctxt->vctxt, ctxt->myDoc->intSubset, name,
870 nota = xmlAddNotationDecl(&ctxt->vctxt, ctxt->myDoc->extSubset, name,
875 name, NULL);
890 * @name: The name of the entity
893 * @notationName: the name of the notation
898 xmlSAX2UnparsedEntityDecl(void *ctx, const xmlChar *name,
908 name, publicId, systemId, notationName);
911 ent = xmlAddDocEntity(ctxt->myDoc, name,
917 "Entity(%s) already defined in the internal subset\n", name);
920 const char *base = NULL;
923 base = ctxt->input->filename;
924 if (base == NULL)
925 base = ctxt->directory;
927 URI = xmlBuildURI(systemId, (const xmlChar *) base);
931 ent = xmlAddDtdEntity(ctxt->myDoc, name,
937 "Entity(%s) already defined in the external subset\n", name);
940 const char *base = NULL;
943 base = ctxt->input->filename;
944 if (base == NULL)
945 base = ctxt->directory;
947 URI = xmlBuildURI(systemId, (const xmlChar *) base);
953 name, NULL);
1085 * @fullname: The attribute name, including namespace prefix
1100 xmlChar *name;
1106 name = xmlStrdup(fullname);
1111 * Split the full name into a namespace prefix and the tag name
1113 name = xmlSplitQName(ctxt, fullname, &ns);
1114 if ((name != NULL) && (name[0] == 0)) {
1127 xmlFree(name);
1128 name = xmlStrdup(fullname);
1131 if (name == NULL) {
1170 (name[0] == 'x') && (name[1] == 'm') && (name[2] == 'l') &&
1171 (name[3] == 'n') && (name[4] == 's') && (name[5] == 0)) {
1215 if (name != NULL)
1216 xmlFree(name);
1237 if (name != NULL)
1238 xmlFree(name);
1247 "Empty namespace name for prefix %s\n", name, NULL);
1255 "xmlns:%s: %s not a valid URI\n", name, value);
1259 "xmlns:%s: URI %s is not absolute\n", name, value);
1266 nsret = xmlNewNs(ctxt->node, val, name);
1278 if (name != NULL)
1279 xmlFree(name);
1293 ns, name);
1300 if ((xmlStrEqual(name, prop->name)) &&
1305 name, namespace->href);
1319 ret = xmlNewNsPropEatName(ctxt->node, namespace, name, NULL);
1423 xmlCheckDefaultedAttributes(xmlParserCtxtPtr ctxt, const xmlChar *name,
1430 elemDecl = xmlGetDtdQElementDesc(ctxt->myDoc->intSubset, name, prefix);
1432 elemDecl = xmlGetDtdQElementDesc(ctxt->myDoc->extSubset, name, prefix);
1450 attr->elem, attr->name,
1453 attr->elem, attr->name,
1460 fulln = xmlStrcat(fulln, attr->name);
1462 fulln = xmlStrdup(attr->name);
1518 (xmlStrEqual(attr->name, BAD_CAST "xmlns"))) ||
1523 attr->elem, attr->name,
1529 fulln = xmlBuildQName(attr->name, attr->prefix, fn, 50);
1554 if ((fulln != fn) && (fulln != attr->name))
1563 name, prefix);
1573 * @fullname: The element name, including namespace prefix
1574 * @atts: An array of name/value attributes pairs, NULL terminated
1585 xmlChar *name;
1614 * Split the full name into a namespace prefix and the tag name
1616 name = xmlSplitQName(ctxt, fullname, &prefix);
1624 ret = xmlNewDocNodeEatName(ctxt->myDoc, NULL, name, NULL);
1633 xmlGenericError(xmlGenericErrorContext, "Setting %s as root\n", name);
1653 xmlGenericError(xmlGenericErrorContext, "pushing(%s)\n", name);
1664 "adding child %s to %s\n", name, parent->name);
1670 "adding sibling %s to ", name);
1683 xmlCheckDefaultedAttributes(ctxt, name, prefix, atts);
1687 * process all the attributes whose name start with "xmlns"
1781 * @name: The element name
1786 xmlSAX2EndElement(void *ctx, const xmlChar *name ATTRIBUTE_UNUSED)
1794 if (name == NULL)
1797 xmlGenericError(xmlGenericErrorContext, "SAX.xmlSAX2EndElement(%s)\n", name);
1802 ctxt->nodeInfo->end_pos = ctxt->input->cur - ctxt->input->base;
1821 xmlGenericError(xmlGenericErrorContext, "popping(%s)\n", cur->name);
1887 ret->name = xmlStringText;
1949 * @localname: the local name of the attribute
1951 * @URI: the attribute namespace name if available
1992 ret->name = localname;
1994 ret->name = xmlStrdup(localname);
2186 // Find the base name portion of the path.
2218 * @localname: the local name of the element
2220 * @URI: the element namespace name if available
2298 ret->name = localname;
2301 ret->name = xmlStrdup(localname);
2303 ret->name = lname;
2304 if (ret->name == NULL) {
2478 * @localname: the local name of the element
2480 * @URI: the element namespace name if available
2499 node_info.end_pos = ctxt->input->cur - ctxt->input->base;
2521 * @name: The entity name
2526 xmlSAX2Reference(void *ctx, const xmlChar *name)
2534 "SAX.xmlSAX2Reference(%s)\n", name);
2536 if (name[0] == '#')
2537 ret = xmlNewCharRef(ctxt->myDoc, name);
2539 ret = xmlNewReference(ctxt->myDoc, name);
2542 "add xmlSAX2Reference %s to %s \n", name, ctxt->node->name);
2584 "add chars to %s \n", ctxt->node->name);
2607 (lastChild->name == xmlStringText);
2694 * @target: the target name
2743 "adding PI %s child to %s\n", target, parent->name);
2804 "adding xmlSAX2Comment child to %s\n", parent->name);
2839 "add chars to %s \n", ctxt->node->name);