1<?xml version="1.0" encoding="UTF-8"?>
2<element name="tallies" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3  <interleave>
4    <zeroOrMore>
5      <element name="mesh">
6        <interleave>
7          <choice>
8            <element name="id">
9              <data type="int"/>
10            </element>
11            <attribute name="id">
12              <data type="int"/>
13            </attribute>
14          </choice>
15          <choice>
16            <interleave>
17              <choice>
18                <element name="type">
19                  <value>regular</value>
20                </element>
21                <attribute name="type">
22                  <value>regular</value>
23                </attribute>
24              </choice>
25              <choice>
26                <element name="dimension">
27                  <list>
28                    <oneOrMore>
29                      <data type="positiveInteger"/>
30                    </oneOrMore>
31                  </list>
32                </element>
33                <attribute name="dimension">
34                  <list>
35                    <oneOrMore>
36                      <data type="positiveInteger"/>
37                    </oneOrMore>
38                  </list>
39                </attribute>
40              </choice>
41              <choice>
42                <element name="lower_left">
43                  <list>
44                    <oneOrMore>
45                      <data type="double"/>
46                    </oneOrMore>
47                  </list>
48                </element>
49                <attribute name="lower_left">
50                  <list>
51                    <oneOrMore>
52                      <data type="double"/>
53                    </oneOrMore>
54                  </list>
55                </attribute>
56              </choice>
57              <choice>
58                <choice>
59                  <element name="upper_right">
60                    <list>
61                      <oneOrMore>
62                        <data type="double"/>
63                      </oneOrMore>
64                    </list>
65                  </element>
66                  <attribute name="upper_right">
67                    <list>
68                      <oneOrMore>
69                        <data type="double"/>
70                      </oneOrMore>
71                    </list>
72                  </attribute>
73                </choice>
74                <choice>
75                  <element name="width">
76                    <list>
77                      <oneOrMore>
78                        <data type="double"/>
79                      </oneOrMore>
80                    </list>
81                  </element>
82                  <attribute name="width">
83                    <list>
84                      <oneOrMore>
85                        <data type="double"/>
86                      </oneOrMore>
87                    </list>
88                  </attribute>
89                </choice>
90              </choice>
91            </interleave>
92            <interleave>
93              <choice>
94                <element name="type">
95                  <value>rectilinear</value>
96                </element>
97                <attribute name="type">
98                  <value>rectilinear</value>
99                </attribute>
100              </choice>
101              <choice>
102                <element name="x_grid">
103                  <list>
104                    <oneOrMore>
105                      <data type="double"/>
106                    </oneOrMore>
107                  </list>
108                </element>
109                <attribute name="x_grid">
110                  <list>
111                    <oneOrMore>
112                      <data type="double"/>
113                    </oneOrMore>
114                  </list>
115                </attribute>
116              </choice>
117              <choice>
118                <element name="y_grid">
119                  <list>
120                    <oneOrMore>
121                      <data type="double"/>
122                    </oneOrMore>
123                  </list>
124                </element>
125                <attribute name="y_grid">
126                  <list>
127                    <oneOrMore>
128                      <data type="double"/>
129                    </oneOrMore>
130                  </list>
131                </attribute>
132              </choice>
133              <choice>
134                <element name="z_grid">
135                  <list>
136                    <oneOrMore>
137                      <data type="double"/>
138                    </oneOrMore>
139                  </list>
140                </element>
141                <attribute name="z_grid">
142                  <list>
143                    <oneOrMore>
144                      <data type="double"/>
145                    </oneOrMore>
146                  </list>
147                </attribute>
148              </choice>
149            </interleave>
150          </choice>
151        </interleave>
152      </element>
153    </zeroOrMore>
154    <zeroOrMore>
155      <element name="derivative">
156        <interleave>
157          <choice>
158            <element name="id">
159              <data type="int"/>
160            </element>
161            <attribute name="id">
162              <data type="int"/>
163            </attribute>
164          </choice>
165          <choice>
166            <element name="material">
167              <data type="int"/>
168            </element>
169            <attribute name="material">
170              <data type="int"/>
171            </attribute>
172          </choice>
173          <choice>
174            <choice>
175              <element name="variable">
176                <value>density</value>
177              </element>
178              <attribute name="variable">
179                <value>density</value>
180              </attribute>
181            </choice>
182            <interleave>
183              <choice>
184                <element name="variable">
185                  <value>nuclide_density</value>
186                </element>
187                <attribute name="variable">
188                  <value>nuclide_density</value>
189                </attribute>
190              </choice>
191              <choice>
192                <element name="nuclide">
193                  <data type="string">
194                    <param name="maxLength">12</param>
195                  </data>
196                </element>
197                <attribute name="nuclide">
198                  <data type="string">
199                    <param name="maxLength">12</param>
200                  </data>
201                </attribute>
202              </choice>
203            </interleave>
204            <choice>
205              <element name="variable">
206                <value>temperature</value>
207              </element>
208              <attribute name="variable">
209                <value>temperature</value>
210              </attribute>
211            </choice>
212          </choice>
213        </interleave>
214      </element>
215    </zeroOrMore>
216    <zeroOrMore>
217      <element name="filter">
218        <interleave>
219          <choice>
220            <element name="id">
221              <data type="int"/>
222            </element>
223            <attribute name="id">
224              <data type="int"/>
225            </attribute>
226          </choice>
227          <choice>
228            <interleave>
229              <choice>
230                <element name="type">
231                  <choice>
232                    <value>cell</value>
233                    <value>cellfrom</value>
234                    <value>cellborn</value>
235                    <value>material</value>
236                    <value>universe</value>
237                    <value>surface</value>
238                    <value>distribcell</value>
239                    <value>mesh</value>
240                    <value>energy</value>
241                    <value>energyout</value>
242                    <value>mu</value>
243                    <value>polar</value>
244                    <value>azimuthal</value>
245                    <value>delayedgroup</value>
246                    <value>energyfunction</value>
247                    <value>meshsurface</value>
248                    <value>cellinstance</value>
249                  </choice>
250                </element>
251                <attribute name="type">
252                  <choice>
253                    <value>cell</value>
254                    <value>cellfrom</value>
255                    <value>cellborn</value>
256                    <value>material</value>
257                    <value>universe</value>
258                    <value>surface</value>
259                    <value>distribcell</value>
260                    <value>mesh</value>
261                    <value>energy</value>
262                    <value>energyout</value>
263                    <value>mu</value>
264                    <value>polar</value>
265                    <value>azimuthal</value>
266                    <value>delayedgroup</value>
267                    <value>energyfunction</value>
268                    <value>meshsurface</value>
269                    <value>cellinstance</value>
270                  </choice>
271                </attribute>
272              </choice>
273              <choice>
274                <element name="bins">
275                  <list>
276                    <oneOrMore>
277                      <data type="double"/>
278                    </oneOrMore>
279                  </list>
280                </element>
281                <attribute name="bins">
282                  <list>
283                    <oneOrMore>
284                      <data type="double"/>
285                    </oneOrMore>
286                  </list>
287                </attribute>
288              </choice>
289            </interleave>
290            <interleave>
291              <choice>
292                <element name="type">
293                  <value>energyfunction</value>
294                </element>
295                <attribute name="type">
296                  <value>energyfunction</value>
297                </attribute>
298              </choice>
299              <choice>
300                <element name="energy">
301                  <list>
302                    <oneOrMore>
303                      <data type="double"/>
304                    </oneOrMore>
305                  </list>
306                </element>
307                <attribute name="energy">
308                  <list>
309                    <oneOrMore>
310                      <data type="double"/>
311                    </oneOrMore>
312                  </list>
313                </attribute>
314              </choice>
315              <choice>
316                <element name="y">
317                  <list>
318                    <oneOrMore>
319                      <data type="double"/>
320                    </oneOrMore>
321                  </list>
322                </element>
323                <attribute name="y">
324                  <list>
325                    <oneOrMore>
326                      <data type="double"/>
327                    </oneOrMore>
328                  </list>
329                </attribute>
330              </choice>
331            </interleave>
332          </choice>
333        </interleave>
334      </element>
335    </zeroOrMore>
336    <zeroOrMore>
337      <element name="tally">
338        <interleave>
339          <choice>
340            <element name="id">
341              <data type="int"/>
342            </element>
343            <attribute name="id">
344              <data type="int"/>
345            </attribute>
346          </choice>
347          <optional>
348            <choice>
349              <element name="name">
350                <data type="string">
351                  <param name="maxLength">52</param>
352                </data>
353              </element>
354              <attribute name="name">
355                <data type="string">
356                  <param name="maxLength">52</param>
357                </data>
358              </attribute>
359            </choice>
360          </optional>
361          <optional>
362            <choice>
363              <element name="estimator">
364                <choice>
365                  <value>analog</value>
366                  <value>tracklength</value>
367                  <value>collision</value>
368                </choice>
369              </element>
370              <attribute name="estimator">
371                <choice>
372                  <value>analog</value>
373                  <value>tracklength</value>
374                  <value>collision</value>
375                </choice>
376              </attribute>
377            </choice>
378          </optional>
379          <optional>
380            <choice>
381              <element name="filters">
382                <list>
383                  <oneOrMore>
384                    <data type="int"/>
385                  </oneOrMore>
386                </list>
387              </element>
388              <attribute name="filters">
389                <list>
390                  <oneOrMore>
391                    <data type="int"/>
392                  </oneOrMore>
393                </list>
394              </attribute>
395            </choice>
396          </optional>
397          <optional>
398            <element name="nuclides">
399              <list>
400                <oneOrMore>
401                  <data type="string">
402                    <param name="maxLength">12</param>
403                  </data>
404                </oneOrMore>
405              </list>
406            </element>
407          </optional>
408          <element name="scores">
409            <list>
410              <oneOrMore>
411                <data type="string">
412                  <param name="maxLength">20</param>
413                </data>
414              </oneOrMore>
415            </list>
416          </element>
417          <zeroOrMore>
418            <element name="trigger">
419              <interleave>
420                <choice>
421                  <element name="type">
422                    <data type="string"/>
423                  </element>
424                  <attribute name="type">
425                    <data type="string"/>
426                  </attribute>
427                </choice>
428                <choice>
429                  <element name="threshold">
430                    <data type="double"/>
431                  </element>
432                  <attribute name="threshold">
433                    <data type="double"/>
434                  </attribute>
435                </choice>
436                <optional>
437                  <choice>
438                    <element name="scores">
439                      <list>
440                        <oneOrMore>
441                          <data type="string">
442                            <param name="maxLength">20</param>
443                          </data>
444                        </oneOrMore>
445                      </list>
446                    </element>
447                    <attribute name="scores">
448                      <list>
449                        <oneOrMore>
450                          <data type="string">
451                            <param name="maxLength">20</param>
452                          </data>
453                        </oneOrMore>
454                      </list>
455                    </attribute>
456                  </choice>
457                </optional>
458              </interleave>
459            </element>
460          </zeroOrMore>
461          <optional>
462            <choice>
463              <element name="derivative">
464                <data type="int"/>
465              </element>
466              <attribute name="derivative">
467                <data type="int"/>
468              </attribute>
469            </choice>
470          </optional>
471        </interleave>
472      </element>
473    </zeroOrMore>
474    <optional>
475      <element name="assume_separate">
476        <data type="boolean"/>
477      </element>
478    </optional>
479  </interleave>
480</element>
481