metanorma-iso 2.2.0 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/automerge.yml +31 -0
  3. data/lib/isodoc/iso/html/style-human.css +1 -1
  4. data/lib/isodoc/iso/html/style-iso.css +1 -1
  5. data/lib/isodoc/iso/i18n-en.yaml +9 -2
  6. data/lib/isodoc/iso/i18n-fr.yaml +9 -2
  7. data/lib/isodoc/iso/i18n-ru.yaml +9 -2
  8. data/lib/isodoc/iso/i18n-zh-Hans.yaml +1 -2
  9. data/lib/isodoc/iso/iso.amendment.xsl +54 -4
  10. data/lib/isodoc/iso/iso.international-standard.xsl +54 -4
  11. data/lib/isodoc/iso/presentation_xref.rb +10 -7
  12. data/lib/isodoc/iso/sections.rb +1 -1
  13. data/lib/isodoc/iso/xref.rb +37 -88
  14. data/lib/isodoc/iso/xref_section.rb +79 -0
  15. data/lib/metanorma/iso/basicdoc.rng +0 -27
  16. data/lib/metanorma/iso/biblio-standoc.rng +164 -0
  17. data/lib/metanorma/iso/biblio.rng +45 -18
  18. data/lib/metanorma/iso/isodoc.rng +31 -194
  19. data/lib/metanorma/iso/isostandard-amd.rng +3 -54
  20. data/lib/metanorma/iso/isostandard-compile.rng +7 -0
  21. data/lib/metanorma/iso/isostandard.rng +1 -192
  22. data/lib/metanorma/iso/relaton-iso.rng +225 -0
  23. data/lib/metanorma/iso/validate.rb +7 -7
  24. data/lib/metanorma/iso/version.rb +1 -1
  25. data/lib/metanorma/requirements/modspec.rb +26 -39
  26. data/spec/isodoc/inline_spec.rb +1 -1
  27. data/spec/metanorma/base_spec.rb +3 -3
  28. data/spec/metanorma/refs_spec.rb +7 -7
  29. data/spec/metanorma/validate_spec.rb +55 -55
  30. data/spec/requirements/requirement_components_spec.rb +53 -65
  31. data/spec/requirements/requirements_spec.rb +178 -263
  32. data/spec/requirements/xref_spec.rb +35 -35
  33. data/spec/vcr_cassettes/docrels.yml +32 -32
  34. data/spec/vcr_cassettes/withdrawn_iso.yml +30 -30
  35. metadata +7 -2
@@ -34,7 +34,7 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
34
34
  </ogc-standard>
35
35
  INPUT
36
36
  presxml = <<~OUTPUT
37
- <ogc-standard xmlns='https://standards.opengeospatial.org/document' type='presentation'>
37
+ <ogc-standard xmlns='https://standards.opengeospatial.org/document' type='presentation'>
38
38
  <preface>
39
39
  <foreword id='A' displayorder='1'>
40
40
  <title>Preface</title>
@@ -42,21 +42,21 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
42
42
  <name>Table 1 — Recommendation 1</name>
43
43
  <tbody>
44
44
  <tr>
45
- <td>Identifier</td>
45
+ <th>Identifier</th>
46
46
  <td>
47
47
  <tt>/ogc/recommendation/wfs/2</tt>
48
48
  </td>
49
49
  </tr>
50
50
  <tr>
51
- <td>Subject</td>
51
+ <th>Subject</th>
52
52
  <td>user</td>
53
53
  </tr>
54
54
  <tr>
55
- <td>Dependency</td>
55
+ <th>Prerequisite</th>
56
56
  <td>/ss/584/2015/level/1</td>
57
57
  </tr>
58
58
  <tr>
59
- <td>Statement</td>
59
+ <th>Statement</th>
60
60
  <td>
61
61
  <p id='_'>
62
62
  I recommend
@@ -66,24 +66,20 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
66
66
  </td>
67
67
  </tr>
