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
To: www-xml-schema-comments@w3.org
Message-Id: <E1Gh6mH-0007dL-Ar@wiggum.w3.org>


           Summary: Indirect circularity of union and restriction should be
           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 name="abc">
                <xsd:restriction base="abcOrBoolean">
                        <xsd:minLength value="5"/>

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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:05 UTC