W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2002

Usage of compositors and groups

From: Randy Eastwood <sunmesa@cox.net>
Date: Thu, 18 Apr 2002 16:34:46 -0400
Message-ID: <014301c1e718$7af20fc0$0100007f@Localhost>
To: "W3C XSchema List" <xmlschema-dev@w3.org>
Hi folks,

I've been reading two references on schema. The W3C recommendation and a Wrox book titled
Professional XSchema. I am trying to answer what seems to me to be a basic simple question.

I need to construct an element A as an anonymous complexType with element only content. There are 5
elements (B,C,D,E, and F) to be included in the complex type for element A.

Elements B thru F do not need to be in sequence, do not have to occurr at all, and are unbounded in
occurrence limit.

What combination of compositors (all | sequence | choice | group) and/or constraints (minOccur and
maxOccur) does the trick?

Here's the template minus all the compositors and/or constraints:

<xs:element name="A">
    <xs:element name="B" type="xs:string"/>
    <xs:element name="C" type="xs:string"/>
    <xs:element name="D" type="xs:string"/>
    <xs:element name="E" type="xs:string"/>
    <xs:element name="F" type="xs:string"/>

/r Randy

Quote from Ellen Ullman's book, "Close to the Machine":

"Human thinking can skip over a great deal, leap over small misunderstandings, can contain ifs and
buts in untroubled corners of the mind. But the machine has no corners. Despite all the attempts to
see the computer as a brain, the machine has no foreground or background. It can be programmed to
behave as if it were working with uncertainty, but -- underneath, at the code, at the circuits -- it
cannot simultaneously do something and withhold for later something that remains unknown. In the
painstaking working out of the specification, line by code line, the programmer confronts an awful,
inevitable truth: The ways of human and machine understanding are disjunct."
Received on Thursday, 18 April 2002 16:35:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:56 UTC