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

Re: Extension and all-group

From: Bob Schloss <rschloss@us.ibm.com>
Date: Tue, 4 Feb 2003 11:33:53 -0500
To: xmlschema-dev@w3.org
Cc: Oleg Tkachenko <olegt@multiconn.com>
Message-ID: <OFA49C1B85.4C2FC05A-ON85256CC3.005AB901-85256CC3.005AFE7C@us.ibm.com>

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.  <all> cannot be used in a complexType which is derived.


Bob Schloss
IBM Thomas J. Watson Research Center
Yorktown Heights, New York, USA

                      k (Henry S.              To:       Oleg Tkachenko <olegt@multiconn.com>                                         
                      Thompson)                cc:       xmlschema-dev@w3.org                                                         
                      Sent by:                 Subject:  Re: Extension and all-group                                                  
                      01/31/2003 05:56                                                                                                

Oleg Tkachenko <olegt@multiconn.com> writes:

> Hello!
> This question was raised at news:microsoft.public.dotnet.xml newsgroup
> -
> is the following schema valid? .NET gives errors, while XML Spy and
> W3C validator say okay.

The schema is not valid.  The derived type violates the requirement
that the only place an 'all' group can appear is all alone as the only
group in a type.  XSV should check for this, but doesn't [1]:

 "<all> groups are [not] properly constrained as to how they appear in


[1] http://www.ltg.ed.ac.uk/~ht/xsv-status.html
  Henry S. Thompson, HCRC Language Technology Group, University of
                      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
Received on Tuesday, 4 February 2003 11:34:40 UTC

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