W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2006

[Bug 3954] Indirect circularity of union and restriction should be banned

From: <bugzilla@wiggum.w3.org>
Date: Mon, 06 Nov 2006 15:52:49 +0000
CC:
To: www-xml-schema-comments@w3.org
Message-Id: <E1Gh6mH-0007dL-Ar@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3954

           Summary: Indirect circularity of union and restriction should be
                    banned
           Product: XML Schema
           Version: 1.0/1.1 both
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Datatypes: XSD Part 2
        AssignedTo: cmsmcq@w3.org
        ReportedBy: ht@inf.ed.ac.uk
         QAContact: www-xml-schema-comments@w3.org


The Sun contribution (about to be published, URI will follow) to the test
collection includes the following, which not only makes my head hurt, but sends
XSV into an infinite loop:

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

        <xsd:simpleType name="abcOrBoolean">
                <xsd:union memberTypes="xsd:boolean abc"/>
        </xsd:simpleType>

        <xsd:simpleType name="abc">
                <xsd:restriction base="abcOrBoolean">
                        <xsd:minLength value="5"/>
                </xsd:restriction>
        </xsd:simpleType>
</xsd:schema>

I believe this manages to escape both the ban on circular unions and the ban on
circular derivations, as currently stated.  But it _should_ be banned (and the
person who thought of it offered counselling :-)
Received on Monday, 6 November 2006 15:53:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:11 GMT