vaucanson.xsd 22.5 KB
Newer Older
1
2
3
4
5
6
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://vaucanson.lrde.epita.fr"
xmlns="http://vaucanson.lrde.epita.fr"
elementFormDefault="qualified">

7
<!--
8
vaucanson.xsd version 0.3.1
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
<!--
 The following tags are used for the <expression_label> tag.
-->

<!--
 Attribute group used to factorize some code.
-->
 <xs:attributeGroup name="expression_attributes">
   <xs:attribute name="star" type="xs:boolean"/>
   <xs:attribute name="parenthesis" type="xs:boolean"/>
   <xs:attribute name="weight" type="xs:decimal"/>
 </xs:attributeGroup>

<!--
 Terminal tags of the expression grammar.
-->
<xs:complexType name="word">
   <xs:attribute name="value" type="xs:string" use="required"/>
   <xs:attributeGroup ref="expression_attributes"/>
 </xs:complexType>

<xs:complexType name="zero_val">
   <xs:attribute name="weight" type="xs:decimal"/>
</xs:complexType>

<xs:complexType name="identity_val">
   <xs:attribute name="weight" type="xs:decimal"/>
</xs:complexType>

<!--
 <sum> tag properties. Used to represent a product in the regular expression.
 The members of a sum can be any tag out of the <product>, <sum>, <zero>,
 <identity> and <word> ones.
 Caution, only these tags should be inserted where the <xs:any> tag stands.
-->
<xs:complexType name="sum">
   <xs:choice>
    <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
   </xs:choice>
   <xs:attributeGroup ref="expression_attributes"/>
</xs:complexType>

<!--
 <product> tag properties. Used to represent a product in the regular expression.
 The members of a product can be any tag out of the <product>, <sum>, <zero>,
 <identity> and <word> ones.
 Caution, only these tags should be inserted where the <xs:any> tag stands.
-->
<xs:complexType name="product">
  <xs:choice>
   <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
  </xs:choice>
   <xs:attributeGroup ref="expression_attributes"/>
</xs:complexType>

<!--
 <expression_label> tag properties. Used to clearly define the content of a
label by using <product>, <sum>, <zero>, <identity> and <word> tags.
-->
<xs:complexType name="expression_label">
  <xs:choice>
    <xs:element name="word" type="word" minOccurs="0"/>
    <xs:element name="sum" type="sum" minOccurs="0"/>
    <xs:element name="product" type="product" minOccurs="0"/>
    <xs:element name="zero" type="zero_val" minOccurs="0"/>
    <xs:element name="identity" type="identity_val" minOccurs="0"/>
  </xs:choice>
   <xs:attributeGroup ref="expression_attributes"/>
</xs:complexType>


82
83
84
85
<!--
<geometry> tag properties. Used to set the geometry properties of each
element.
- Appened to <state> node : x, y set position.
86
- Appened to <transition> node : transitionType set the type of the transition
87
88
(line, arcL, arcR, curve).
- Appended to <automaton> or <transducer> node : x, y set the global offset.
89
-->
90

91
92
<!--
This type is divided in two parts, since it's irrelevant to set
93
transitionType for states or coordinates for transitions.
94
-->
95
<xs:complexType name="geometry_state">
96
97
98
99
100
  <xs:attribute name="x" type="xs:decimal"/>
  <xs:attribute name="y" type="xs:decimal"/>
</xs:complexType>

<xs:complexType name="geometry_trans">
101
  <xs:attribute name="transitionType">
102
103
104
105
106
107
108
109
110
    <xs:simpleType>
      <xs:restriction base="xs:string">
	<xs:pattern value="line|arcL|arcR|curve"/>
      </xs:restriction>
    </xs:simpleType>
  </xs:attribute>
  <xs:attribute name="direction" type="xs:decimal"/>
</xs:complexType>

111
<xs:complexType name="geometry_global">
112
113
114
115
116
117
118
119
120
121
122
123
124
  <xs:attribute name="x" type="xs:decimal"/>
  <xs:attribute name="y" type="xs:decimal"/>
  <xs:attribute name="orientation" type="xs:decimal"/>
</xs:complexType>



<!--
<drawing> tag properties. Used to define useful properties that can be
used for XML to latex translation.

An optional "any" attribute is used, to let the user use personal attributes.
-->
125
<xs:complexType name="drawing" mixed="true">
126
127
128
  <xs:attribute name="stateSize" type="xs:string"/>
  <xs:attribute name="stateColor" type="xs:string"/>
  <xs:attribute name="stateFillColor" type="xs:string"/>
