Re: Extension and all-group

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.

Regards,

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




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





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
schemas"

ht

[1] http://www.ltg.ed.ac.uk/~ht/xsv-status.html
--
  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 11:34:40 UTC