68
68
  <tr id='A1'>
69
- <td>Test purpose</td>
69
+ <th>Test purpose</th>
70
70
  <td>
71
71
  <p>TEST PURPOSE</p>
72
72
  </td>
73
73
  </tr>
74
74
  <tr>
75
- <td>Statement</td>
75
+ <th>Statements</th>
76
76
  <td>
77
77
  <p id='_'>
78
78
  I recommend
79
79
  <em>2</em>
80
80
  .
81
81
  </p>
82
- </td>
83
- </tr>
84
- <tr>
85
- <td>Statement</td>
86
- <td>
82
+ <br/>
87
83
  <p id='_'>
88
84
  I recommend
89
85
  <em>2a</em>
@@ -92,13 +88,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
92
88
  </td>
93
89
  </tr>
94
90
  <tr id='A2'>
95
- <td>Conditions</td>
91
+ <th>Conditions</th>
96
92
  <td>
97
93
  <p>CONDITIONS</p>
98
94
  </td>
99
95
  </tr>
100
96
  <tr>
101
- <td>Statement</td>
97
+ <th>Statement</th>
102
98
  <td>
103
99
  <p id='_'>
104
100
  I recommend
@@ -108,13 +104,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
108
104
  </td>
109
105
  </tr>
110
106
  <tr id='A3'>
111
- <td>A</td>
107
+ <th>A</th>
112
108
  <td>
113
109
  <p>FIRST PART</p>
114
110
  </td>
115
111
  </tr>
116
112
  <tr>
117
- <td>Statement</td>
113
+ <th>Statement</th>
118
114
  <td>
119
115
  <p id='_'>
120
116
  I recommend
@@ -124,13 +120,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
124
120
  </td>
125
121
  </tr>
126
122
  <tr id='A4'>
127
- <td>B</td>
123
+ <th>B</th>
128
124
  <td>
129
125
  <p>SECOND PART</p>
130
126
  </td>
131
127
  </tr>
132
128
  <tr>
133
- <td>Statement</td>
129
+ <th>Statement</th>
134
130
  <td>
135
131
  <p id='_'>
136
132
  I recommend
@@ -140,13 +136,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
140
136
  </td>
141
137
  </tr>
142
138
  <tr id='A5'>
143
- <td>Test method</td>
139
+ <th>Test method</th>
144
140
  <td>
145
141
  <p>TEST METHOD</p>
146
142
  </td>
147
143
  </tr>
148
144
  <tr>
149
- <td>Statement</td>
145
+ <th>Statement</th>
150
146
  <td>
151
147
  <p id='_'>
152
148
  I recommend
@@ -156,24 +152,20 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
156
152
  </td>
157
153
  </tr>
158
154
  <tr id='A6'>
159
- <td>C</td>
155
+ <th>C</th>
160
156
  <td>
161
157
  <p>THIRD PART</p>
162
158
  </td>
163
159
  </tr>
164
160
  <tr>
165
- <td>Statement</td>
161
+ <th>Statements</th>
166
162
  <td>
167
163
  <p id='_'>
168
164
  I recommend
169
165
  <em>7</em>
170
166
  .
171
167
  </p>
172
- </td>
173
- </tr>
174
- <tr>
175
- <td>Statement</td>
176
- <td>
168
+ <br/>
177
169
  <p id='_'>
178
170
  I recommend
179
171
  <em>7a</em>
@@ -182,13 +174,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
182
174
  </td>
183
175
  </tr>
184
176
  <tr id='A7'>
185
- <td>Panda GHz express</td>
177
+ <th>Panda GHz express</th>
186
178
  <td>
187
179
  <p>PANDA PART</p>
188
180
  </td>
189
181
  </tr>
190
182
  <tr>
191
- <td>Statement</td>
183
+ <th>Statement</th>
192
184
  <td>
193
185
  <p id='_'>
194
186
  I recommend
@@ -198,14 +190,10 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
198
190
  </td>