129
130
  <xs:attribute name="labelPositionX" type="xs:string"/>
  <xs:attribute name="labelPositionY" type="xs:string"/>
131
  <xs:attribute name="labelOffset" type="xs:string"/>
132
133
134
135
136
137
138
139
140
141
142
143
144
145
  <xs:attribute name="StateLabelColor" type="xs:string"/>
  <xs:attribute name="StateLabelScale" type="xs:string"/>
  <xs:attribute name="StateLineStyle" type="xs:string"/>
  <xs:attribute name="StateLineWidth" type="xs:string"/>
  <xs:attribute name="StateLineColor" type="xs:string"/>
  <xs:attribute name="StateFillStatus" type="xs:string"/>
  <xs:attribute name="StateFillColor" type="xs:string"/>
  <xs:attribute name="DimStateLineStyle" type="xs:string"/>
  <xs:attribute name="DimStateLineColor" type="xs:string"/>
  <xs:attribute name="DimStateLineCoef" type="xs:string"/>
  <xs:attribute name="DimStateLabelColor" type="xs:string"/>
  <xs:attribute name="DimStateFillColor" type="xs:string"/>
  <xs:attribute name="StateLineDblCoef" type="xs:string"/>
  <xs:attribute name="StateLineDblSep" type="xs:string"/>
146
147
148
149
150
  <xs:attribute name="TransitionLabelColor" type="xs:string"/>
  <xs:attribute name="TransitionLabelScale" type="xs:string"/>
  <xs:attribute name="TransitionLineStyle" type="xs:string"/>
  <xs:attribute name="TransitionLineWidth" type="xs:string"/>
  <xs:attribute name="TransitionLineColor" type="xs:string"/>
151
152
153
  <xs:attribute name="ArcAngle" type="xs:string"/>
  <xs:attribute name="LArcAngle" type="xs:string"/>
  <xs:attribute name="ArcCurvature" type="xs:string"/>
154
  <xs:attribute name="TransitionOffset" type="xs:string"/>
155
156
  <xs:attribute name="ArcOffset" type="xs:string"/>
  <xs:attribute name="LoopOffset" type="xs:string"/>
157
158
159
160
161
162
163
164
165
  <xs:attribute name="ForthBackTransitionOffset" type="xs:string"/>
  <xs:attribute name="DimTransitionLineStyle" type="xs:string"/>
  <xs:attribute name="DimTransitionLineCoef" type="xs:string"/>
  <xs:attribute name="DimTransitionLineColor" type="xs:string"/>
  <xs:attribute name="DimTransitionLabelColor" type="xs:string"/>
  <xs:attribute name="TransitionBorderCoef" type="xs:string"/>
  <xs:attribute name="TransitionBorderColor" type="xs:string"/>
  <xs:attribute name="TransitionLineDoubleCoefOne" type="xs:string"/>
  <xs:attribute name="TransitionLineDoubleCoefTwo" type="xs:string"/>
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
  <xs:attribute name="ZZSize" type="xs:string"/>
  <xs:attribute name="ZZShape" type="xs:string"/>
  <xs:attribute name="ZZLineWidth" type="xs:string"/>
  <xs:attribute name="TransLabelZZCoef" type="xs:string"/>
  <xs:attribute name="LargeScale" type="xs:string"/>
  <xs:attribute name="MediumScale" type="xs:string"/>
  <xs:attribute name="SmallScale" type="xs:string"/>
  <xs:attribute name="TinyScale" type="xs:string"/>
  <xs:attribute name="MediumStateDiameter" type="xs:string"/>
  <xs:attribute name="SmallStateDiameter" type="xs:string"/>
  <xs:attribute name="LargeStateDiameter" type="xs:string"/>
  <xs:attribute name="VerySmallStateDiameter" type="xs:string"/>
  <xs:attribute name="VSStateLineCoef" type="xs:string"/>
  <xs:attribute name="ArrowOnMediumState" type="xs:string"/>
  <xs:attribute name="ArrowOnSmallState" type="xs:string"/>
  <xs:attribute name="ArrowOnLargeState" type="xs:string"/>
  <xs:attribute name="ArrowOnVerySmallState" type="xs:string"/>
  <xs:attribute name="LoopOnMediumState" type="xs:string"/>
  <xs:attribute name="LoopOnSmallState" type="xs:string"/>
  <xs:attribute name="LoopOnLargeState" type="xs:string"/>
  <xs:attribute name="LoopOnVariableState" type="xs:string"/>
  <xs:attribute name="CLoopOnMediumState" type="xs:string"/>
  <xs:attribute name="CLoopOnSmallState" type="xs:string"/>
  <xs:attribute name="CLoopOnLargeState" type="xs:string"/>
  <xs:attribute name="CLoopOnVariableState" type="xs:string"/>
