relaton-iec 1.13.0 → 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,514 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
- <!-- default namespace isostandard = "https://www.metanorma.com/ns/iso" -->
4
- <include href="isodoc.rng">
5
- <start>
6
- <ref name="iso-standard"/>
7
- </start>
8
- <define name="organization">
9
- <element name="organization">
10
- <oneOrMore>
11
- <ref name="orgname"/>
12
- </oneOrMore>
13
- <optional>
14
- <ref name="abbreviation"/>
15
- </optional>
16
- <optional>
17
- <ref name="uri"/>
18
- </optional>
19
- <zeroOrMore>
20
- <ref name="org-identifier"/>
21
- </zeroOrMore>
22
- <zeroOrMore>
23
- <ref name="contact"/>
24
- </zeroOrMore>
25
- <optional>
26
- <ref name="technical-committee"/>
27
- </optional>
28
- <optional>
29
- <ref name="subcommittee"/>
30
- </optional>
31
- <optional>
32
- <ref name="workgroup"/>
33
- </optional>
34
- <optional>
35
- <ref name="secretariat"/>
36
- </optional>
37
- </element>
38
- </define>
39
- <define name="BibDataExtensionType">
40
- <ref name="doctype"/>
41
- <optional>
42
- <ref name="docsubtype"/>
43
- </optional>
44
- <optional>
45
- <ref name="horizontal"/>
46
- </optional>
47
- <ref name="editorialgroup"/>
48
- <optional>
49
- <ref name="approvalgroup"/>
50
- </optional>
51
- <zeroOrMore>
52
- <ref name="ics"/>
53
- </zeroOrMore>
54
- <ref name="structuredidentifier"/>
55
- <optional>
56
- <ref name="stagename"/>
57
- </optional>
58
- </define>
59
- <define name="bdate">
60
- <element name="date">
61
- <attribute name="type">
62
- <choice>
63
- <ref name="BibliographicDateType"/>
64
- <text/>
65
- </choice>
66
- </attribute>
67
- <choice>
68
- <group>
69
- <element name="from">
70
- <ref name="ISO8601Date"/>
71
- </element>
72
- <optional>
73
- <element name="to">
74
- <ref name="ISO8601Date"/>
75
- </element>
76
- </optional>
77
- </group>
78
- <element name="on">
79
- <choice>
80
- <ref name="ISO8601Date"/>
81
- <value>--</value>
82
- <value>–</value>
83
- </choice>
84
- </element>
85
- </choice>
86
- </element>
87
- </define>
88
- <define name="sections">
89
- <element name="sections">
90
- <zeroOrMore>
91
- <choice>
92
- <ref name="note"/>
93
- <ref name="admonition"/>
94
- </choice>
95
- </zeroOrMore>
96
- <ref name="clause"/>
97
- <optional>
98
- <choice>
99
- <ref name="term-clause"/>
100
- <ref name="terms"/>
101
- </choice>
102
- </optional>
103
- <optional>
104
- <ref name="definitions"/>
105
- </optional>
106
- <oneOrMore>
107
- <choice>
108
- <ref name="clause"/>
109
- <ref name="term-clause"/>
110
- <ref name="terms"/>
111
- </choice>
112
- </oneOrMore>
113
- </element>
114
- </define>
115
- <define name="Clause-Section">
116
- <optional>
117
- <attribute name="id">
118
- <data type="ID"/>
119
- </attribute>
120
- </optional>
121
- <optional>
122
- <attribute name="language"/>
123
- </optional>
124
- <optional>
125
- <attribute name="script"/>
126
- </optional>
127
- <optional>
128
- <attribute name="inline-header">
129
- <data type="boolean"/>
130
- </attribute>
131
- </optional>
132
- <optional>
133
- <attribute name="obligation">
134
- <choice>
135
- <value>normative</value>
136
- <value>informative</value>
137
- </choice>
138
- </attribute>
139
- </optional>
140
- <optional>
141
- <attribute name="type"/>
142
- </optional>
143
- <optional>
144
- <ref name="section-title"/>
145
- </optional>
146
- <choice>
147
- <choice>
148
- <oneOrMore>
149
- <ref name="BasicBlock"/>
150
- </oneOrMore>
151
- <ref name="amend"/>
152
- </choice>
153
- <oneOrMore>
154
- <ref name="clause-subsection"/>
155
- </oneOrMore>
156
- </choice>
157
- </define>
158
- <define name="term">
159
- <element name="term">
160
- <optional>
161
- <attribute name="id">
162
- <data type="ID"/>
163
- </attribute>
164
- </optional>
165
- <optional>
166
- <attribute name="language"/>
167
- </optional>
168
- <optional>
169
- <attribute name="script"/>
170
- </optional>
171
- <optional>
172
- <attribute name="tag"/>
173
- </optional>
174
- <optional>
175
- <attribute name="multilingual-rendering">
176
- <ref name="MultilingualRenderingType"/>
177
- </attribute>
178
- </optional>
179
- <ref name="preferred"/>
180
- <zeroOrMore>
181
- <ref name="admitted"/>
182
- </zeroOrMore>
183
- <zeroOrMore>
184
- <ref name="deprecates"/>
185
- </zeroOrMore>
186
- <optional>
187
- <ref name="termdomain"/>
188
- </optional>
189
- <ref name="termdefinition"/>
190
- <zeroOrMore>
191
- <ref name="termnote"/>
192
- </zeroOrMore>
193
- <zeroOrMore>
194
- <ref name="termexample"/>
195
- </zeroOrMore>
196
- <zeroOrMore>
197
- <ref name="termsource"/>
198
- </zeroOrMore>
199
- <zeroOrMore>
200
- <ref name="term"/>
201
- </zeroOrMore>
202
- </element>
203
- </define>
204
- <define name="annex">
205
- <element name="annex">
206
- <optional>
207
- <attribute name="id">
208
- <data type="ID"/>
209
- </attribute>
210
- </optional>
211
- <optional>
212
- <attribute name="language"/>
213
- </optional>
214
- <optional>
215
- <attribute name="script"/>
216
- </optional>
217
- <optional>
218
- <attribute name="inline-header">
219
- <data type="boolean"/>
220
- </attribute>
221
- </optional>
222
- <optional>
223
- <attribute name="obligation">
224
- <choice>
225
- <value>normative</value>
226
- <value>informative</value>
227
- </choice>
228
- </attribute>
229
- </optional>
230
- <optional>
231
- <ref name="section-title"/>
232
- </optional>
233
- <zeroOrMore>
234
- <!--
235
- allow hanging paragraps in annexes: they introduce lists
236
- ( paragraph-with-footnote | table | note | formula | admonition | ol | ul | dl | figure | quote | sourcecode | review | example )*,
237
- -->
238
- <ref name="BasicBlock"/>
239
- </zeroOrMore>
240
- <zeroOrMore>
241
- <ref name="clause-hanging-paragraph-with-footnote"/>
242
- </zeroOrMore>
243
- <zeroOrMore>
244
- <ref name="annex-appendix"/>
245
- </zeroOrMore>
246
- </element>
247
- </define>
248
- <define name="AdmonitionType">
249
- <choice>
250
- <value>danger</value>
251
- <value>caution</value>
252
- <value>warning</value>
253
- <value>important</value>
254
- <value>safety precautions</value>
255
- <value>editorial</value>
256
- </choice>
257
- </define>
258
- <define name="preface">
259
- <element name="preface">
260
- <optional>
261
- <ref name="abstract"/>
262
- </optional>
263
- <ref name="foreword"/>
264
- <optional>
265
- <ref name="introduction"/>
266
- </optional>
267
- </element>
268
- </define>
269
- <define name="DocumentType">
270
- <choice>
271
- <value>international-standard</value>
272
- <value>technical-specification</value>
273
- <value>technical-report</value>
274
- <value>publicly-available-specification</value>
275
- <value>international-workshop-agreement</value>
276
- <value>guide</value>
277
- <value>amendment</value>
278
- <value>technical-corrigendum</value>
279
- <value>directive</value>
280
- </choice>
281
- </define>
282
- <define name="DocumentSubtype">
283
- <choice>
284
- <value>specification</value>
285
- <value>method-of-test</value>
286
- <value>vocabulary</value>
287
- <value>code-of-practice</value>
288
- </choice>
289
- </define>
290
- <define name="structuredidentifier">
291
- <element name="structuredidentifier">
292
- <optional>
293
- <attribute name="type"/>
294
- </optional>
295
- <group>
296
- <ref name="documentnumber"/>
297
- <optional>
298
- <ref name="tc-documentnumber"/>
299
- </optional>
300
- </group>
301
- </element>
302
- </define>
303
- <define name="foreword">
304
- <element name="foreword">
305
- <ref name="Basic-Section"/>
306
- </element>
307
- </define>
308
- <define name="introduction">
309
- <element name="introduction">
310
- <ref name="Content-Section"/>
311
- </element>
312
- </define>
313
- <define name="editorialgroup">
314
- <element name="editorialgroup">
315
- <ref name="ISOProjectGroup"/>
316
- </element>
317
- </define>
318
- <define name="Content-Section">
319
- <optional>
320
- <attribute name="id">
321
- <data type="ID"/>
322
- </attribute>
323
- </optional>
324
- <optional>
325
- <attribute name="language"/>
326
- </optional>
327
- <optional>
328
- <attribute name="script"/>
329
- </optional>
330
- <optional>
331
- <attribute name="inline-header">
332
- <data type="boolean"/>
333
- </attribute>
334
- </optional>
335
- <optional>
336
- <attribute name="obligation">
337
- <choice>
338
- <value>normative</value>
339
- <value>informative</value>
340
- </choice>
341
- </attribute>
342
- </optional>
343
- <optional>
344
- <attribute name="number"/>
345
- </optional>
346
- <optional>
347
- <attribute name="type"/>
348
- </optional>
349
- <optional>
350
- <ref name="section-title"/>
351
- </optional>
352
- <choice>
353
- <zeroOrMore>
354
- <ref name="BasicBlock"/>
355
- </zeroOrMore>
356
- <oneOrMore>
357
- <ref name="content-subsection"/>
358
- </oneOrMore>
359
- </choice>
360
- </define>
361
- </include>
362
- <!-- end overrides -->
363
- <define name="ISOProjectGroup">
364
- <zeroOrMore>
365
- <ref name="agency"/>
366
- </zeroOrMore>
367
- <oneOrMore>
368
- <ref name="technical-committee"/>
369
- </oneOrMore>
370
- <zeroOrMore>
371
- <ref name="subcommittee"/>
372
- </zeroOrMore>
373
- <zeroOrMore>
374
- <ref name="workgroup"/>
375
- </zeroOrMore>
376
- <optional>
377
- <ref name="secretariat"/>
378
- </optional>
379
- </define>
380
- <define name="approvalgroup">
381
- <element name="approvalgroup">
382
- <ref name="ISOProjectGroup"/>
383
- </element>
384
- </define>
385
- <define name="agency">
386
- <element name="agency">
387
- <text/>
388
- </element>
389
- </define>
390
- <!--
391
- We display the Normative References between scope and terms; but to keep the
392
- grammar simple, we keep the references together
393
- -->
394
- <define name="iso-standard">
395
- <element name="iso-standard">
396
- <attribute name="version"/>
397
- <attribute name="type">
398
- <choice>
399
- <value>semantic</value>
400
- <value>presentation</value>
401
- </choice>
402
- </attribute>
403
- <ref name="bibdata"/>
404
- <zeroOrMore>
405
- <ref name="termdocsource"/>
406
- </zeroOrMore>
407
- <optional>
408
- <ref name="misccontainer"/>
409
- </optional>
410
- <optional>
411
- <ref name="boilerplate"/>
412
- </optional>
413
- <ref name="preface"/>
414
- <oneOrMore>
415
- <ref name="sections"/>
416
- </oneOrMore>
417
- <zeroOrMore>
418
- <ref name="annex"/>
419
- </zeroOrMore>
420
- <ref name="bibliography"/>
421
- <zeroOrMore>
422
- <ref name="indexsect"/>
423
- </zeroOrMore>
424
- </element>
425
- </define>
426
- <define name="horizontal">
427
- <element name="horizontal">
428
- <data type="boolean"/>
429
- </element>
430
- </define>
431
- <define name="documentnumber">
432
- <element name="project-number">
433
- <optional>
434
- <attribute name="part">
435
- <data type="int"/>
436
- </attribute>
437
- </optional>
438
- <optional>
439
- <attribute name="subpart">
440
- <data type="int"/>
441
- </attribute>
442
- </optional>
443
- <text/>
444
- </element>
445
- </define>
446
- <define name="tc-documentnumber">
447
- <element name="tc-document-number">
448
- <data type="int"/>
449
- </element>
450
- </define>
451
- <define name="subcommittee">
452
- <element name="subcommittee">
453
- <ref name="IsoWorkgroup"/>
454
- </element>
455
- </define>
456
- <define name="workgroup">
457
- <element name="workgroup">
458
- <ref name="IsoWorkgroup"/>
459
- </element>
460
- </define>
461
- <define name="secretariat">
462
- <element name="secretariat">
463
- <text/>
464
- </element>
465
- </define>
466
- <define name="clause-hanging-paragraph-with-footnote">
467
- <element name="clause">
468
- <optional>
469
- <attribute name="id">
470
- <data type="ID"/>
471
- </attribute>
472
- </optional>
473
- <optional>
474
- <attribute name="language"/>
475
- </optional>
476
- <optional>
477
- <attribute name="script"/>
478
- </optional>
479
- <optional>
480
- <attribute name="inline-header">
481
- <data type="boolean"/>
482
- </attribute>
483
- </optional>
484
- <optional>
485
- <attribute name="obligation">
486
- <choice>
487
- <value>normative</value>
488
- <value>informative</value>
489
- </choice>
490
- </attribute>
491
- </optional>
492
- <optional>
493
- <ref name="section-title"/>
494
- </optional>
495
- <zeroOrMore>
496
- <!-- allow hanging paragraphs in annexes: they introduce lists -->
497
- <ref name="BasicBlock"/>
498
- </zeroOrMore>
499
- <zeroOrMore>
500
- <ref name="clause-hanging-paragraph-with-footnote"/>
501
- </zeroOrMore>
502
- </element>
503
- </define>
504
- <define name="annex-appendix">
505
- <element name="appendix">
506
- <ref name="Clause-Section"/>
507
- </element>
508
- </define>
509
- <define name="stagename">
510
- <element name="stagename">
511
- <text/>
512
- </element>
513
- </define>
514
- </grammar>