Home | History | Annotate | Download | only in libxml2

Lines Matching defs:ID

1840  * Verify that the element don't have too many ID attributes
1843 * Returns the number of ID attributes found.
1857 "Element %s has too many ID attributes defined : %s\n",
2080 * Multiple ID per element
2089 "Element %s has too may ID attributes defined : %s\n",
2226 xmlBufferWriteChar(buf, " ID");
2545 * @not: A id
2547 * Deallocate the memory used by an id definition
2550 xmlFreeID(xmlIDPtr id) {
2553 if (id == NULL) return;
2555 if (id->doc != NULL)
2556 dict = id->doc->dict;
2558 if (id->value != NULL)
2559 DICT_FREE(id->value)
2560 if (id->name != NULL)
2561 DICT_FREE(id->name)
2562 xmlFree(id);
2571 * @attr: the attribute holding the ID
2573 * Register a new id declaration
2594 * Create the ID table if needed.
2635 * The id is already defined in this DTD.
2638 "ID %s already defined\n", value, NULL, NULL);
2650 * @table: An id table
2652 * Deallocate the memory used by an ID hash table.
2665 * Determine whether an attribute is of type ID. In case we have DTD(s)
2667 * of HTML documents parsed with the HTML parser, then ID detection is
2676 (!strcmp((char *) attr->name, "id")) &&
2684 if ((xmlStrEqual(BAD_CAST "id", attr->name)) ||
2729 * Remove the given attribute from the ID table maintained internally.
2736 xmlIDPtr id;
2737 xmlChar *ID;
2746 ID = xmlNodeListGetString(doc, attr->children, 1);
2747 if (ID == NULL)
2750 id = xmlHashLookup(table, ID);
2751 if (id == NULL || id->attr != attr) {
2752 xmlFree(ID);
2756 xmlHashRemoveEntry(table, ID, (xmlHashDeallocator) xmlFreeID);
2757 xmlFree(ID);
2765 * @ID: the ID value
2767 * Search the attribute declaring the given ID
2769 * Returns NULL if not found, otherwise the xmlAttrPtr defining the ID
2772 xmlGetID(xmlDocPtr doc, const xmlChar *ID) {
2774 xmlIDPtr id;
2780 if (ID == NULL) {
2788 id = xmlHashLookup(table, ID);
2789 if (id == NULL)
2791 if (id->attr == NULL) {
2798 return(id->attr);
3056 xmlChar *ID;
3066 ID = xmlNodeListGetString(doc, attr->children, 1);
3067 if (ID == NULL)
3070 ref_list = xmlHashLookup(table, ID);
3072 xmlFree(ID);
3094 xmlHashUpdateEntry(table, ID, NULL, (xmlHashDeallocator)
3096 xmlFree(ID);
3103 * @ID: the ID value
3105 * Find the set of references for the supplied ID.
3107 * Returns NULL if not found, otherwise node set for the ID.
3110 xmlGetRefs(xmlDocPtr doc, const xmlChar *ID) {
3117 if (ID == NULL) {
3125 return (xmlHashLookup(table, ID));
3787 * [ VC: ID ]
3788 * Values of type ID must match the Name production....
3824 * each Name must match the value of an ID attribute on some element
3826 * some ID attribute
4107 * - [ VC: ID Attribute Default ]
4109 * The ID/IDREF uniqueness and matching are done separately
4135 /* ID Attribute Default */
4140 "ID attribute %s of %s is not valid must be #IMPLIED or #REQUIRED\n",
4145 /* One ID per Element Type */
4171 "Element %s has %d ID attribute defined in the internal subset : %s\n",
4181 "Element %s has %d ID attribute defined in the external subset : %s\n",
4185 "Element %s has ID attributes defined in the internal and external subset : %s\n",
4218 * - [ VC: One ID per Element Type ]
4314 /* One ID per Element Type
4337 * - [ VC: ID ]
4342 * The ID/IDREF uniqueness and matching are done separately
4425 /* Validity Constraint: ID uniqueness */
4514 * - [ VC: ID ]
4519 * The ID/IDREF uniqueness and matching are done separately
4622 /* Validity Constraint: ID uniqueness */
5934 * The ID/IDREF checkings are done separately
6429 * @name: Name of ID we are searching for
6435 xmlAttrPtr id;
6457 id = xmlGetID(ctxt->doc, str);
6458 if (id == NULL) {
6460 "attribute %s line %d references an unknown ID \"%s\"\n",
6471 id = xmlGetID(ctxt->doc, name);
6472 if (id == NULL) {
6474 "IDREF attribute %s references an unknown ID \"%s\"\n",
6493 id = xmlGetID(ctxt->doc, str);
6494 if (id == NULL) {
6496 "IDREFS attribute %s references an unknown ID \"%s\"\n",
6528 * @name: Name of ID we are searching for
6573 /* trick to get correct line id report */
6605 * (i.e. not used), which could give problems if ID or IDREF