mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
- valid.c: applied small patch from Gary Pennington, reindented
some part of the code. Daniel
This commit is contained in:
@ -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>
|
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
|
* 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);
|
attrDecl = xmlGetDtdAttrDesc(doc->intSubset, elem->name, attr->name);
|
||||||
if ((attrDecl == NULL) && (doc->extSubset != NULL))
|
if ((attrDecl == NULL) && (doc->extSubset != NULL))
|
||||||
attrDecl = xmlGetDtdAttrDesc(doc->extSubset, elem->name,
|
attrDecl = xmlGetDtdAttrDesc(doc->extSubset,
|
||||||
attr->name);
|
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(1);
|
||||||
}
|
}
|
||||||
return(0);
|
return(0);
|
||||||
|
Reference in New Issue
Block a user