[xml] validation patch
- From: Gary Pennington <Gary Pennington uk sun com>
- To: "xml gnome org" <xml gnome org>
- Subject: [xml] validation patch
- Date: Fri, 04 May 2001 15:37:46 +0100
Hi,
Small bug in xmlIsRef for 2.3.8.
diff -c valid.c.orig valid.c
*** valid.c.orig Fri May 4 15:29:35 2001
--- valid.c Fri May 4 15:30:40 2001
***************
*** 2062,2068 ****
attrDecl = xmlGetDtdAttrDesc(doc->extSubset,
elem->name,
attr->name);
! if ((attrDecl != NULL) && (attrDecl->atype ==
XML_ATTRIBUTE_IDREF))
return(1);
}
return(0);
--- 2062,2070 ----
attrDecl = xmlGetDtdAttrDesc(doc->extSubset,
elem->name,
attr->name);
! if ((attrDecl != NULL) &&
! (attrDecl->atype == XML_ATTRIBUTE_IDREF ||
! attrDecl->atype == XML_ATTRIBUTE_IDREFS))
return(1);
}
return(0);
calvin:LIB_XML_BUILD/libxml2-2.3.8:$
Gary
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]