Message:

   The following issue has been resolved as FIXED.

   Resolver: Alberto Massari
       Date: Thu, 30 Sep 2004 4:02 AM

Fix is in CVS
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESC-538

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESC-538
    Summary: maxOccurs="0" is considered an error
       Type: Bug

     Status: Resolved
 Resolution: FIXED

    Project: Xerces-C++
 Components: 
             Validating Parser (Schema) (Xerces 1.5 or up only)
   Versions:
             Nightly build (please specify the date)

   Assignee: 
   Reporter: Alberto Massari

    Created: Thu, 18 Jul 2002 4:45 PM
    Updated: Thu, 30 Sep 2004 4:02 AM
Environment: Operating System: Windows XP
Platform: PC

Description:
Running SaxCount on the attached XML shows the error "Invalid value '0' for 
attribute: 'maxOccurs'." even if the specs say that maxOccurs must be a 
(xsd:nonNegativeInteger | "unbounded"). The error is raiseb by 
TraverseSchema::checkMinMax, when maxOccurs is tested against 1 instead of 0

This is the patch I suggest (done against the latest CVS sources)

diff -r1.23 TraverseSchema.cpp
5353c5353
<         if (maxOccurs < 1) {
---
>         if (maxOccurs < 0) {


Alberto


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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

Reply via email to