W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

[Bug 2182] R-189: Recursive simple type definitions

From: <bugzilla@wiggum.w3.org>
Date: Wed, 14 Sep 2005 18:45:37 +0000
To: www-xml-schema-comments@w3.org
Cc:
Message-Id: <E1EFcGH-0008Ut-HA@wiggum.w3.org>

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

           Summary: R-189: Recursive simple type definitions
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 1: Structures
        AssignedTo: ht@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org


Is the following recursive definition valid? 

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 		targetNamespace="http://foo.com"
 		xmlns="http://foo.com"
 		elementFormDefault="qualified">
 
 	<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>

Henry's response: 

"Not allowed. There is an erratum forthcoming which is intended to clarify 
this, but, irritatingly, it doesn't catch the above case. I expect yet another 
erratum will do so."

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002OctDec/0124.html
Received on Wednesday, 14 September 2005 18:45:48 GMT

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