Your schema needs to meet "Schema Component Constraint: All Group Limited" from
http://www.w3.org/TR/xmlschema-1/#coss-modelGroup, which states:

  When a model group has {compositor} all all of the following must be true:
  1 one of the following must be true:
  1.1 It appears as the model group of a model group definition.
  1.2 It appears in a particle with {min occurs}={max occurs}=1, and
  that particle must be part of a pair which constitutes the {content
  type} of a complex type definition.
  2 The {max occurs} of all the particles in the {particles} of the
  group must be 0 or 1.

Clause 1 is not met. The group in the sequence has an all compositor. It is not in model group definition and isn't the content type of a complex type definition, because it's part of a sequence.

Khaled

"Peter A. Volchek" wrote:

Hi,when validating the attached file I got the following error. DOMPrint.exe -v=always -n -s -f sample.xmlError at file "sample.xsd", line 11, column 29
   Message: A group whose content is 'all' must only appear as the content type of a complex type definition. XMLSpy (for example) validates it w/o errors. The question is: Whom to trust ? P.S.When changing the compositor type of the group to be a sequence, the Xerces parses it ok.

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



Reply via email to