1 <?xml version="1.0" encoding="UTF-8"?> 2 <xs:schema 3 xmlns:xs="http://www.w3.org/2001/XMLSchema"> 4 <xs:element name="help_events"> 5 <xs:complexType> 6 <xs:sequence> 7 <xs:element minOccurs="1" maxOccurs="1" ref="header"/> 8 <xs:element minOccurs="1" maxOccurs="unbounded" ref="event"/> 9 </xs:sequence> 10 <!-- integer part of schemaversion should changes for major schema --> 11 <xs:attribute name="schemaversion" use="required"> 12 <xs:simpleType> 13 <xs:restriction base = "xs:string"> 14 <xs:pattern value = "1\.[0-9]+"/> 15 </xs:restriction> 16 </xs:simpleType> </xs:attribute> 17 </xs:complexType> 18 </xs:element> 19 20 <xs:element name="header"> 21 <xs:complexType> 22 <xs:attribute name="title" type="xs:string" use="required"/> 23 <xs:attribute name="doc" type="xs:string" use="optional"/> 24 </xs:complexType> 25 </xs:element> 26 27 <xs:element name="event"> 28 <xs:complexType> 29 <xs:sequence> 30 <xs:element minOccurs="0" maxOccurs="1" ref="unit_masks"/> 31 </xs:sequence> 32 <xs:attribute name="event_name" type="xs:string" use="required"/> 33 <xs:attribute name="group" type="xs:nonNegativeInteger" use="optional"/> 34 <xs:attribute name="counter_mask" type="xs:nonNegativeInteger" use="required"/> 35 <xs:attribute name="min_count" type="xs:nonNegativeInteger" use="required"/> 36 <xs:attribute name="desc" type="xs:string" use="required"/> 37 </xs:complexType> 38 </xs:element> 39 40 <xs:element name="unit_masks"> 41 <xs:complexType> 42 <xs:sequence> 43 <xs:element minOccurs="1" maxOccurs="unbounded" ref="unit_mask"/> 44 </xs:sequence> 45 <xs:attribute name="default" type="xs:nonNegativeInteger" use="required"/> 46 <xs:attribute name="category" type="xs:string" use="required"/> 47 </xs:complexType> 48 </xs:element> 49 50 <xs:element name="unit_mask"> 51 <xs:complexType> 52 <xs:attribute name="mask" type="xs:nonNegativeInteger" use="required"/> 53 <xs:attribute name="desc" type="xs:string" use="required"/> 54 </xs:complexType> 55 </xs:element> 56 </xs:schema> 57 58