PageRenderTime 26ms CodeModel.GetById 23ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/schemas/report.xsd

https://code.google.com/
XML Schema | 54 lines | 49 code | 5 blank | 0 comment | 0 complexity | 67db8bff75a07f374c118cba5cefd892 MD5 | raw file
 1<?xml version="1.0" encoding="utf-8"?>
 2<xs:schema targetNamespace="http://schemas.flvmeta.org/report/1.0/"
 3    elementFormDefault="qualified"
 4    xmlns="http://schemas.flvmeta.org/report/1.0/"
 5    xmlns:xs="http://www.w3.org/2001/XMLSchema"
 6>
 7  <xs:element name="report">
 8    <xs:complexType>
 9      <xs:sequence>
10        <xs:element name="metadata" type="tMetadata"/>
11        <xs:element name="messages" type="tMessages"/>
12      </xs:sequence>
13    </xs:complexType>
14  </xs:element>
15
16  <xs:complexType name="tMetadata">
17    <xs:sequence>
18      <xs:element name="filename" minOccurs="0" maxOccurs="1" type="xs:string"/>
19      <xs:element name="creation-date" type="xs:dateTime"/>
20      <xs:element name="generator" type="xs:string"/>
21    </xs:sequence>
22  </xs:complexType>
23
24  <xs:complexType name="tMessages">
25    <xs:sequence>
26      <xs:element name="message" minOccurs="0" maxOccurs="unbounded" type="tMessage"/>
27    </xs:sequence>
28  </xs:complexType>
29
30  <xs:complexType name="tMessage">
31    <xs:simpleContent>
32      <xs:extension base="xs:string">
33        <xs:attribute name="level" use="required" type="tMessageLevel"/>
34        <xs:attribute name="offset" use="optional" type="xs:nonNegativeInteger"/>
35        <xs:attribute name="code" use="required" type="tMessageCode"/>
36      </xs:extension>
37    </xs:simpleContent>
38  </xs:complexType>
39
40  <xs:simpleType name="tMessageLevel">
41    <xs:restriction base="xs:string">
42      <xs:enumeration value="info"/>
43      <xs:enumeration value="warning"/>
44      <xs:enumeration value="error"/>
45      <xs:enumeration value="fatal"/>
46    </xs:restriction>
47  </xs:simpleType>
48
49  <xs:simpleType name="tMessageCode">
50    <xs:restriction base="xs:token">
51      <xs:pattern value="[IWEF][0-9]{5}"/>
52    </xs:restriction>
53  </xs:simpleType>
54</xs:schema>