W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2004

Re: complexType : extension of a sequence by a choice ?

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Fri, 06 Feb 2004 10:38:10 +0000
To: "Bruno Chatel" <bcha@chadocs.net>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5b65ek4hnx.fsf@erasmus.inf.ed.ac.uk>

"Bruno Chatel" <bcha@chadocs.net> writes:

> All examples I found on extension on a complexType are done by
> appending one (or more) elements to  a sequence content model 
> (by a sequence in xs:extension).

> Nevertheless, the schema (example of the previous message) is
> validate by XSV.

As your other reply said, the result of an extension is always a
sequence of the extended model followed by the extending model.  This
is in principle a _new_ sequence, not a change to an old one, although
the REC does make some attempt to avoid pointless nesting of sequences
within sequences.

ht
-- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.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 Friday, 6 February 2004 05:38:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:41 GMT