Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


question about group circle definition

From: "Wang, Zhuo" <zhuo.wang@-----.--->
To: <xmlschema-dev@--.--->
Date: 3/8/2007 5:31:00 PM
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:sequence>

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

        </xsd:sequence>

    </xsd:complexType> 

 

    <xsd:group name="ul">

        <xsd:sequence>

            <xsd:element name="ul">

                <xsd:complexType>

                    <xsd:sequence>

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

                            <xsd:element name="li" /> 

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

                        </xsd:choice>

                    </xsd:sequence>

                </xsd:complexType>

            </xsd:element>

        </xsd:sequence>

    </xsd:group>

 

</xsd:schema>

 

I think this case voilate:

3.8.6 Constraints on Model Group Schema Components

All model groups (see Model Groups (=A1=EC3.8)) must satisfy the =
following

constraints.

 

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? 

 

Thanks, 

- Wang Zhuo    

~~~~~~~~~~~~~~~~~~~~~~~~

Intel Asia-Pacific R&D Ltd.

No. 880 ZiXing Road, ZiZhu Science Park,

Shanghai, PRC, 200241

~~~~~~~~~~~~~~~~~~~~~~~~

 



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent