Lines Matching defs:BINDING
152 typedef struct binding {
154 struct binding *nextTagBinding;
155 struct binding *prevPrefixBinding;
160 } BINDING;
164 BINDING *binding;
196 BINDING *bindings;
361 TAG_NAME *tagNamePtr, BINDING **bindingsPtr);
364 const XML_Char *uri, BINDING **bindingsPtr);
542 BINDING *m_inheritedBindings;
543 BINDING *m_freeBindingList;
949 moveToFreeBindingList(XML_Parser parser, BINDING *bindings)
952 BINDING *b = bindings;
1139 because this would overwrite existing prefix->binding pointers in
1152 destroyBindings(BINDING *bindings, XML_Parser parser)
1155 BINDING *b = bindings;
2506 BINDING *bindings = NULL;
2532 BINDING *b = bindings;
2538 b->prefix->binding = b->prevPrefixBinding;
2569 tag->name.str, since this points to the binding->uri
2587 BINDING *b = tag->bindings;
2593 b->prefix->binding = b->prevPrefixBinding;
2750 BINDING **bindingsPtr)
2762 BINDING *binding;
2960 const BINDING *b;
2966 b = id->prefix->binding;
3039 for (binding = *bindingsPtr; binding; binding = binding->nextTagBinding)
3040 binding->attId->name[-1] = 0;
3047 binding = elementType->prefix->binding;
3048 if (!binding)
3054 else if (dtd->defaultPrefix.binding) {
3055 binding = dtd->defaultPrefix.binding;
3061 if (ns_triplets && binding->prefix->name) {
3062 for (; binding->prefix->name[prefixLen++];)
3066 tagNamePtr->uriLen = binding->uriLen;
3067 tagNamePtr->prefix = binding->prefix->name;
3071 n = i + binding->uriLen + prefixLen;
3072 if (n > binding->uriAlloc) {
3077 binding->uriAlloc = n + EXPAND_SPARE;
3078 memcpy(uri, binding->uri, binding->uriLen * sizeof(XML_Char));
3080 if (p->name.str == binding->uri)
3082 FREE(binding->uri);
3083 binding->uri = uri;
3086 uri = binding->uri + binding->uriLen;
3092 memcpy(uri + 1, binding->prefix->name, prefixLen * sizeof(XML_Char));
3094 tagNamePtr->str = binding->uri;
3098 /* addBinding() overwrites the value of prefix->binding without checking.
3103 const XML_Char *uri, BINDING **bindingsPtr)
3129 BINDING *b;
3184 b = (BINDING *)MALLOC(sizeof(BINDING));
3200 b->prevPrefixBinding = prefix->binding;
3201 /* NULL binding when default namespace undeclared */
3203 prefix->binding = NULL;
3205 prefix->binding = b;
3211 prefix->binding ? uri : 0);
5554 if (dtd->defaultPrefix.binding) {
5559 len = dtd->defaultPrefix.binding->uriLen;
5563 if (!poolAppendChar(&tempPool, dtd->defaultPrefix.binding->uri[i]))
5576 if (!prefix->binding)
5585 len = prefix->binding->uriLen;
5589 if (!poolAppendChar(&tempPool, prefix->binding->uri[i]))
5716 p->defaultPrefix.binding
5755 p->defaultPrefix.binding = NULL;