1 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
2 xmlns:A="www.example.org/type/substitution/mod1"
3 targetNamespace="www.example.org/type/substitution/mod2"
4 xmlns="www.example.org/type/substitution/mod2">
5 <xsd:import namespace="www.example.org/type/substitution/mod1" schemaLocation="type_substitution_mod1.xsd"/>
7 <xsd:element name="subsgroup" type="A:ParentType" abstract="true" />
9 <xsd:complexType name="extendedType" block="restriction">
11 <xsd:extension base="A:ParentType">
14 <xsd:attribute name="attr1" type="string" />
19 <xsd:complexType name="restrictedExtendedType">
21 <xsd:restriction base="extendedType">
23 <xsd:element name="foo" minOccurs="0" maxOccurs="unbounded" type="xsd:string"/>
24 <xsd:element name="bar" type="xsd:string"/>
26 <xsd:attribute name="attr1" type="string" use="prohibited" />
31 <xsd:element name="nameTest" type="A:restrictedType"/>
33 <xsd:element name="nameTest2" type="extendedType"/>