Hi there,
In addition to the model group errors Henry has mentioned, the following
schema errors are detected:
[Error] test4.xml:17:211: Schema error: ComplexType 'OrderingParams_r':
cos-ct-extends.1.4.2.2.2.1: The content type of the base type
ParameterResourceForcedComment and derived type OrderingParams_r must both be
mixed or element-only.
[Error] test4.xml:17:211: Schema error: ComplexType 'ConsumableResource':
Attribute CatalogID that appeared in the base should not appear in a
derivation by extension.
[Error] test4.xml:17:211: Schema error: ComplexType 'HandlingResource':
Attribute CatalogID that appeared in the base should not appear in a
derivation by extension.
[Error] test4.xml:17:211: Schema error: ComplexType 'QuantityResource':
Attribute CatalogID that appeared in the base should not appear in a
derivation by extension.
The first error is self-explanatory - see Schema Component Constraint:
Derivation Valid (Extension), constraint 1.4.2.2.1 in the Structures spec
for details.
The next 3 errors are due to the fact that all three types inherit from
PhysicalResource, which contains PhysicalResourceAttribs, and, the extended
types include attribute groups which also contain PhysicalResourceAttribs.
For example, ConsumableResource contains ConsumableAttribs, which contains
PhysicalResource Attribs.
Now, in addition to the schema errors, there are also some validation
errors. These might actually be parser problems. I'm investigating.
Lisa.
Henry Zongaro/Toronto/[EMAIL PROTECTED] on 06/22/2001 03:46:54 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
cc:
Subject: Re: Yet more validation errors
Hi Graham,
The following error is produced for a number of lines in the schema:
[Error] _test4.xml:17:211: Error: The child of a model group definition
must not specify either the minOccurs or maxOccurs attribute.
The "XML Schema: Structures Recommendation" [1] indicates that "the schema
for schemas does not allow them [minOccurs or maxOccurs] on the child of
<group> when it is named. This in turn is because the {min occurs} and {max
occurs} of the particles which refer to the definition are what count."
On lines 1651, 1657, 1712, 1835, 1954, 6300, 8065, 8075, 8085, and
8095 of the schema there are children of <group> elements that specify the
minOccurs or maxOccurs attribute.
Thanks,
Henry
------------------------------------------------------------------------
Henry Zongaro XML Parsers development
IBM SWS Toronto Lab Tie Line 778-6044; Phone (416) 448-6044
mailto:[EMAIL PROTECTED]
[1]
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#declare-namedModelGroup
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]