191
192
  <xs:attribute name="TransitionLabelPosit" type="xs:string"/>
  <xs:attribute name="TransitionLabelRevPosit" type="xs:string"/>
193
194
195
196
197
198
199
200
201
202
203
204
  <xs:attribute name="ArcLabelPosit" type="xs:string"/>
  <xs:attribute name="ArcLabelRevPosit" type="xs:string"/>
  <xs:attribute name="LArcLabelPosit" type="xs:string"/>
  <xs:attribute name="LArcLabelRevPosit" type="xs:string"/>
  <xs:attribute name="LoopLabelPosit" type="xs:string"/>
  <xs:attribute name="LoopLabelRevPosit" type="xs:string"/>
  <xs:attribute name="CLoopLabelPosit" type="xs:string"/>
  <xs:attribute name="CLoopLabelRevPosit" type="xs:string"/>
  <xs:attribute name="InitStateLabelPosit" type="xs:string"/>
  <xs:attribute name="InitStateLabelRevPosit" type="xs:string"/>
  <xs:attribute name="FinalStateLabelPosit" type="xs:string"/>
  <xs:attribute name="FinalStateLabelRevPosit" type="xs:string"/>
205
206
207
208
209
210
211
  <xs:attribute name="TransitionArrowWidth" type="xs:string"/>
  <xs:attribute name="TransitionArrowLengthCoef" type="xs:string"/>
  <xs:attribute name="TransitionDblArrowWidth" type="xs:string"/>
  <xs:attribute name="TransitionDblArrowLengthCoef" type="xs:string"/>
  <xs:attribute name="TransitionArrowInsetCoef" type="xs:string"/>
  <xs:attribute name="TransitionArrowStyle" type="xs:string"/>
  <xs:attribute name="TransitionRevArrowStyle" type="xs:string"/>
212
213
214
215
216
217
218
219
220
221
222
223
224
  <xs:attribute name="StateDimen" type="xs:string"/>
  <xs:attribute name="StateDblDimen" type="xs:string"/>
  <xs:attribute name="left" type="xs:string"/>
  <xs:attribute name="bottom" type="xs:string"/>
  <xs:attribute name="top" type="xs:string"/>
  <xs:attribute name="right" type="xs:string"/>
  <xs:attribute name="label" type="xs:string"/>
  <xs:attribute name="x" type="xs:string"/>
  <xs:attribute name="y" type="xs:string"/>
  <xs:attribute name="curvature" type="xs:string"/>
  <xs:attribute name="curvside" type="xs:string"/>
  <xs:attribute name="direction" type="xs:string"/>
  <xs:attribute name="doubleline" type="xs:string"/>
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
  <xs:anyAttribute/>
</xs:complexType>


<!--
<semiring> tag properties. Used to define the semiring of the
automaton. This tag can be used to define a set, and operations on
it. It is also possible to recursively construct complex structures
with monoids and semirings.

The default semiring is Boolean.
-->
<xs:complexType name="semiring">
  <xs:sequence>
    <xs:element name="monoid" type="monoid_automaton" minOccurs="0"/>
240
    <xs:element name="semiring" type="semiring" minOccurs="0"/>
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
  </xs:sequence>
  <xs:attribute name="set" default="B">
    <xs:simpleType>
      <xs:restriction base="xs:string">
	<xs:pattern value="B|R|Z|ratSeries"/>
      </xs:restriction>
    </xs:simpleType>
  </xs:attribute>
  <xs:attribute name="operations" default="numerical">
    <xs:simpleType>
      <xs:restriction base="xs:string">
	<xs:pattern value="numerical|boolean|tropicalMin|tropicalMax"/>
      </xs:restriction>
    </xs:simpleType>
  </xs:attribute>
</xs:complexType>


<!--
<monoid> tag properties. Used to define all the monoid(s) properties
of the automaton / transducer.
A monoid expects <generator> tags to define its generators, when available.
263
The <monoid> tag can be recursively constructed to build n-product of monoid.
264
265
266
267
268

