This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2212 - R-220: Problem with erratum E1-17
Summary: R-220: Problem with erratum E1-17
Status: CLOSED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Structures: XSD Part 1 (show other bugs)
Version: 1.0 only
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-14 19:14 UTC by Sandy Gao
Modified: 2009-04-21 19:25 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2005-09-14 19:14:58 UTC
E1-17 changes the definition of Type Derivation OK (Complex) and Type 
Derivation OK (Simple) to require the type defns being checked to be named. 

This change results in an unintended and negative side-effect, namely that 
anonymous types can't be used at all, even for top-level element declarations.

So for example, the following derivation is _not_ conformant any more: 

<xs:element name="elt">
 <xs:simpleType>
  <xs:restriction base="xs:string"/>
 <xs:simpleType>
<xs:element>

<xs:complexType name="base">
 <xs:sequence>
  <xs:element ref="elt" minOccurs="0"/>
 <xs:sequence>
<xs:complexType>

<xs:complexType name="derived">
 <xs:complexContent>
  <xs:restriction base="base">
   <xs:sequence>
    <xs:element ref="elt"/>
   <xs:sequence>
  <xs:restriction>
 <xs:complexContent>
<xs:complexType>

See: http://lists.w3.org/Archives/Member/w3c-xml-schema-wg/2003Dec/0000.html
Comment 1 Sandy Gao 2005-09-23 04:05:22 UTC
E1-54 [1] supersedes E1-17.
[1] http://www.w3.org/2001/05/xmlschema-errata#e1-54

Propose to mark this one as resolved/fixed.
Comment 2 Sandy Gao 2005-09-28 14:27:58 UTC
Discussed at 2005-09-23 telecon and decided this was already fixed in the 
published 2E recommendation, with erratum E2-54, which supersedes E1-17.