Sync with 5.4.1
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / xsd / type_substitution_mod2.xsd
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"/>
6
7 <xsd:element name="subsgroup" type="A:ParentType" abstract="true" />
8
9 <xsd:complexType name="extendedType" block="restriction">
10 <xsd:complexContent>
11 <xsd:extension base="A:ParentType">
12 <xsd:sequence>
13 </xsd:sequence>
14 <xsd:attribute name="attr1" type="string" />
15 </xsd:extension>
16 </xsd:complexContent>
17 </xsd:complexType>
18
19 <xsd:complexType name="restrictedExtendedType">
20 <xsd:complexContent>
21 <xsd:restriction base="extendedType">
22 <xsd:sequence>
23 <xsd:element name="foo" minOccurs="0" maxOccurs="unbounded" type="xsd:string"/>
24 <xsd:element name="bar" type="xsd:string"/>
25 </xsd:sequence>
26 <xsd:attribute name="attr1" type="string" use="prohibited" />
27 </xsd:restriction>
28 </xsd:complexContent>
29 </xsd:complexType>
30
31 <xsd:element name="nameTest" type="A:restrictedType"/>
32
33 <xsd:element name="nameTest2" type="extendedType"/>
34
35 </xsd:schema>
This page took 0.030806 seconds and 5 git commands to generate.