2 <xsd:schema xmlns:
xsd=
"http://www.w3.org/2001/XMLSchema"
3 targetNamespace=
"urn:test:foo"
4 xmlns:
foo=
"urn:test:foo">
6 <!-- Substitution group heads. -->
7 <xsd:element name=
"gh-A" abstract=
"true"/>
8 <xsd:element name=
"gh-B" abstract=
"true"/>
10 <!-- Substitution group members. -->
11 <xsd:element name=
"gm-A-1" substitutionGroup=
"foo:gh-A"/>
12 <xsd:element name=
"gm-A-2" substitutionGroup=
"foo:gh-A"/>
14 <xsd:element name=
"gm-B-1" substitutionGroup=
"foo:gh-B"/>
15 <xsd:element name=
"gm-B-2" substitutionGroup=
"foo:gh-B"/>
17 <xsd:element name=
"foo">
20 <xsd:element ref=
"foo:gh-A"/>
21 <xsd:element ref=
"foo:gh-B"/>