For automata, default is free monoid, on the ASCII alphabet.
For transducers, default is product of free monoid, both on the ASCII alphabet
-->
<!--
269
The monoid type is broken in two parts, for automata and transducers.
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
-->
<xs:complexType name="generator">
  <xs:attribute name="value" type="xs:string"/>
  <xs:attribute name="range" type="xs:string" default="ascii"/>
</xs:complexType>

<xs:complexType name="monoid_automaton">
  <xs:choice>
    <xs:element name="monoid" type="monoid_automaton" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element name="generator" type="generator" minOccurs="0" maxOccurs="unbounded"/>
  </xs:choice>
  <xs:attribute name="type" default="free">
    <xs:simpleType>
      <xs:restriction base="xs:string">
	<xs:pattern value="unit|free|product"/>
      </xs:restriction>
    </xs:simpleType>
  </xs:attribute>
  <xs:attribute name="generators" default="letters">
    <xs:simpleType>
      <xs:restriction base="xs:string">
291
	<xs:pattern value="letters|digits|pair|weighted"/>
292
293
294
      </xs:restriction>
      </xs:simpleType>
  </xs:attribute>
295
  <xs:attribute name="identity_symbol" type="xs:string"/>
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
</xs:complexType>


<xs:complexType name="monoid_transducer">
  <xs:choice>
    <xs:element name="monoid" type="monoid_automaton" minOccurs="0" maxOccurs="2"/>
    <xs:element name="generator" type="generator" minOccurs="0" maxOccurs="unbounded"/>
  </xs:choice>
  <xs:attribute name="type" default="product">
    <xs:simpleType>
      <xs:restriction base="xs:string">
	<xs:pattern value="unit|free|product"/>
      </xs:restriction>
    </xs:simpleType>
  </xs:attribute>
  <xs:attribute name="generators" default="letters">
    <xs:simpleType>
      <xs:restriction base="xs:string">
314
	<xs:pattern value="letters|digits|pair|weighted"/>
315
316
317
      </xs:restriction>
    </xs:simpleType>
  </xs:attribute>
318
  <xs:attribute name="identity_symbol" type="xs:string"/>
319
320
321
322
</xs:complexType>


<!--
323
<label_type> tag properties. This tag encapsulates semiring and monoid
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
definitions to entirely define the algebraic structure the automaton /
transducer is working on. This tag is optionnal if you want to use
default values. You can specify only one of the monoid / semiring tag,
if necessary.
-->
<xs:complexType name="type_automaton">
  <xs:sequence>
    <xs:element name="monoid" type="monoid_automaton" minOccurs="0"/>
    <xs:element name="semiring" type="semiring" minOccurs="0"/>
  </xs:sequence>
</xs:complexType>

<xs:complexType name="type_transducer">
  <xs:sequence>
    <xs:element name="monoid" type="monoid_transducer" minOccurs="0"/>
    <xs:element name="semiring" type="semiring" minOccurs="0"/>
  </xs:sequence>
</xs:complexType>


<!--
<session> tag properties. This tag is used to encapsulate many
automata / transducers in a single XML file.
The session can be named using the "name" attribute. Global offset can
be set using the <geometry> tag, and global drawing properties can be
set using the <drawing> tag.
-->
<xs:element name="session">
  <xs:complexType>
    <xs:sequence>
354
355
      <xs:element name="automaton" type="automaton" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="transducer" type="transducer" minOccurs="0" maxOccurs="unbounded"/>
356
      <xs:element name="geometry" type="geometry_global" minOccurs="0"/>
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
      <xs:element name="drawing" type="drawing" minOccurs="0"/>
    </xs:sequence>
  <xs:attribute name="name" type="xs:string"/>
  </xs:complexType>
</xs:element>


<!--
<state> tag properties. Used to define a state in the automaton /
transducer. This tag must be a child of <states> tag.
The "name" attribute is required, the other are optional. Use the
"number" attribute to set an order on states.
State position can be set using the <geometry> tag, and drawing
properties can be set with the <drawing> tag.
-->
<xs:complexType name="state">
  <xs:sequence>
374
    <xs:element name="geometry" type="geometry_state" minOccurs="0"/>
375
376
377
378
379
380
381
382
383
384
    <xs:element name="drawing" type="drawing" minOccurs="0"/>
  </xs:sequence>
  <xs:attribute name="name" type="xs:string" use="required"/>
  <xs:attribute name="label" type="xs:string"/>
  <xs:attribute name="number" type="xs:integer"/>
</xs:complexType>


