knoaman 2002/12/02 14:15:14
Modified: c/src/xercesc/validators/schema TraverseSchema.cpp
Log:
Schema errata: E1-2
Revision Changes Path
1.34 +5 -7 xml-xerces/c/src/xercesc/validators/schema/TraverseSchema.cpp
Index: TraverseSchema.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/TraverseSchema.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- TraverseSchema.cpp 2 Dec 2002 10:00:58 -0000 1.33
+++ TraverseSchema.cpp 2 Dec 2002 22:15:13 -0000 1.34
@@ -5381,17 +5381,15 @@
if (isAllElement || isAllGroup || isGroupRefAll) {
- if (maxOccurs != 1
- || ((isAllGroup || isGroupRefAll || minOccurs != 0)
- && minOccurs != 1)) {
+ if (maxOccurs != 1) {
// set back correct value in order to carry on
if (specNode) {
+
specNode->setMaxOccurs(1);
- if (isAllGroup || isGroupRefAll)
+
+ if (minOccurs > 1)
specNode->setMinOccurs(1);
- else
- specNode->setMinOccurs(0);
}
if (isAllElement) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]