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/generate/element/substitution"
5 targetNamespace="www.example.org/generate/element/substitution"
6 blockDefault="extension">
8 <xsd:element name="head" type="string" />
10 <xsd:element name="complexEnum">
13 <xsd:extension base="xsd:string">
14 <xsd:attribute name="foo" type="xsd:float"/>
15 <xsd:attribute name="bar" type="xsd:integer"/>
21 <xsd:element name="member2" substitutionGroup="this:head">
24 <xsd:extension base="this:complexEnum">
27 <xsd:attribute name="unitOfAge" type="xsd:string"/>
33 <xsd:element name="ize">
36 <xsd:element ref="this:head" minOccurs="0" maxOccurs="unbounded"/>