blob: 31c288fe3376248723948edf7f8324b6a3ef7940 [file] [log] [blame]
William M. Brack2f2a6632004-08-20 23:09:47 +00001<?xml version="1.0" encoding="ISO-8859-1"?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://FOO" targetNamespace="http://FOO">
3
4 <xs:element name="foo">
5 <xs:complexType>
6 <xs:complexContent>
7 <xs:restriction base="typeA">
8 <xs:attribute name="barA" type="xs:string" use="optional"/>
9 </xs:restriction>
10 </xs:complexContent>
11 </xs:complexType>
12 </xs:element>
13
14 <xs:complexType name="typeA">
15 <xs:attribute name="barA" type="xs:string" use="required"/>
16 </xs:complexType>
17
18</xs:schema>