xref: /aosp_15_r20/external/libxml2/test/schemas/allsg_0.xsd (revision 7c5688314b92172186c154356a6374bf7684c3ca)
1*7c568831SAndroid Build Coastguard Worker<?xml version="1.0"?>
2*7c568831SAndroid Build Coastguard Worker<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3*7c568831SAndroid Build Coastguard Worker	targetNamespace="urn:test:foo"
4*7c568831SAndroid Build Coastguard Worker	xmlns:foo="urn:test:foo">
5*7c568831SAndroid Build Coastguard Worker
6*7c568831SAndroid Build Coastguard Worker	<!-- Substitution group heads. -->
7*7c568831SAndroid Build Coastguard Worker	<xsd:element name="gh-A" abstract="true"/>
8*7c568831SAndroid Build Coastguard Worker	<xsd:element name="gh-B" abstract="true"/>
9*7c568831SAndroid Build Coastguard Worker
10*7c568831SAndroid Build Coastguard Worker	<!-- Substitution group members. -->
11*7c568831SAndroid Build Coastguard Worker	<xsd:element name="gm-A-1" substitutionGroup="foo:gh-A"/>
12*7c568831SAndroid Build Coastguard Worker	<xsd:element name="gm-A-2" substitutionGroup="foo:gh-A"/>
13*7c568831SAndroid Build Coastguard Worker
14*7c568831SAndroid Build Coastguard Worker	<xsd:element name="gm-B-1" substitutionGroup="foo:gh-B"/>
15*7c568831SAndroid Build Coastguard Worker	<xsd:element name="gm-B-2" substitutionGroup="foo:gh-B"/>
16*7c568831SAndroid Build Coastguard Worker
17*7c568831SAndroid Build Coastguard Worker	<xsd:element name="foo">
18*7c568831SAndroid Build Coastguard Worker		<xsd:complexType>
19*7c568831SAndroid Build Coastguard Worker			<xsd:all>
20*7c568831SAndroid Build Coastguard Worker				<xsd:element ref="foo:gh-A"/>
21*7c568831SAndroid Build Coastguard Worker				<xsd:element ref="foo:gh-B"/>
22*7c568831SAndroid Build Coastguard Worker			</xsd:all>
23*7c568831SAndroid Build Coastguard Worker		</xsd:complexType>
24*7c568831SAndroid Build Coastguard Worker	</xsd:element>
25*7c568831SAndroid Build Coastguard Worker
26*7c568831SAndroid Build Coastguard Worker</xsd:schema>