• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/pyobjc-45/2.6/pyobjc/pyobjc-core/libxml2-src/

Lines Matching +defs:def +defs:prefix

680 	    fullname = xmlBuildQName(content->name, content->prefix, fn, 50);
972 ret->prefix = xmlStrndup(name, l);
975 ret->prefix = xmlDictLookup(dict, name, l);
1032 if (cur->prefix != NULL) {
1034 ret->prefix = xmlDictLookup(dict, cur->prefix, -1);
1036 ret->prefix = xmlStrdup(cur->prefix);
1062 if (cur->prefix != NULL) {
1064 tmp->prefix = xmlDictLookup(dict, cur->prefix, -1);
1066 tmp->prefix = xmlStrdup(cur->prefix);
1126 if ((cur->prefix != NULL) && (!xmlDictOwns(dict, cur->prefix)))
1127 xmlFree((xmlChar *) cur->prefix);
1130 if (cur->prefix != NULL) xmlFree((xmlChar *) cur->prefix);
1168 if (content->prefix != NULL) {
1169 xmlBufferWriteCHAR(buf, content->prefix);
1266 if (content->prefix != NULL) {
1267 if (size - len < xmlStrlen(content->prefix) + 10) {
1271 strcat(buf, (char *) content->prefix);
1358 if (elem->prefix != NULL)
1359 xmlFree((xmlChar *) elem->prefix);
1531 ret->prefix = ns;
1630 if (elem->prefix != NULL)
1631 cur->prefix = xmlStrdup(elem->prefix);
1633 cur->prefix = NULL;
1671 if (elem->prefix != NULL) {
1672 xmlBufferWriteCHAR(buf, elem->prefix);
1680 if (elem->prefix != NULL) {
1681 xmlBufferWriteCHAR(buf, elem->prefix);
1689 if (elem->prefix != NULL) {
1690 xmlBufferWriteCHAR(buf, elem->prefix);
1700 if (elem->prefix != NULL) {
1701 xmlBufferWriteCHAR(buf, elem->prefix);
1888 if ((attr->prefix != NULL) && (!xmlDictOwns(dict, attr->prefix)))
1889 xmlFree((xmlChar *) attr->prefix);
1900 if (attr->prefix != NULL)
1901 xmlFree((xmlChar *) attr->prefix);
1913 * @ns: the attribute namespace prefix
1915 * @def: the attribute default type
1928 xmlAttributeType type, xmlAttributeDefault def,
2044 ret->prefix = xmlDictLookup(dict, ns, -1);
2048 ret->prefix = xmlStrdup(ns);
2051 ret->def = def;
2064 if (xmlHashAddEntry3(table, ret->name, ret->prefix, ret->elem, ret) < 0) {
2096 * Insert namespace default def first they need to be
2100 ((ret->prefix != NULL &&
2101 (xmlStrEqual(ret->prefix, BAD_CAST "xmlns"))))) {
2109 ((ret->prefix != NULL &&
2110 (xmlStrEqual(ret->prefix, BAD_CAST "xmlns")))))) {
2171 cur->def = attr->def;
2177 if (attr->prefix != NULL)
2178 cur->prefix = xmlStrdup(attr->prefix);
2215 if (attr->prefix != NULL) {
2216 xmlBufferWriteCHAR(buf, attr->prefix);
2258 switch (attr->def) {
2272 "Internal: ATTRIBUTE struct corrupted invalid def\n",
2677 if ((attr->ns != NULL) && (attr->ns->prefix != NULL) &&
2679 (!strcmp((char *) attr->ns->prefix, "xml")))
2699 fullelemname = (elem->ns != NULL && elem->ns->prefix != NULL) ?
2700 xmlBuildQName(elem->name, elem->ns->prefix, felem, 50) :
2703 fullattrname = (attr->ns != NULL && attr->ns->prefix != NULL) ?
2704 xmlBuildQName(attr->name, attr->ns->prefix, fattr, 50) :
3149 xmlChar *uqname = NULL, *prefix = NULL;
3156 uqname = xmlSplitQName2(name, &prefix);
3159 cur = xmlHashLookup2(table, name, prefix);
3160 if (prefix != NULL) xmlFree(prefix);
3179 xmlChar *uqname = NULL, *prefix = NULL;
3205 uqname = xmlSplitQName2(name, &prefix);
3208 cur = xmlHashLookup2(table, name, prefix);
3222 cur->prefix = xmlStrdup(prefix);
3225 xmlHashAddEntry2(table, name, prefix, cur);
3227 if (prefix != NULL) xmlFree(prefix);
3236 * @prefix: the element namespace prefix
3245 const xmlChar *prefix) {
3252 return(xmlHashLookup2(table, name, prefix));
3271 xmlChar *uqname = NULL, *prefix = NULL;
3280 uqname = xmlSplitQName2(name, &prefix);
3283 cur = xmlHashLookup3(table, uqname, prefix, elem);
3284 if (prefix != NULL) xmlFree(prefix);
3296 * @prefix: the attribute namespace prefix
3306 const xmlChar *prefix) {
3313 return(xmlHashLookup3(table, name, prefix, elem));
3968 if ((elem->ns != NULL) && (elem->ns->prefix != NULL)) {
3972 fullname = xmlBuildQName(elem->name, elem->ns->prefix, fn, 50);
4053 if ((elem->ns != NULL) && (elem->ns->prefix != NULL)) {
4057 fullname = xmlBuildQName(elem->name, elem->ns->prefix, fn, 50);
4138 (attr->def != XML_ATTRIBUTE_IMPLIED) &&
4139 (attr->def != XML_ATTRIBUTE_REQUIRED)) {
4258 (xmlStrEqual(next->prefix, cur->c1->prefix))) {
4259 if (cur->c1->prefix == NULL) {
4266 elem->name, cur->c1->prefix, name);
4275 (xmlStrEqual(next->c1->prefix, cur->c1->prefix))) {
4276 if (cur->c1->prefix == NULL) {
4283 elem->name, cur->c1->prefix, name);
4297 ((tst->prefix == elem->prefix) ||
4298 (xmlStrEqual(tst->prefix, elem->prefix))) &&
4307 ((tst->prefix == elem->prefix) ||
4308 (xmlStrEqual(tst->prefix, elem->prefix))) &&
4360 if ((elem->ns != NULL) && (elem->ns->prefix != NULL)) {
4364 fullname = xmlBuildQName(elem->name, elem->ns->prefix, fn, 50);
4369 attr->name, attr->ns->prefix);
4372 attr->name, attr->ns->prefix);
4385 attr->name, attr->ns->prefix);
4388 attr->name, attr->ns->prefix);
4417 if (attrDecl->def == XML_ATTRIBUTE_FIXED) {
4484 if ((attrDecl->def == XML_ATTRIBUTE_FIXED) &&
4504 * @prefix: the namespace prefix
4527 xmlNodePtr elem, const xmlChar *prefix, xmlNsPtr ns, const xmlChar *value) {
4537 if (prefix != NULL) {
4541 fullname = xmlBuildQName(elem->name, prefix, fn, 50);
4546 if (ns->prefix != NULL) {
4548 ns->prefix, BAD_CAST "xmlns");
4551 ns->prefix, BAD_CAST "xmlns");
4563 if (ns->prefix != NULL) {
4565 ns->prefix, BAD_CAST "xmlns");
4568 ns->prefix, BAD_CAST "xmlns");
4581 if (ns->prefix != NULL) {
4584 ns->prefix, elem->name, NULL);
4595 if (ns->prefix != NULL) {
4598 ns->prefix, elem->name, NULL);
4608 if (attrDecl->def == XML_ATTRIBUTE_FIXED) {
4610 if (ns->prefix != NULL) {
4613 ns->prefix, elem->name, attrDecl->defaultValue);
4646 if (ns->prefix != NULL) {
4649 value, ns->prefix, elem->name);
4664 if (ns->prefix != NULL) {
4667 value, ns->prefix, elem->name);
4685 if (ns->prefix != NULL) {
4688 value, ns->prefix, elem->name);
4699 if ((attrDecl->def == XML_ATTRIBUTE_FIXED) &&
4701 if (ns->prefix != NULL) {
4704 ns->prefix, elem->name, attrDecl->defaultValue);
4714 if (ns->prefix != NULL) {
4715 ret &= xmlValidateAttributeValue2(ctxt, doc, ns->prefix,
4865 if ((NODE->ns == NULL) || (NODE->ns->prefix == NULL)) {
4866 ret = (CONT->prefix == NULL);
4867 } else if (CONT->prefix == NULL) {
4870 ret = xmlStrEqual(NODE->ns->prefix, CONT->prefix);
4906 if ((NODE->ns == NULL) || (NODE->ns->prefix == NULL)) {
4907 ret = (CONT->c1->prefix == NULL);
4908 } else if (CONT->c1->prefix == NULL) {
4911 ret = xmlStrEqual(NODE->ns->prefix, CONT->c1->prefix);
4943 if ((NODE->ns == NULL) || (NODE->ns->prefix == NULL)) {
4944 ret = (CONT->c1->prefix == NULL);
4945 } else if (CONT->c1->prefix == NULL) {
4948 ret = xmlStrEqual(NODE->ns->prefix, CONT->c1->prefix);
5158 if ((cur->ns != NULL) && (cur->ns->prefix != NULL)) {
5159 if (size - len < xmlStrlen(cur->ns->prefix) + 10) {
5164 strcat(buf, (char *) cur->ns->prefix);
5286 if ((cur->ns != NULL) && (cur->ns->prefix != NULL)) {
5291 cur->ns->prefix, fn, 50);
5590 if ((cont->prefix == NULL) && (xmlStrEqual(cont->name, qname)))
5595 if ((cont->c1->prefix == NULL) &&
5611 if ((cont->prefix != NULL) &&
5612 (xmlStrncmp(cont->prefix, qname, plen) == 0) &&
5618 if ((cont->c1->prefix != NULL) &&
5619 (xmlStrncmp(cont->c1->prefix, qname, plen) == 0) &&
5652 const xmlChar *prefix = NULL;
5663 if ((elem->ns != NULL) && (elem->ns->prefix != NULL))
5664 prefix = elem->ns->prefix;
5666 if (prefix != NULL) {
5668 elem->name, prefix);
5671 elem->name, prefix);
6060 if ((child->ns != NULL) && (child->ns->prefix != NULL)) {
6064 fullname = xmlBuildQName(child->name, child->ns->prefix,
6160 if (attr->def == XML_ATTRIBUTE_REQUIRED) {
6163 if ((attr->prefix == NULL) &&
6169 if (ns->prefix == NULL)
6173 } else if (xmlStrEqual(attr->prefix, BAD_CAST "xmlns")) {
6178 if (xmlStrEqual(attr->name, ns->prefix))
6188 if (attr->prefix != NULL) {
6195 * different prefix should be possible but DTDs don't
6196 * allow to define the URI instead of the prefix :-(
6201 } else if (!xmlStrEqual(nameSpace->prefix,
6202 attr->prefix)) {
6221 if (attr->prefix == NULL) {
6229 elem->name, attr->prefix,attr->name);
6234 "Element %s required attribute %s:%s has no prefix\n",
6235 elem->name, attr->prefix, attr->name);
6238 "Element %s required attribute %s:%s has different prefix\n",
6239 elem->name, attr->prefix, attr->name);
6241 } else if (attr->def == XML_ATTRIBUTE_FIXED) {
6247 if ((attr->prefix == NULL) &&
6253 if (ns->prefix == NULL) {
6265 } else if (xmlStrEqual(attr->prefix, BAD_CAST "xmlns")) {
6270 if (xmlStrEqual(attr->name, ns->prefix)) {
6274 elem->name, ns->prefix, NULL);
6327 if ((root->ns != NULL) && (root->ns->prefix != NULL)) {
6331 fullname = xmlBuildQName(root->name, root->ns->prefix, fn, 50);
6411 elem->ns->prefix, ns, ns->href);