1 <?xml version="1.0" encoding="UTF-8"?> 2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 3 xmlns="http://incubator.apache.org/harmony/testing" 4 targetNamespace="http://incubator.apache.org/harmony/testing"> 5 6 <!-- 7 * A suite contains zero or more type declarations 8 --> 9 <xsd:element name="suite"> 10 <xsd:complexType> 11 <xsd:sequence> 12 <xsd:element ref="type" minOccurs="0" maxOccurs="unbounded"/> 13 </xsd:sequence> 14 </xsd:complexType> 15 </xsd:element> 16 17 <!-- 18 * A type contains one or more exclude elements. 19 * A type has a single attribute (id) which can be 20 * any meaningful character value that is based on 21 * proper XML naming conventions (must begin with a 22 * letter or underscore). 23 --> 24 <xsd:element name="type"> 25 <xsd:complexType> 26 <xsd:sequence> 27 <xsd:element ref="exclude" minOccurs="1" maxOccurs="unbounded"/> 28 </xsd:sequence> 29 <xsd:attribute name="id" type="idtype" use="required" /> 30 </xsd:complexType> 31 </xsd:element> 32 33 <!-- 34 * An exclude element can have an optional reason 35 * element. 36 --> 37 <xsd:element name="exclude"> 38 <xsd:complexType> 39 <xsd:sequence> 40 <xsd:element ref="reason" minOccurs="0" maxOccurs="1"/> 41 </xsd:sequence> 42 <xsd:attribute name="id" type="idtype" default="all" /> 43 <xsd:attribute name="platform" type="platformlisttype" default="all" /> 44 <xsd:attribute name="shouldfix" type="booleanstringtype" default="true" /> 45 </xsd:complexType> 46 </xsd:element> 47 48 <!-- 49 * A reason element has no attributes, only parsed 50 * character data. 51 --> 52 <xsd:element name="reason"> 53 <xsd:complexType mixed="true"/> 54 </xsd:element> 55 56 57 <!-- 58 * Type idtype is any string data. 59 --> 60 <xsd:simpleType name="idtype"> 61 <xsd:restriction base="xsd:string"/> 62 </xsd:simpleType> 63 64 65 <!-- 66 * Type platformstringtype is one of the 67 * strings "all", "win.IA32" or "linux.IA32". 68 --> 69 <xsd:simpleType name="platformstringtype" > 70 <xsd:restriction base="xsd:string"> 71 <xsd:enumeration value="win.IA32"/> 72 <xsd:enumeration value="linux.IA32"/> 73 <xsd:enumeration value="all"/> 74 </xsd:restriction> 75 </xsd:simpleType> 76 77 78 <xsd:simpleType name="platformlisttype"> 79 <xsd:list itemType="platformstringtype"/> 80 </xsd:simpleType> 81 82 83 <!-- 84 * Type booleanstringtype is one of the 85 * strings "true" or "false". 86 --> 87 <xsd:simpleType name="booleanstringtype" > 88 <xsd:restriction base="xsd:string"> 89 <xsd:enumeration value="true"/> 90 <xsd:enumeration value="false"/> 91 </xsd:restriction> 92 </xsd:simpleType> 93 94 </xsd:schema> 95