version 1.56, 2000/02/24 16:51:08
|
version 1.57, 2000/02/29 16:16:18
|
Line 2380 xmlValidateAttributeDecl(xmlValidCtxtPtr
|
Line 2380 xmlValidateAttributeDecl(xmlValidCtxtPtr
|
"Element %s has %d ID attribute defined in the internal subset : %s\n", |
"Element %s has %d ID attribute defined in the internal subset : %s\n", |
attr->elem, nbId, attr->name); |
attr->elem, nbId, attr->name); |
} else if (doc->extSubset != NULL) { |
} else if (doc->extSubset != NULL) { |
int extId; |
int extId = 0; |
elem = xmlGetDtdElementDesc(doc->extSubset, attr->elem); |
elem = xmlGetDtdElementDesc(doc->extSubset, attr->elem); |
if (elem != NULL) { |
if (elem != NULL) { |
extId = xmlScanIDAttributeDecl(NULL, elem); |
extId = xmlScanIDAttributeDecl(NULL, elem); |
Line 3205 xmlValidateDocumentFinal(xmlValidCtxtPtr
|
Line 3205 xmlValidateDocumentFinal(xmlValidCtxtPtr
|
ret = 0; |
ret = 0; |
} |
} |
} else if (table->table[i]->attr->atype == XML_ATTRIBUTE_IDREFS) { |
} else if (table->table[i]->attr->atype == XML_ATTRIBUTE_IDREFS) { |
xmlChar *dup, *name, *cur, save; |
xmlChar *dup, *name = NULL, *cur, save; |
|
|
dup = xmlStrdup(table->table[i]->value); |
dup = xmlStrdup(table->table[i]->value); |
if (dup == NULL) |
if (dup == NULL) |
return(0); |
return(0); |
cur = dup; |
cur = dup; |
while (*name != 0) { |
while (*cur != 0) { |
name = cur; |
name = cur; |
while ((*cur != 0) && (!IS_BLANK(*cur))) cur++; |
while ((*cur != 0) && (!IS_BLANK(*cur))) cur++; |
save = *cur; |
save = *cur; |