199
191
  </tr>
200
192
  <tr id='A7'>
201
- <td>Guidance</td>
193
+ <th>Guidance</th>
202
194
  <td>
203
195
  <p>GUIDANCE #1</p>
204
- </td>
205
- </tr>
206
- <tr id='A8'>
207
- <td>Guidance</td>
208
- <td>
196
+ <br/>
209
197
  <p>GUIDANCE #2</p>
210
198
  </td>
211
199
  </tr>
@@ -260,21 +248,21 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
260
248
  <name>Table 1 — Recommendations class 1</name>
261
249
  <tbody>
262
250
  <tr>
263
- <td>Identifier</td>
251
+ <th>Identifier</th>
264
252
  <td>
265
253
  <tt>/ogc/recommendation/wfs/2</tt>
266
254
  </td>
267
255
  </tr>
268
256
  <tr>
269
- <td>Target type</td>
257
+ <th>Target type</th>
270
258
  <td>user</td>
271
259
  </tr>
272
260
  <tr>
273
- <td>Dependency</td>
261
+ <th>Prerequisite</th>
274
262
  <td>/ss/584/2015/level/1</td>
275
263
  </tr>
276
264
  <tr>
277
- <td>Description</td>
265
+ <th>Description</th>
278
266
  <td>
279
267
  <p id='_'>
280
268
  I recommend
@@ -284,13 +272,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
284
272
  </td>
285
273
  </tr>
286
274
  <tr id='A1'>
287
- <td>Test purpose</td>
275
+ <th>Test purpose</th>
288
276
  <td>
289
277
  <p>TEST PURPOSE</p>
290
278
  </td>
291
279
  </tr>
292
280
  <tr>
293
- <td>Description</td>
281
+ <th>Description</th>
294
282
  <td>
295
283
  <p id='_'>
296
284
  I recommend
@@ -300,13 +288,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
300
288
  </td>
301
289
  </tr>
302
290
  <tr id='A2'>
303
- <td>Conditions</td>
291
+ <th>Conditions</th>
304
292
  <td>
305
293
  <p>CONDITIONS</p>
306
294
  </td>
307
295
  </tr>
308
296
  <tr>
309
- <td>Description</td>
297
+ <th>Description</th>
310
298
  <td>
311
299
  <p id='_'>
312
300
  I recommend
@@ -316,13 +304,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
316
304
  </td>
317
305
  </tr>
318
306
  <tr id='A3'>
319
- <td>A</td>
307
+ <th>A</th>
320
308
  <td>
321
309
  <p>FIRST PART</p>
322
310
  </td>
323
311
  </tr>
324
312
  <tr>
325
- <td>Description</td>
313
+ <th>Description</th>
326
314
  <td>
327
315
  <p id='_'>
328
316
  I recommend
@@ -332,13 +320,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
332
320
  </td>
333
321
  </tr>
334
322
  <tr id='A4'>
335
- <td>B</td>
323
+ <th>B</th>
336
324
  <td>
337
325
  <p>SECOND PART</p>
338
326
  </td>
339
327
  </tr>
340
328
  <tr>
341
- <td>Description</td>
329
+ <th>Description</th>
342
330
  <td>
343
331
  <p id='_'>
344
332
  I recommend
@@ -348,13 +336,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
348
336
  </td>
349
337
  </tr>
350
338
  <tr id='A5'>
351
- <td>Test method</td>
339
+ <th>Test method</th>
352
340
  <td>
353
341
  <p>TEST METHOD</p>
354
342
  </td>
355
343
  </tr>
356
344
  <tr>
357
- <td>Description</td>
345
+ <th>Description</th>
358
346
  <td>
359
347
  <p id='_'>
360
348
  I recommend
@@ -364,13 +352,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
364
352
  </td>
365
353
  </tr>
366
354
  <tr id='A6'>
367
- <td>C</td>
355
+ <th>C</th>
368
356
  <td>