<!--
<transition> tag properties. Used to define a transition between two
385
states . This tag must be a child of <transitions> tag.
386
387
388
The optional "weight" attribute can be used on weighted automata.
On transducers, use the "in" and "out" attributes to define input and
output for the transition.
389
Transition type can be defined using the <geometry> tag, and drawing properties can
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
be set with the <drawing> tag.

When unspecified, the unlabeled transition should be considered
labeled with the identity on the monoid.
-->
<xs:complexType name="label_base">
  <xs:attribute name="label" type="xs:string"/>
  <xs:attribute name="weight" type="xs:string"/>
</xs:complexType>

<xs:complexType name="label_transducer">
  <xs:attribute name="in" type="xs:string"/>
  <xs:attribute name="out" type="xs:string"/>
</xs:complexType>

<xs:complexType name="transition">
  <xs:sequence>
    <xs:element name="geometry" type="geometry_trans" minOccurs="0"/>
    <xs:element name="drawing" type="drawing" minOccurs="0"/>
409
    <xs:element name="label" type="expression_label" minOccurs="0"/>
410
411
412
413
414
415
416
417
418
419
420
421
  </xs:sequence>
  <xs:attribute name="src" type="xs:string" use="required"/>
  <xs:attribute name="dst" type="xs:string" use="required"/>
  <xs:attribute name="name" type="xs:string"/>
  <xs:attribute name="label" type="xs:string"/>
  <xs:attribute name="weight" type="xs:string"/>
</xs:complexType>

<xs:complexType name="transition_transducer">
  <xs:sequence>
    <xs:element name="geometry" type="geometry_trans" minOccurs="0"/>
    <xs:element name="drawing" type="drawing" minOccurs="0"/>
422
423
    <xs:element name="in" type="expression_label" minOccurs="0"/>
    <xs:element name="out" type="expression_label" minOccurs="0"/>
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
  </xs:sequence>
  <xs:attribute name="src" type="xs:string" use="required"/>
  <xs:attribute name="dst" type="xs:string" use="required"/>
  <xs:attribute name="name" type="xs:string"/>
  <xs:attribute name="label" type="xs:string"/>
  <xs:attribute name="weight" type="xs:string"/>
  <xs:attribute name="in" type="xs:string"/>
  <xs:attribute name="out" type="xs:string"/>
</xs:complexType>


<!--
<states> tag properties. Used to enumerate states in the automaton.
Global geometry and drawing properties can be set for all states.
-->
<xs:complexType name="states">
  <xs:sequence>
    <xs:element name="state" type="state" minOccurs="0" maxOccurs="unbounded"/>
442
    <xs:element name="geometry" type="geometry_state" minOccurs="0"/>
443
444
445
446
447
448
    <xs:element name="drawing" type="drawing" minOccurs="0"/>
  </xs:sequence>
</xs:complexType>


<!--
449
450
<transitions> tag properties. Used to enumerate transitions in the
automaton, including initials and finals.
451
452
453
454
455
Global geometry and drawing properties can be set for all transitions.
-->
<xs:complexType name="transitions">
  <xs:sequence>
    <xs:element name="transition" type="transition" minOccurs="0" maxOccurs="unbounded"/>
456
457
    <xs:element name="initial" type="initial" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element name="final" type="final" minOccurs="0" maxOccurs="unbounded"/>
458
459
460
461
462
463
464
465
    <xs:element name="geometry" type="geometry_trans" minOccurs="0"/>
    <xs:element name="drawing" type="drawing" minOccurs="0"/>
  </xs:sequence>
</xs:complexType>

<xs:complexType name="transitions_transducer">
  <xs:sequence>
    <xs:element name="transition" type="transition_transducer" minOccurs="0" maxOccurs="unbounded"/>
466
467
    <xs:element name="initial" type="initial_transducer" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element name="final" type="final_transducer" minOccurs="0" maxOccurs="unbounded"/>
468
469
470
471
472
473
474
475
    <xs:element name="geometry" type="geometry_trans" minOccurs="0"/>
    <xs:element name="drawing" type="drawing" minOccurs="0"/>
  </xs:sequence>
</xs:complexType>


<!--
<initial> tag properties. Used to set a state as initial state. This
476
tag must be a child of <initials> tag.
477
478
479
480
481
482
483
Geometry can be defined (the orientation of the initial transition),
and drawing properties.
-->
<xs:complexType name="initial">
  <xs:sequence>
    <xs:element name="geometry" type="geometry_trans" minOccurs="0"/>
    <xs:element name="drawing" type="drawing" minOccurs="0"/>
