-
Notifications
You must be signed in to change notification settings - Fork 1
/
OFD.xsd
83 lines (83 loc) · 4.45 KB
/
OFD.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.ofdspec.org/2016" xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.ofdspec.org/2016" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="Definitions.xsd" />
<xs:element name="OFD">
<xs:complexType>
<xs:sequence>
<xs:element name="DocBody" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="DocInfo" type="CT_DocInfo" />
<xs:element name="DocRoot" type="ST_Loc" />
<xs:element name="Versions" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="Version" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="ID" type="xs:ID" use="required" />
<xs:attribute name="Index" type="xs:int"
use="required" />
<xs:attribute name="Current" type="xs:boolean"
default="false" />
<xs:attribute name="BaseLoc" type="ST_Loc"
use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Signatures" type="ST_Loc" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Version" type="xs:string" use="required" fixed="1.0" />
<xs:attribute name="DocType" use="required" fixed="OFD">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="OFD" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:complexType name="CT_DocInfo">
<xs:sequence>
<xs:element name="DocID" type="xs:string" />
<xs:element name="Title" type="xs:string" minOccurs="0" />
<xs:element name="Author" type="xs:string" minOccurs="0" />
<xs:element name="Subject" type="xs:string" minOccurs="0" />
<xs:element name="Abstract" type="xs:string" minOccurs="0" />
<xs:element name="CreationDate" type="xs:date" minOccurs="0" />
<xs:element name="ModDate" type="xs:date" minOccurs="0" />
<xs:element name="DocUsage" type="xs:string" minOccurs="0" />
<xs:element name="Cover" type="ST_Loc" minOccurs="0" />
<xs:element name="Keywords" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="Keyword" type="xs:string" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Creator" type="xs:string" minOccurs="0" />
<xs:element name="CreatorVersion" type="xs:string" minOccurs="0" />
<xs:element name="CustomDatas" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="CustomData" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Name" type="xs:string" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>