<?xml version="1.0"?>
<!--

    Copyright (C) 2006 W3C (R) (MIT ERCIM Keio), All Rights Reserved.
    W3C liability, trademark and document use rules apply.

    http://www.w3.org/Consortium/Legal/ipr-notice
    http://www.w3.org/Consortium/Legal/copyright-documents

    $Header: /w3ccvs/WWW/2002/ws/databinding/examples/6/05/TypeSubstitutionUsingXsiType/echoTypeSubstitutionUsingXsiType.xsd,v 1.8 2006/09/05 15:07:11 pdowney Exp $

-->

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.w3.org/2002/ws/databinding/patterns/6/05/" xmlns:e="http://www.w3.org/2002/ws/databinding/examples/6/05/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/05/" targetNamespace="http://www.w3.org/2002/ws/databinding/examples/6/05/" elementFormDefault="qualified" attributeFormDefault="unqualified">
   <xs:element name="assembly" type="ex:Assembly"/>
   <xs:complexType name="Assembly">
      <xs:sequence>
         <xs:element name="part" minOccurs="0" maxOccurs="unbounded" type="ex:Part"/>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="part" type="ex:Part"/>
   <xs:complexType name="Part">
      <xs:sequence>
         <xs:element name="number" type="xs:string"/>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="Part2">
      <xs:complexContent>
         <xs:extension base="ex:Part">
            <xs:sequence>
               <xs:element name="description" type="xs:string"/>
            </xs:sequence>
         </xs:extension>
      </xs:complexContent>
   </xs:complexType>
   <xs:element name="echoTypeSubstitutionUsingXsiType">
      <xs:complexType>
         <xs:sequence>
            <xs:element ref="ex:assembly"/>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
</xs:schema>

