1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Test for bug #341150 -->
3 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >
5 <!-- This is the head of our substitution group for events that have only
7 <xs:element name="SimpleEvent" type="SimpleEventType"/>
9 <!-- All SimpleEvent elements have the required set of attributes -->
10 <xs:complexType name="SimpleEventType">
12 <xs:extension base="xs:anySimpleType">
17 <!-- Common members of the SimpleEvent substitution group -->
18 <xs:element name="TestEvent" substitutionGroup="SimpleEvent">
21 <xs:restriction base="SimpleEventType">
23 <xs:restriction base="xs:string"/>
31 <xs:element name="TestRoot" type="TestRootType"/>
33 <!-- Core data type of an audit trail -->
34 <xs:complexType name="TestRootType">
36 <xs:element name="Events">
38 <xs:choice minOccurs="0" maxOccurs="unbounded">
39 <xs:element ref="SimpleEvent"/>