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

Re: Extension and all-group

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 04 Feb 2003 17:58:42 +0000
To: Bob Schloss <rschloss@us.ibm.com>
Cc: xmlschema-dev@w3.org, Oleg Tkachenko <olegt@multiconn.com>
Message-ID: <f5bwukg6i7h.fsf@erasmus.inf.ed.ac.uk>

Bob Schloss <rschloss@us.ibm.com> writes:

> IBM XML Schema Quality Checker (available for free download from
> http://www.alphaworks.ibm.com/tech/xmlsqc ) says:
> Effective content model of complexType derivedType includes the <all> as
> part of  an implied sequence with the <all> from that type's ancestor,
> complexType baseType [ located at file:/C:/SQC211/extallgroup.xsd ].  Since
> <all> cannot appear inside sequence, even implied, complexType derivedType
> is invalid.

Very usefully and succinctly put.

>  <all> cannot be used in a complexType which is derived.

Not in general true, unless I've misunderstood -- extension which adds
only attributes, or restriction, are both possible derivations from a
base with <all> which yields <all>, and the restriction case even
includes an <all> in the XML representation of the derived type.

  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@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 Tuesday, 4 February 2003 12:58:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:09 UTC