W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2007

question about group circle definition

From: Wang, Zhuo <zhuo.wang@intel.com>
Date: Thu, 8 Mar 2007 09:31:16 +0800
Message-ID: <7B2CABB47D5B094AAACC8A1E001B82F522812A@pdsmsx411.ccr.corp.intel.com>
To: <xmlschema-dev@w3.org>
Cc: "Moog, Thomas H" <thomas.h.moog@intel.com>
Hi All, 


I meet a case in w3c test suite: 


<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">


    <xsd:complexType name="a">


            <xsd:group ref="ul" minOccurs="0" maxOccurs="unbounded"/> 




    <xsd:group name="ul">


            <xsd:element name="ul">



                        <xsd:choice minOccurs="0" maxOccurs="unbounded">

                            <xsd:element name="li" /> 

                            <xsd:group ref="ul" minOccurs="0" maxOccurs="unbounded" /> 










I think this case voilate:

3.8.6 Constraints on Model Group Schema Components

All model groups (see Model Groups (3.8)) must satisfy the following



Schema Component Constraint: Model Group Correct

All of the following must be true:

2 Circular groups are disallowed. That is, within the {particles} of a group

there must not be at any depth a particle whose {term} is the group itself.


However, many schema validators say it is a valid case. 

Somebody knows the reason? 



- Wang Zhuo    


Intel Asia-Pacific R&D Ltd.

No. 880 ZiXing Road, ZiZhu Science Park,

Shanghai, PRC, 200241


Received on Thursday, 8 March 2007 01:31:39 UTC

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