Lines Matching defs:atts
1296 const xmlChar **atts;
1300 if (ctxt->atts == NULL) {
1302 atts = (const xmlChar **)
1304 if (atts == NULL) goto mem_error;
1305 ctxt->atts = atts;
1312 atts = (const xmlChar **) xmlRealloc((void *) ctxt->atts,
1314 if (atts == NULL) goto mem_error;
1315 ctxt->atts = atts;
7416 const xmlChar **atts = ctxt->atts;
7453 if (xmlStrEqual(atts[i], attname)) {
7460 * Add the pair to atts
7462 if (atts == NULL) {
7464 atts = (const xmlChar **)
7466 if (atts == NULL) {
7472 ctxt->atts = atts;
7478 n = (const xmlChar **) xmlRealloc((void *) atts,
7486 atts = n;
7487 ctxt->atts = atts;
7490 atts[nbatts++] = attname;
7491 atts[nbatts++] = attvalue;
7492 atts[nbatts] = NULL;
7493 atts[nbatts + 1] = NULL;
7525 ctxt->sax->startElement(ctxt->userData, name, atts);
7530 if (atts != NULL) {
7533 if (atts[i] != NULL)
7534 xmlFree((xmlChar *) atts[i]);
8155 const xmlChar **atts = ctxt->atts;
8302 * Add the pair to atts
8304 if ((atts == NULL) || (nbatts + 5 > maxatts)) {
8311 atts = ctxt->atts;
8314 atts[nbatts++] = attname;
8315 atts[nbatts++] = aprefix;
8316 atts[nbatts++] = NULL; /* the URI will be fetched later */
8317 atts[nbatts++] = attvalue;
8319 atts[nbatts++] = attvalue;
8401 if ((attname == atts[j]) && (aprefix == atts[j+1]))
8406 if ((atts == NULL) || (nbatts + 5 > maxatts)) {
8411 atts = ctxt->atts;
8413 atts[nbatts++] = attname;
8414 atts[nbatts++] = aprefix;
8416 atts[nbatts++] = NULL;
8418 atts[nbatts++] = xmlGetNamespace(ctxt, aprefix);
8419 atts[nbatts++] = defaults->values[4 * i + 2];
8420 atts[nbatts++] = defaults->values[4 * i + 3];
8434 if (atts[i + 1] != NULL) {
8435 nsname = xmlGetNamespace(ctxt, atts[i + 1]);
8439 atts[i + 1], atts[i], localname);
8441 atts[i + 2] = nsname;
8451 if (atts[i] == atts[j]) {
8452 if (atts[i+1] == atts[j+1]) {
8453 xmlErrAttributeDup(ctxt, atts[i+1], atts[i]);
8456 if ((nsname != NULL) && (atts[j + 2] == nsname)) {
8459 atts[i], nsname, NULL);
8483 nbatts / 5, nbdef, atts);
8486 nsname, 0, NULL, nbatts / 5, nbdef, atts);
8494 if ((ctxt->attallocs[j] != 0) && (atts[i] != NULL))
8495 xmlFree((xmlChar *) atts[i]);
8506 if ((ctxt->attallocs[j] != 0) && (atts[i] != NULL))
8507 xmlFree((xmlChar *) atts[i]);