369
357
  <p>THIRD PART</p>
370
358
  </td>
371
359
  </tr>
372
360
  <tr>
373
- <td>Description</td>
361
+ <th>Description</th>
374
362
  <td>
375
363
  <p id='_'>
376
364
  I recommend
@@ -380,13 +368,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
380
368
  </td>
381
369
  </tr>
382
370
  <tr id='A7'>
383
- <td>Panda GHz express</td>
371
+ <th>Panda GHz express</th>
384
372
  <td>
385
373
  <p>PANDA PART</p>
386
374
  </td>
387
375
  </tr>
388
376
  <tr>
389
- <td>Description</td>
377
+ <th>Description</th>
390
378
  <td>
391
379
  <p id='_'>
392
380
  I recommend
@@ -453,13 +441,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
453
441
  <name>Table 1 — Requirement 1</name>
454
442
  <tbody>
455
443
  <tr>
456
- <td>Test method type</td>
444
+ <th>Test method type</th>
457
445
  <td>
458
446
  <p id='_'>Manual Inspection</p>
459
447
  </td>
460
448
  </tr>
461
449
  <tr>
462
- <td>Test method</td>
450
+ <th>Test method</th>
463
451
  <td>
464
452
  <p id='1'>
465
453
  <ol class="steps">
@@ -535,16 +523,16 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
535
523
  <name>Table 1 — Requirement 1: First</name>
536
524
  <tbody>
537
525
  <tr>
538
- <td>Identifier</td>
526
+ <th>Identifier</th>
539
527
  <td>
540
528
  <tt>/ogc/recommendation/wfs/1</tt>
541
529
  </td>
542
530
  </tr>
543
531
  <tr>
544
- <td>Conformance test</td>
532
+ <th>Conformance test</th>
545
533
  <td>
546
534
  <xref target='A2'>
547
- Requirement test 1:
535
+ Conformance test 1:
548
536
  Second
549
537
  </xref>
550
538
  </td>
@@ -552,16 +540,16 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
552
540
  </tbody>
553
541
  </table>
554
542
  <table id='A2' class='modspec' type='recommendtest'>
555
- <name>Table 2 — Requirement test 1: Second</name>
543
+ <name>Table 2 — Conformance test 1: Second</name>
556
544
  <tbody>
557
545
  <tr>
558
- <td>Identifier</td>
546
+ <th>Identifier</th>
559
547
  <td>
560
548
  <tt>/ogc/recommendation/wfs/2</tt>
561
549
  </td>
562
550
  </tr>
563
551
  <tr>
564
- <td>Requirement</td>
552
+ <th>Requirement</th>
565
553
  <td>
566
554
  <xref target='A1'>
567
555
  Requirement 1:
@@ -575,13 +563,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
575
563
  <name>Table 3 — Requirements class 1: Third</name>
576
564
  <tbody>
577
565
  <tr>
578
- <td>Identifier</td>
566
+ <th>Identifier</th>
579
567
  <td>
580
568
  <tt>/ogc/recommendation/wfs/3</tt>
581
569
  </td>
582
570
  </tr>
583
571
  <tr>
584
- <td>Conformance test</td>
572
+ <th>Conformance class</th>
585
573
  <td>
586
574
  <xref target='A4'>
587
575
  Conformance class 1:
@@ -595,13 +583,13 @@ RSpec.describe Metanorma::Requirements::Iso::Modspec do
595
583
  <name>Table 4 — Conformance class 1: Fourth</name>
596
584
  <tbody>
597
585
  <tr>
598
- <td>Identifier</td>
586
+ <th>Identifier</th>
599
587
  <td>
600
588
  <tt>/ogc/recommendation/wfs/4</tt>
601
589
  </td>
602
590
  </tr>
603
591
  <tr>
604
- <td>Requirements class</td>
592
+ <th>Requirements class</th>
605
593
  <td>
606
594
  <xref target='A3'>
607
595
  Requirements class 1: