xref: /aosp_15_r20/external/libxml2/test/schemas/src-attribute3-2-st_0.xsd (revision 7c5688314b92172186c154356a6374bf7684c3ca)
1*7c568831SAndroid Build Coastguard Worker<?xml version="1.0" encoding="ISO-8859-1" ?>
2*7c568831SAndroid Build Coastguard Worker<!-- 3.2.3 : 3.2
3*7c568831SAndroid Build Coastguard Worker    If ref is present, then all of <simpleType>, form and type must be absent
4*7c568831SAndroid Build Coastguard Worker    This one tests <simpleType>
5*7c568831SAndroid Build Coastguard Worker-->
6*7c568831SAndroid Build Coastguard Worker<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://foo" xmlns:foo="http://foo">
7*7c568831SAndroid Build Coastguard Worker
8*7c568831SAndroid Build Coastguard Worker  <element name="foo">
9*7c568831SAndroid Build Coastguard Worker  	  <complexType>
10*7c568831SAndroid Build Coastguard Worker  	  	<attribute ref="foo:bar">
11*7c568831SAndroid Build Coastguard Worker  	  		<simpleType>
12*7c568831SAndroid Build Coastguard Worker  	  			<restriction base="string">
13*7c568831SAndroid Build Coastguard Worker  	  				<maxLength value="20"/>
14*7c568831SAndroid Build Coastguard Worker  	  			</restriction>
15*7c568831SAndroid Build Coastguard Worker  	  		</simpleType>
16*7c568831SAndroid Build Coastguard Worker  	  	</attribute>
17*7c568831SAndroid Build Coastguard Worker  	  </complexType>
18*7c568831SAndroid Build Coastguard Worker  </element>
19*7c568831SAndroid Build Coastguard Worker
20*7c568831SAndroid Build Coastguard Worker  <attribute name="bar" type="string" />
21*7c568831SAndroid Build Coastguard Worker
22*7c568831SAndroid Build Coastguard Worker</schema>
23