ISSUE-44

complexType extension of simpleContent

State:
CLOSED
Product:
Basic
Raised by:
Paul Downey
Opened on:
2006-05-04
Description:
Propsed simple extension as a Basic pattern:

<xs:complexType name="MySimpleType">
  <xs:simpleContent>      
    <xs:extension base="tns:MyOtherSimpleType"/>
  </xs:simpleContent>  
  <xs:attribute name="myAttribute" type="xs:string"/>
</xs:complexType>
Related emails:
  1. ISSUE-44: complexType extension of simpleContent (from dean+cgi@w3.org on 2006-05-04)
  2. Agenda: XML Schema Patterns for Databinding Telcon 8 August 2006 (from paul.downey@bt.com on 2006-08-07)
  3. Minutes: XML Schema Patterns for Databinding Telcon 8 August 2006 (from paul.downey@bt.com on 2006-08-08)
  4. Agenda: XML Schema Patterns for Databinding Telcon 22 August 2006 (from paul.downey@bt.com on 2006-08-21)
  5. Agenda: XML Schema Patterns for Databinding Telcon 5 September 2006 (from paul.downey@bt.com on 2006-09-03)

Related notes:

2006-08-08: Although we have been ignoring this as a duplicate of ISSUE-47 I have tried the following schema in OxyGen and Spy. <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="st" type="MySimpleType"/> <xs:complexType name="MySimpleType"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> <xs:attribute name="myAttribute" type="xs:string"/> </xs:complexType> </xs:schema> Both object on the same grounds: Description: E s4s-elt-invalid-content.1: The content of 'MySimpleType' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often. Meaning that we can close the Issue as an invalid pattern and concentrate on ISSUE-47

2006-08-08: Maybe the following will be better formatted example of the schema.... <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="st" type="MySimpleType"/> <xs:complexType name="MySimpleType"> <xs:simpleContent> <xs:extension base="xs:string"/> </xs:simpleContent> <xs:attribute name="myAttribute" type="xs:string"/> </xs:complexType> </xs:schema>