mirror of
https://github.com/GNOME/libxml2.git
synced 2025-02-23 18:29:14 +08:00
- valid.c: applied small patch from Gary Pennington, reindented
some part of the code. Daniel
This commit is contained in:
parent
3bbbe6fa2a
commit
377219233f
@ -1,3 +1,8 @@
|
||||
Fri May 4 17:19:39 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||
|
||||
* valid.c: applied small patch from Gary Pennington, reindented
|
||||
some part of the code.
|
||||
|
||||
Thu May 3 13:10:43 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||
|
||||
* configure.in doc/xml.html doc/html/*: preparing for 2.3.8
|
||||
|
8
valid.c
8
valid.c
@ -2059,10 +2059,12 @@ xmlIsRef(xmlDocPtr doc, xmlNodePtr elem, xmlAttrPtr attr) {
|
||||
|
||||
attrDecl = xmlGetDtdAttrDesc(doc->intSubset, elem->name, attr->name);
|
||||
if ((attrDecl == NULL) && (doc->extSubset != NULL))
|
||||
attrDecl = xmlGetDtdAttrDesc(doc->extSubset, elem->name,
|
||||
attr->name);
|
||||
attrDecl = xmlGetDtdAttrDesc(doc->extSubset,
|
||||
elem->name, attr->name);
|
||||
|
||||
if ((attrDecl != NULL) && (attrDecl->atype == XML_ATTRIBUTE_IDREF))
|
||||
if ((attrDecl != NULL) &&
|
||||
(attrDecl->atype == XML_ATTRIBUTE_IDREF ||
|
||||
attrDecl->atype == XML_ATTRIBUTE_IDREFS))
|
||||
return(1);
|
||||
}
|
||||
return(0);
|
||||
|
Loading…
Reference in New Issue
Block a user