Re: xsd:sequence

Liz,

The reason that the order of elements in a schema determines the order in
which they must appear in an instance is that ( for elementOnly complexTypes
and model group definitions at least ) there is an implicit

    <sequence minOccurs='1' maxOccurs='1'>

around all the particles.

This is described in XML Schema Part 1 - Section 4.3.3 Complex Type
Defintion Schema Component, content type, 4.2. URL[1] below will get you
close to the relevant paragraph.

Regards

Martin Gudgin
DevelopMentor



[1] http://www.w3.org/TR/xmlschema-1/#declare-type




----- Original Message -----
From: "Liz Castro" <lcastro@cookwood.com>
To: <www-xml-schema-comments@w3.org>
Sent: Tuesday, August 08, 2000 9:15 PM
Subject: xsd:sequence


> It seems that the order of elements as they appear in the schema
determines
> the order in which they must appear in an instance.
>
> If that is true, what is the point of xsd:sequence?
>
> Thanks,
> Liz
>
> P.S. And does it matter whether I post to xml-schema-comments, or
> xml-schema-dev? Is the latter by invitation only? I don't want to be a
> pest.
>
> _______________
> Liz Castro
> Cookwood Press
> mailto:lcastro@cookwood.com
> http://www.cookwood.com/
>
> Author of these Visual QuickStart Guides
> published by Peachpit Press:
>
> HTML 4 for the World Wide Web, Fourth Edition --Bestseller!!--
> Perl and CGI for the World Wide Web
> Netscape Communicator 4 for Mac
> Netscape Communicator 4 for Windows
> (Also Netscape 2 and 3 for both Mac and Windows)
>
> -------------------------------------------------
> Bring your problem page to my live HTML clinic on the first
> Tuesday of each month at http://www.worldwithoutborders.com
>

Received on Tuesday, 8 August 2000 16:33:51 UTC