amassari    2004/09/30 04:00:07

  Modified:    c/src/xercesc/validators/schema TraverseSchema.cpp
  Log:
  Fix for jira# 538
  
  Revision  Changes    Path
  1.121     +4 -4      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.120
  retrieving revision 1.121
  diff -u -r1.120 -r1.121
  --- TraverseSchema.cpp        30 Sep 2004 10:57:41 -0000      1.120
  +++ TraverseSchema.cpp        30 Sep 2004 11:00:07 -0000      1.121
  @@ -5856,6 +5856,10 @@
           }
       }
   
  +    if (minOccurs == 0 && maxOccurs == 0){
  +        return;
  +    }
  +
       // Constraint checking for min/max value
       if (!isMaxUnbounded) {
   
  @@ -5878,10 +5882,6 @@
               if (specNode)
                   specNode->setMaxOccurs(minOccurs);
           }
  -    }
  -
  -    if (minOccurs == 0 && maxOccurs == 0){
  -        return;
       }
   
       // Constraint checking for 'all' content
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to