484
    <xs:element name="label" type="expression_label" minOccurs="0"/>
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
  </xs:sequence>
  <xs:attribute name="state" type="xs:string" use="required"/>
  <xs:attribute name="label" type="xs:string"/>
  <xs:attribute name="weight" type="xs:string"/>
</xs:complexType>

<xs:complexType name="initial_transducer">
  <xs:sequence>
    <xs:element name="geometry" type="geometry_trans" minOccurs="0"/>
    <xs:element name="drawing" type="drawing" minOccurs="0"/>
  </xs:sequence>
  <xs:attribute name="state" type="xs:string" use="required"/>
  <xs:attribute name="label" type="xs:string"/>
  <xs:attribute name="weight" type="xs:string"/>
  <xs:attribute name="in" type="xs:string"/>
  <xs:attribute name="out" type="xs:string"/>
</xs:complexType>


504
<!--
505
506
507
508
509
510
<final> tag properties. Same as below, on final states.
-->
<xs:complexType name="final">
  <xs:sequence>
    <xs:element name="geometry" type="geometry_trans" minOccurs="0"/>
    <xs:element name="drawing" type="drawing" minOccurs="0"/>
511
    <xs:element name="label" type="expression_label" minOccurs="0"/>
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
  </xs:sequence>
  <xs:attribute name="state" type="xs:string" use="required"/>
  <xs:attribute name="label" type="xs:string"/>
  <xs:attribute name="weight" type="xs:string"/>
</xs:complexType>

<xs:complexType name="final_transducer">
  <xs:sequence>
    <xs:element name="geometry" type="geometry_trans" minOccurs="0"/>
    <xs:element name="drawing" type="drawing" minOccurs="0"/>
  </xs:sequence>
  <xs:attribute name="state" type="xs:string" use="required"/>
  <xs:attribute name="label" type="xs:string"/>
  <xs:attribute name="weight" type="xs:string"/>
  <xs:attribute name="in" type="xs:string"/>
  <xs:attribute name="out" type="xs:string"/>
</xs:complexType>



532
<!--
533
534
535
536
537
538
539
540
541
542
<content> tag properties. This tag is used to define the structure of
the automaton. It's a combination of <states>, <transitions>,
<initials> and <finals> tags. None of them are optional, and the order
is constrained.
-->
<!--
Two possible contents are available, one for automata and one for transducers.
-->
<xs:complexType name="content_automaton">
  <xs:sequence>
543
    <xs:element name="geometry" type="geometry_global" minOccurs="0"/>
544
545
546
547
548
549
550
551
    <xs:element name="drawing" type="drawing" minOccurs="0"/>
    <xs:element name="states" type="states"/>
    <xs:element name="transitions" type="transitions"/>
  </xs:sequence>
</xs:complexType>

<xs:complexType name="content_transducer">
  <xs:sequence>
552
    <xs:element name="geometry" type="geometry_global" minOccurs="0"/>
553
554
555
556
557
558
559
560
561
562
563
564
565
566
    <xs:element name="drawing" type="drawing" minOccurs="0"/>
    <xs:element name="states" type="states"/>
    <xs:element name="transitions" type="transitions_transducer"/>
  </xs:sequence>
</xs:complexType>


<!--
<automaton> tag properties. It can be the root of the document, or a
child of the <session> tag. Global geometry and drawing properties can
be set.
-->
<xs:complexType name="automaton">
  <xs:sequence>
567
    <xs:element name="label_type" type="type_automaton" minOccurs="0"/>
568
    <xs:element name="content" type="content_automaton"/>
569
    <xs:element name="geometry" type="geometry_global" minOccurs="0"/>
570
571
572
573
574
575
576
577
578
579
580
581
    <xs:element name="drawing" type="drawing" minOccurs="0"/>
  </xs:sequence>
  <xs:attribute name="name" type="xs:string"/>
</xs:complexType>

<xs:element name="automaton" type="automaton"/>

<!--
<transducer> tag properties. Same as above, but for transducers.
-->
<xs:complexType name="transducer">
  <xs:sequence>
582
    <xs:element name="label_type" type="type_transducer" minOccurs="0"/>
583
    <xs:element name="content" type="content_transducer"/>
584
    <xs:element name="geometry" type="geometry_global" minOccurs="0"/>
585
586
587
588
589
590
591
592
    <xs:element name="drawing" type="drawing" minOccurs="0"/>
  </xs:sequence>
  <xs:attribute name="name" type="xs:string"/>
</xs:complexType>

<xs:element name="transducer" type="transducer"/>

</xs:schema>