- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 30 Dec 2002 16:18:21 +0000
- To: Herve Verjus <herve.verjus@esia.univ-savoie.fr>
- Cc: Avin Patel <vze49rz3@verizon.net>, xmlschema <xmlschema-dev@w3.org>
Herve Verjus <herve.verjus@esia.univ-savoie.fr> writes: > Hi, > > On Mon, 30 Dec 2002, Henry S. Thompson wrote: > > > > > "Avin Patel" <vze49rz3@verizon.net> writes: > > > > > Hi All, > > > I want to use all group in all group. As I know all group can't have one of > > > the following: > > > 1)can't contain other group > > > 2)can't be contained in other group > > > 3)must be at top level of complex type > > > 4)can't occur multiple time > > eumH. Where did you find these constraints ????? I defined an XML Schema > where 1) 2) and 4) are violated and the schema was validated (????) In the REC [1]: * (all) . . . In this case, to reduce implementation complexity, {particles} is restricted to contain local and top-level element declarations only, with {min occurs}=0 or 1, {max occurs}=1. and [2]: Schema Component Constraint: All Group Limited 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. > What and where is the truth ????? As above. I guess not all validators are conformant in this area -- XSV doesn't enforce (1). ht [1] http://www.w3.org/TR/xmlschema-1/#Model_Groups [2] http://www.w3.org/TR/xmlschema-1/#cos-all-limited -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh W3C Fellow 1999--2002, part-time member of W3C Team 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Monday, 30 December 2002 11:18:19 UTC