Merge origin/master into mdv-gpl3-py26
[openerp-server.git] / bin / import_xml.rng
blob31920df40542440d39c8574851c6a539cb933cb2
1 <?xml version="1.0" encoding="UTF-8"?>
2 <rng:grammar xmlns:rng="http://relaxng.org/ns/structure/1.0">
3 <rng:define name="any">
4 <rng:element>
5 <rng:anyName/>
6 <rng:zeroOrMore>
7 <rng:choice>
8 <rng:attribute>
9 <rng:anyName/>
10 </rng:attribute>
11 <rng:text/>
12 <rng:ref name="any"/>
13 </rng:choice>
14 </rng:zeroOrMore>
15 </rng:element>
16 </rng:define>
18 <rng:define name="value">
19 <rng:element name="value">
20 <rng:optional><rng:attribute name="model" /></rng:optional>
21 <rng:optional><rng:attribute name="search" /></rng:optional>
22 <rng:optional>
23 <rng:attribute name="eval"/>
24 </rng:optional>
25 <rng:empty />
26 </rng:element>
27 </rng:define>
29 <rng:define name="function">
30 <rng:element name="function">
31 <rng:attribute name="model" />
32 <rng:attribute name="name" />
33 <rng:optional><rng:attribute name="id" /></rng:optional>
34 <rng:optional><rng:attribute name="eval" /></rng:optional>
35 <rng:choice>
36 <rng:empty />
37 <rng:oneOrMore>
38 <rng:choice>
39 <rng:ref name="value" />
40 <rng:ref name="function" />
41 </rng:choice>
42 </rng:oneOrMore>
43 </rng:choice>
44 </rng:element>
45 </rng:define>
47 <rng:define name="assert">
48 <rng:element name="assert">
49 <rng:attribute name="model" />
50 <rng:optional><rng:attribute name="search" /> </rng:optional>
51 <rng:optional><rng:attribute name="string" /></rng:optional>
52 <rng:optional><rng:attribute name="id" /></rng:optional>
53 <rng:optional><rng:attribute name="severity" /></rng:optional>
54 <rng:oneOrMore>
55 <rng:element name="test">
56 <rng:attribute name="expr"/>
57 <rng:choice>
58 <rng:text />
59 <rng:empty />
60 </rng:choice>
61 </rng:element>
62 </rng:oneOrMore>
63 </rng:element>
64 </rng:define>
66 <rng:define name="workflow">
67 <rng:element name="workflow">
68 <rng:attribute name="model" />
69 <rng:optional><rng:attribute name="ref" /></rng:optional>
70 <rng:attribute name="action"/>
71 <rng:optional><rng:attribute name="uid"/></rng:optional>
72 <rng:choice>
73 <rng:empty/>
74 <rng:ref name="value"/>
75 </rng:choice>
76 </rng:element>
77 </rng:define>
79 <rng:define name="wizard">
80 <rng:element name="wizard">
81 <rng:attribute name="name"/>
82 <rng:attribute name="id" />
83 <rng:optional><rng:attribute name="menu" /></rng:optional>
84 <rng:optional><rng:attribute name="model" /></rng:optional>
85 <rng:attribute name="string" />
86 <rng:optional><rng:attribute name="keyword" /></rng:optional>
87 <rng:optional><rng:attribute name="multi" /></rng:optional>
88 <rng:optional><rng:attribute name="client_action_multi" /></rng:optional>
89 <rng:optional> <rng:attribute name="groups"/> </rng:optional>
90 </rng:element>
91 </rng:define>
93 <rng:define name="report">
94 <rng:element name="report">
95 <rng:optional><rng:attribute name="id"/></rng:optional>
96 <rng:attribute name="string"/>
97 <rng:attribute name="model"/>
98 <rng:attribute name="name"/>
99 <rng:optional><rng:attribute name="report_type"/></rng:optional>
100 <rng:optional><rng:attribute name="multi"/></rng:optional>
101 <rng:optional><rng:attribute name="menu"/></rng:optional>
102 <rng:optional><rng:attribute name="keyword"/></rng:optional>
103 <rng:optional><rng:attribute name="rml"/></rng:optional>
104 <rng:optional><rng:attribute name="sxw"/></rng:optional>
105 <rng:optional><rng:attribute name="xml"/></rng:optional>
106 <rng:optional><rng:attribute name="xsl"/></rng:optional>
107 <rng:optional> <rng:attribute name="auto" /> </rng:optional>
108 <rng:optional> <rng:attribute name="header" /> </rng:optional>
109 <rng:optional> <rng:attribute name="attachment" /> </rng:optional>
110 <rng:optional> <rng:attribute name="attachment_use" /> </rng:optional>
111 <rng:optional> <rng:attribute name="groups"/> </rng:optional>
112 <rng:empty />
113 </rng:element>
114 </rng:define>
116 <rng:define name="field">
117 <rng:element name="field">
118 <rng:attribute name="name" />
119 <rng:optional><rng:attribute name="type"/></rng:optional>
120 <rng:optional><rng:attribute name="ref"/></rng:optional>
121 <rng:optional><rng:attribute name="eval"/></rng:optional>
122 <rng:optional><rng:attribute name="domain"/></rng:optional>
123 <rng:optional><rng:attribute name="search"/></rng:optional>
124 <rng:optional><rng:attribute name="model"/></rng:optional>
125 <rng:optional><rng:attribute name="use"/></rng:optional>
126 <rng:oneOrMore>
127 <rng:choice>
128 <rng:ref name="any"/>
129 <rng:text/>
130 </rng:choice>
131 </rng:oneOrMore>
132 </rng:element>
133 </rng:define>
136 <rng:define name="record">
137 <rng:element name="record">
138 <rng:optional><rng:attribute name="id" /> </rng:optional>
139 <rng:attribute name="model" />
140 <rng:optional><rng:attribute name="forcecreate" /></rng:optional>
141 <rng:zeroOrMore>
142 <rng:ref name="field" />
143 </rng:zeroOrMore>
144 </rng:element>
145 </rng:define>
147 <rng:define name="delete">
148 <rng:element name="delete">
149 <rng:attribute name="model" />
150 <rng:optional><rng:attribute name="id" /> </rng:optional>
151 <rng:optional><rng:attribute name="search" /></rng:optional>
152 </rng:element>
153 </rng:define>
155 <rng:define name="ir_set">
156 <rng:element name="ir_set">
157 <rng:oneOrMore>
158 <rng:ref name="field" />
159 </rng:oneOrMore>
160 </rng:element>
161 </rng:define>
163 <rng:define name="menuitem">
164 <rng:element name="menuitem">
165 <!-- L'identifiant devrait être obligatoire -->
166 <rng:optional> <rng:attribute name="id" /></rng:optional>
167 <!-- Attention le nom peut disparaitre uniquement si le parent est présent -->
168 <rng:optional> <rng:attribute name="name"/></rng:optional>
169 <rng:optional> <rng:attribute name="parent"/> </rng:optional>
170 <rng:optional> <rng:attribute name="icon"/> </rng:optional>
171 <rng:optional> <rng:attribute name="action"/> </rng:optional>
172 <rng:optional> <rng:attribute name="string"/> </rng:optional>
173 <rng:optional> <rng:attribute name="sequence"/> </rng:optional>
174 <rng:optional> <rng:attribute name="groups"/> </rng:optional>
175 <rng:optional> <rng:attribute name="type"/> </rng:optional>
176 <rng:optional> <rng:attribute name="menu"/> </rng:optional>
177 <rng:empty />
178 </rng:element>
179 </rng:define>
181 <rng:define name="act_window">
182 <rng:element name="act_window">
183 <rng:attribute name="id" />
184 <rng:attribute name="name" />
185 <rng:attribute name="res_model" />
186 <rng:optional><rng:attribute name="domain" /> </rng:optional>
187 <rng:optional><rng:attribute name="src_model" /></rng:optional>
188 <rng:optional><rng:attribute name="context" /></rng:optional>
189 <rng:optional> <rng:attribute name="view"/> </rng:optional>
190 <rng:optional> <rng:attribute name="view_id"/> </rng:optional>
191 <rng:optional> <rng:attribute name="view_type"/> </rng:optional>
192 <rng:optional> <rng:attribute name="view_mode"/> </rng:optional>
193 <rng:optional> <rng:attribute name="multi"/> </rng:optional>
194 <rng:optional> <rng:attribute name="target"/> </rng:optional>
195 <rng:optional> <rng:attribute name="groups"/> </rng:optional>
196 <rng:empty />
197 </rng:element>
198 </rng:define>
200 <rng:define name="data">
201 <rng:element name="data">
202 <rng:optional><rng:attribute name="noupdate" /></rng:optional>
203 <rng:zeroOrMore>
204 <rng:choice>
205 <rng:text/>
206 <rng:ref name="menuitem" />
207 <rng:ref name="record" />
208 <rng:ref name="delete" />
209 <rng:ref name="wizard" />
210 <rng:ref name="act_window" />
211 <rng:ref name="assert" />
212 <rng:ref name="report" />
213 <rng:ref name="workflow" />
214 <rng:ref name="function" />
215 <rng:ref name="ir_set" />
216 </rng:choice>
217 </rng:zeroOrMore>
218 </rng:element>
219 </rng:define>
221 <rng:start>
222 <rng:choice>
223 <rng:element name="openerp">
224 <rng:oneOrMore>
225 <rng:ref name="data" />
226 </rng:oneOrMore>
227 </rng:element>
228 <rng:element name="terp">
229 <rng:oneOrMore>
230 <rng:ref name="data" />
231 </rng:oneOrMore>
232 </rng:element>
233 </rng:choice>
234 </rng:start>
235 </rng:grammar>