You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2008/10/30 11:30:16 UTC

svn commit: r709133 - /xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp

Author: amassari
Date: Thu Oct 30 03:30:15 2008
New Revision: 709133

URL: http://svn.apache.org/viewvc?rev=709133&view=rev
Log:
A group containing 'all' was not checked for minOccurs<=1, so later a fatal error 'unknown content spec type' would be reported instead of the correct 'group with all must have minOccurs==1'

Modified:
    xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp

Modified: xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp?rev=709133&r1=709132&r2=709133&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp (original)
+++ xerces/c/trunk/src/xercesc/validators/schema/TraverseSchema.cpp Thu Oct 30 03:30:15 2008
@@ -6158,7 +6158,7 @@
 
     if (isAllElement || isAllGroup || isGroupRefAll) {
 
-        if (maxOccurs != 1) {
+        if (maxOccurs != 1 || minOccurs > 1) {
 
             // set back correct value in order to carry on
             if (specNode) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org