You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/10/26 17:34:21 UTC
DO NOT REPLY [Bug 11767] -
Fixed value set for Attribute not accessible through XMLAttDef
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11767>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11767
Fixed value set for Attribute not accessible through XMLAttDef
alby@exceloncorp.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|SAX/SAX2 |Validating Parser (Schema)
| |(Xerces 1.5 or up only)
Version|1.7.0 |2.1.0
------- Additional Comments From alby@exceloncorp.com 2002-10-26 15:34 -------
The problem is still present in version 2.1, and also affects default values.
This patch fixes both problems:
cvs diff -u TraverseSchema.cpp
Index: TraverseSchema.cpp
===================================================================
RCS file: /home/cvspublic/xml-
xerces/c/src/xercesc/validators/schema/TraverseSchema.cpp,v
retrieving revision 1.29
diff -u -r1.29 TraverseSchema.cpp
--- TraverseSchema.cpp 16 Oct 2002 15:10:27 -0000 1.29
+++ TraverseSchema.cpp 26 Oct 2002 15:26:25 -0000
@@ -5247,6 +5250,16 @@
attDef->setDefaultType(XMLAttDef::Required);
}
}
+ else
+ {
+ if (fixedVal) {
+ attDef->setDefaultType(XMLAttDef::Fixed);
+ valueConstraint = fixedVal;
+ }
+ else if (defaultVal) {
+ attDef->setDefaultType(XMLAttDef::Default);
+ }
+ }
if (valueConstraint) {
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org