Hi. Could you provide the schema that Xerces complains about, which would
help us diagnose the problem? Does it contain something like:
<group name="grp">
<sequence minOccurs="0">
<!--or all, or choice-->
<element .../>
</sequence>
</group>
If this is the case, then it's invalid according to "the schema for
schemas": for type "namedGroup"
<xs:complexType name="namedGroup">
...
<xs:sequence>
...
<xs:choice minOccurs="1" maxOccurs="1">
<xs:element name="all">
...
<xs:attribute name="minOccurs" use="prohibited"/>
<xs:attribute name="maxOccurs" use="prohibited"/>
</xs:element>
<xs:element name="choice" type="xs:simpleExplicitGroup"/>
<xs:element name="sequence" type="xs:simpleExplicitGroup"/>
</xs:choice>
</xs:sequence>
...
</xs:complexType>
So it's clear that the child (all, choice, sequence) of named group can't
have occurrence attributes.
Regards,
Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
[EMAIL PROTECTED]
bugzilla@apach
e.org To: [EMAIL PROTECTED]
cc:
07/09/2001 Subject: [Bug 2521] New: - Incorrect
error reported related to
05:06 PM minOccurs
Please respond
to
xerces-j-dev
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2521
*** shadow/2521 Mon Jul 9 14:06:35 2001
--- shadow/2521.tmp.15069 Mon Jul 9 14:06:35 2001
***************
*** 0 ****
--- 1,20 ----
+
+============================================================================+
+ | Incorrect error reported related to minOccurs
|
+
+----------------------------------------------------------------------------+
+ | Bug #: 2521 Product: Xerces-J
|
+ | Status: NEW Version: 1.4.1
|
+ | Resolution: Platform: Other
|
+ | Severity: Normal OS/Version: Other
|
+ | Priority: Other Component: Schema-Datatypes
|
+
+----------------------------------------------------------------------------+
+ | Assigned To: [EMAIL PROTECTED]
|
+ | Reported By: [EMAIL PROTECTED]
|
+ | CC list: Cc:
|
+
+----------------------------------------------------------------------------+
+ | URL:
|
+
+============================================================================+
+ | DESCRIPTION
|
+ The parser fails on a schema with the error 'The child of a model group
+ definition must not specify either the minOccurs or maxOccurs attribute'.
+
+ This schema validates OK with XMLSpy and has been confirmed to be valid!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]