forked from riftcrystal/DDON-Translation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
message_resource.xsd
110 lines (106 loc) · 4.75 KB
/
message_resource.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?xml version="1.0" encoding="utf-8"?>
<!-- DO NOT EDIT THIS FILE -->
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- root -->
<xs:element name="resource" type="message_resource" />
<xs:element name="item_data" type="item_data" />
<xs:element name="named_params" type="named_params" />
<!-- common types -->
<xs:simpleType name="endian">
<xs:restriction base="xs:string">
<xs:enumeration value="Little" />
<xs:enumeration value="Big" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="gender">
<xs:restriction base="xs:string">
<xs:enumeration value="Neuter" />
<xs:enumeration value="Male" />
<xs:enumeration value="Female" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="default_translation_format">
<xs:attribute name="proper" type="xs:boolean" use="optional" />
</xs:complexType>
<xs:complexType name="translation_format">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="proper" type="xs:boolean" use="optional" />
<xs:attribute name="gender" type="gender" use="optional" default="Neuter" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<!-- resource types -->
<xs:complexType name="message_resource">
<xs:sequence>
<xs:element name="default_translation_format" type="default_translation_format" minOccurs="0" maxOccurs="1" />
<xs:element name="message" type="message" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="endian" type="endian" use="optional" default="Little" />
<xs:attribute name="tag" type="xs:string" use="optional" default="TextWeb" />
</xs:complexType>
<xs:complexType name="message">
<xs:sequence>
<xs:element name="key" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="original" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element name="translation" type="xs:string" minOccurs="0" maxOccurs="1" />
<xs:element name="translation_format" type="translation_format" minOccurs="0" maxOccurs="1" />
</xs:sequence>
</xs:complexType>
<!-- item_data types -->
<xs:complexType name="item_data">
<xs:sequence>
<xs:element name="default_translation_format" type="default_translation_format" minOccurs="0" maxOccurs="1" />
<xs:element name="item" type="item_message" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="endian" type="endian" use="optional" default="Little" />
<xs:attribute name="tag" type="xs:string" use="optional" default="TextWeb" />
</xs:complexType>
<xs:complexType name="item_message">
<xs:sequence>
<xs:element name="original" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element name="translation" type="xs:string" minOccurs="0" maxOccurs="1" />
<xs:element name="translation_format" type="translation_format" minOccurs="0" maxOccurs="1" />
</xs:sequence>
<xs:attribute name="id" type="xs:unsignedInt" use="required" />
</xs:complexType>
<!-- named_param types -->
<xs:complexType name="named_params">
<xs:sequence>
<xs:element name="default_translation_format" type="default_translation_format" minOccurs="0" maxOccurs="1" />
<xs:element name="named_param" type="named_message" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="unknown" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="message" type="message" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="endian" type="endian" use="optional" default="Little" />
<xs:attribute name="tag" type="xs:string" use="optional" default="TextWeb" />
</xs:complexType>
<xs:complexType name="named_message">
<xs:sequence>
<xs:element name="original" type="named_text" minOccurs="1" maxOccurs="1" />
<xs:element name="translation" type="named_text" minOccurs="0" maxOccurs="1" />
<xs:element name="translation_format" type="translation_format" minOccurs="0" maxOccurs="1" />
</xs:sequence>
<xs:attribute name="id" type="xs:unsignedInt" use="required" />
</xs:complexType>
<xs:complexType name="named_text">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" type="named_type" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="named_type">
<xs:restriction base="xs:string">
<xs:enumeration value="None" />
<xs:enumeration value="Prefix" />
<xs:enumeration value="Suffix" />
<xs:enumeration value="Replace" />
</xs:restriction>
</xs:simpleType>
</xs:schema>