Sync with 5.4.1
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / xsd / substitutiongroup_complextype_block.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
3 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4 xmlns:this="www.example.org/substitutiongroup/complextype/block"
5 targetNamespace="www.example.org/substitutiongroup/complextype/block" blockDefault="extension">
6
7
8 <xsd:element name="head" type="this:restrictedType" block="restriction" />
9
10 <!-- SUBSTITUTABLE PARENT TYPE -->
11 <xsd:complexType name="ParentType">
12 <xsd:sequence>
13 <xsd:element name="foo" minOccurs="0" maxOccurs="unbounded" type="xsd:string" />
14 <xsd:element name="bar" type="xsd:string"/>
15 </xsd:sequence>
16 </xsd:complexType>
17
18 <xsd:element name="RestrictedTypeElem" type="this:restrictedType" substitutionGroup="this:head"/>
19 <!-- The restricting type is: -->
20 <xsd:complexType name="restrictedType">
21 <xsd:complexContent>
22 <xsd:restriction base="this:ParentType">
23 <xsd:sequence>
24 <xsd:element name="foo" minOccurs="1" maxOccurs="unbounded" type="xsd:string"/>
25 <xsd:element name="bar" type="xsd:string"/>
26 </xsd:sequence>
27 </xsd:restriction>
28 </xsd:complexContent>
29 </xsd:complexType>
30
31
32 </xsd:schema>
This page took 0.052814 seconds and 5 git commands to generate.