metanorma-standoc 1.3.24 → 1.3.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/macos.yml +10 -1
  3. data/.github/workflows/ubuntu.yml +13 -3
  4. data/.github/workflows/windows.yml +8 -1
  5. data/lib/asciidoctor/standoc/base.rb +29 -11
  6. data/lib/asciidoctor/standoc/biblio.rng +75 -28
  7. data/lib/asciidoctor/standoc/blocks.rb +12 -5
  8. data/lib/asciidoctor/standoc/cleanup.rb +17 -8
  9. data/lib/asciidoctor/standoc/cleanup_block.rb +3 -0
  10. data/lib/asciidoctor/standoc/cleanup_boilerplate.rb +1 -3
  11. data/lib/asciidoctor/standoc/cleanup_inline.rb +3 -0
  12. data/lib/asciidoctor/standoc/cleanup_ref.rb +15 -6
  13. data/lib/asciidoctor/standoc/cleanup_section.rb +36 -8
  14. data/lib/asciidoctor/standoc/front.rb +5 -3
  15. data/lib/asciidoctor/standoc/inline.rb +43 -18
  16. data/lib/asciidoctor/standoc/isodoc.rng +31 -1
  17. data/lib/asciidoctor/standoc/macros.rb +2 -1
  18. data/lib/asciidoctor/standoc/macros_yaml2text.rb +142 -0
  19. data/lib/asciidoctor/standoc/ref.rb +6 -4
  20. data/lib/asciidoctor/standoc/section.rb +41 -9
  21. data/lib/asciidoctor/standoc/utils.rb +2 -11
  22. data/lib/asciidoctor/standoc/validate.rb +8 -2
  23. data/lib/asciidoctor/standoc/validate_section.rb +1 -3
  24. data/lib/metanorma/standoc/latexml_requirement.rb +14 -12
  25. data/lib/metanorma/standoc/version.rb +1 -1
  26. data/metanorma-standoc.gemspec +2 -2
  27. data/spec/asciidoctor-standoc/base_spec.rb +8 -0
  28. data/spec/asciidoctor-standoc/blocks_spec.rb +74 -2
  29. data/spec/asciidoctor-standoc/cleanup_spec.rb +75 -28
  30. data/spec/asciidoctor-standoc/inline_spec.rb +4 -3
  31. data/spec/asciidoctor-standoc/macros_spec.rb +9 -8
  32. data/spec/asciidoctor-standoc/macros_yaml2text_spec.rb +564 -0
  33. data/spec/asciidoctor-standoc/refs_dl_spec.rb +91 -3
  34. data/spec/asciidoctor-standoc/refs_spec.rb +272 -166
  35. data/spec/asciidoctor-standoc/section_spec.rb +197 -6
  36. data/spec/asciidoctor-standoc/validate_spec.rb +67 -2
  37. data/spec/assets/codes.yml +695 -0
  38. data/spec/assets/xref_error.adoc +7 -0
  39. data/spec/examples/codes_table.html +3174 -0
  40. data/spec/metanorma/processor_spec.rb +2 -2
  41. data/spec/spec_helper.rb +1 -0
  42. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +77 -271
  43. data/spec/vcr_cassettes/isobib_get_123.yml +36 -82
  44. data/spec/vcr_cassettes/isobib_get_123_2001.yml +17 -40
  45. data/spec/vcr_cassettes/isobib_get_124.yml +19 -101
  46. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +8 -8
  47. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +34 -34
  48. metadata +11 -6
@@ -38,7 +38,7 @@ RSpec.describe Asciidoctor::Standoc do
38
38
  INPUT
39
39
  #{BLANK_HDR}
40
40
  <sections>
41
- </sections><bibliography><references id="_" obligation="informative">
41
+ </sections><bibliography><references id="_" obligation="informative" normative="true">
42
42
  <title>Normative References</title>
43
43
  #{NORM_REF_BOILERPLATE}
44
44
  <bibitem id="iso123" type="standard">
@@ -287,7 +287,7 @@ formattedref::
287
287
  INPUT
288
288
  #{BLANK_HDR}
289
289
  <sections>
290
- </sections><bibliography><references id="_" obligation="informative">
290
+ </sections><bibliography><references id="_" obligation="informative" normative="true">
291
291
  <title>Normative References</title>
292
292
  #{NORM_REF_BOILERPLATE}
293
293
  <bibitem id="TC211" type="standard">
@@ -605,7 +605,7 @@ series.formattedref.script:: Latn
605
605
  INPUT
606
606
  #{BLANK_HDR}
607
607
  <sections>
608
- </sections><bibliography><references id="_" obligation="informative">
608
+ </sections><bibliography><references id="_" obligation="informative" normative="true">
609
609
  <title>Normative References</title>
610
610
  #{NORM_REF_BOILERPLATE}
611
611
  <bibitem id="TC211" type="standard">
@@ -757,4 +757,92 @@ home run record in 1998.
757
757
  OUTPUT
758
758
  end
759
759
 
760
+ it "processes mix of dl and default references" do
761
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
762
+ #{ASCIIDOC_BLANK_HDR}
763
+
764
+ == Section
765
+
766
+ === Subsection
767
+
768
+ [bibliography]
769
+ === Normative References
770
+
771
+ * [[[A, B]]], Title
772
+
773
+ [%bibitem]
774
+ ==== Standard
775
+ id:: iso123
776
+ docid::
777
+ type::: ISO
778
+ id::: ISO 123
779
+ type:: standard
780
+ contributor::
781
+ role::: publisher
782
+ organization:::
783
+ name:::: ISO
784
+ contributor::
785
+ role::: author
786
+ person:::
787
+ name::::
788
+ +
789
+ --
790
+ completename::
791
+ language::: en
792
+ content::: Fred
793
+ --
794
+ contributor::
795
+ role::: author
796
+ person:::
797
+ name::::
798
+ completename::::: Jack
799
+
800
+ INPUT
801
+ #{BLANK_HDR}
802
+ <sections>
803
+ <clause id='_' inline-header='false' obligation='normative'>
804
+ <title>Section</title>
805
+ <clause id='_' inline-header='false' obligation='normative'>
806
+ <title>Subsection</title>
807
+ </clause>
808
+ <references id='_' obligation='informative' normative="true">
809
+ <title>Normative References</title>
810
+ <bibitem id='A'>
811
+ <formattedref format='application/x-isodoc+xml'>Title</formattedref>
812
+ <docidentifier>B</docidentifier>
813
+ </bibitem>
814
+ <bibitem id='iso123' type='standard'>
815
+ <fetched>#{Date.today.to_s}</fetched>
816
+ <title type='main' format='text/plain' language='en' script='Latn'>Standard</title>
817
+ <docidentifier type='ISO'>ISO 123</docidentifier>
818
+ <contributor>
819
+ <role type='publisher'/>
820
+ <organization>
821
+ <name>ISO</name>
822
+ </organization>
823
+ </contributor>
824
+ <contributor>
825
+ <role type='author'/>
826
+ <person>
827
+ <name>
828
+ <completename language='en'>Fred</completename>
829
+ </name>
830
+ </person>
831
+ </contributor>
832
+ <contributor>
833
+ <role type='author'/>
834
+ <person>
835
+ <name>
836
+ <completename>Jack</completename>
837
+ </name>
838
+ </person>
839
+ </contributor>
840
+ </bibitem>
841
+ </references>
842
+ </clause>
843
+ </sections>
844
+ </standard-document>
845
+ OUTPUT
846
+
847
+ end
760
848
  end
@@ -14,12 +14,13 @@ RSpec.describe Asciidoctor::Standoc do
14
14
  INPUT
15
15
  #{BLANK_HDR}
16
16
  <sections>
17
- </sections><bibliography><references id="_" obligation="informative">
17
+ </sections><bibliography><references id="_" obligation="informative" normative="true">
18
18
  <title>Normative References</title>
19
19
  #{NORM_REF_BOILERPLATE}
20
20
  <bibitem id="iso123" type="standard">
21
21
  <title format="text/plain">Standard</title>
22
22
  <docidentifier>ISO 123</docidentifier>
23
+ <docnumber>123</docnumber>
23
24
  <contributor>
24
25
  <role type="publisher"/>
25
26
  <organization>
@@ -31,6 +32,7 @@ RSpec.describe Asciidoctor::Standoc do
31
32
  <title format='text/plain'>Standard</title>
32
33
  <docidentifier type='metanorma'>[1]</docidentifier>
33
34
  <docidentifier>ISO 123</docidentifier>
35
+ <docnumber>123</docnumber>
34
36
  <contributor>
35
37
  <role type='publisher'/>
36
38
  <organization>
@@ -55,12 +57,13 @@ RSpec.describe Asciidoctor::Standoc do
55
57
  INPUT
56
58
  #{BLANK_HDR}
57
59
  <sections>
58
- </sections><bibliography><references id="_" obligation="informative">
60
+ </sections><bibliography><references id="_" obligation="informative" normative="true">
59
61
  <title>Normative References</title>
60
62
  #{NORM_REF_BOILERPLATE}
61
63
  <bibitem id="iso123" type="standard">
62
64
  <title format="text/plain">Standard</title>
63
65
  <docidentifier>ISO 123:1066-1067</docidentifier>
66
+ <docnumber>123</docnumber>
64
67
  <date type="published">
65
68
  <from>1066</from>
66
69
  <to>1067</to>
@@ -76,6 +79,7 @@ RSpec.describe Asciidoctor::Standoc do
76
79
  <title format="text/plain">Standard</title>
77
80
  <docidentifier type='metanorma'>[1]</docidentifier>
78
81
  <docidentifier>ISO 123:1066-1067</docidentifier>
82
+ <docnumber>123</docnumber>
79
83
  <date type="published">
80
84
  <from>1066</from>
81
85
  <to>1067</to>
@@ -121,7 +125,7 @@ RSpec.describe Asciidoctor::Standoc do
121
125
  </foreword>
122
126
  </preface>
123
127
  <sections>
124
- </sections><bibliography><references id="_" obligation="informative"><title>Normative References</title>
128
+ </sections><bibliography><references id="_" obligation="informative" normative="true"><title>Normative References</title>
125
129
  #{NORM_REF_BOILERPLATE}
126
130
  <bibitem type="standard" id="iso123">
127
131
  <uri type="src">https://www.iso.org/standard/23281.html</uri>
@@ -227,162 +231,230 @@ RSpec.describe Asciidoctor::Standoc do
227
231
  == Normative References
228
232
 
229
233
  * [[[iso123,ISO 123]]] _Standard_
230
- * [[[iso123,(1)ISO 123]]] _Standard_
234
+ * [[[iso124,(1)ISO 123]]] _Standard_
231
235
  INPUT
232
236
  #{BLANK_HDR}
233
237
  <sections>
234
238
 
235
- </sections><bibliography><references id="_" obligation="informative"><title>Normative References</title>
239
+ </sections><bibliography><references id="_" obligation="informative" normative="true"><title>Normative References</title>
236
240
  #{NORM_REF_BOILERPLATE}
237
- <bibitem id="iso123" type="standard">
238
- <fetched>#{Date.today}</fetched>
239
- <title type="title-intro" format="text/plain" language="en" script="Latn">Rubber latex</title>
240
- <title type="title-main" format="text/plain" language="en" script="Latn">Sampling</title>
241
- <title type="main" format="text/plain" language="en" script="Latn">Rubber latex – Sampling</title>
242
- <title type="title-intro" format="text/plain" language="fr" script="Latn">Latex de caoutchouc</title>
243
- <title type="title-main" format="text/plain" language="fr" script="Latn">Échantillonnage</title>
244
- <title type="main" format="text/plain" language="fr" script="Latn">Latex de caoutchouc – Échantillonnage</title>
245
- <uri type="src">https://www.iso.org/standard/23281.html</uri>
246
- <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
247
- <uri type="rss">https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
248
- <docidentifier type="ISO">ISO 123:2001</docidentifier>
249
- <docnumber>123</docnumber>
250
- <date type="published">
251
- <on>2001</on>
252
- </date>
253
- <contributor>
254
- <role type="publisher"/>
255
- <organization>
256
- <name>International Organization for Standardization</name>
257
- <abbreviation>ISO</abbreviation>
258
- <uri>www.iso.org</uri>
259
- </organization>
260
- </contributor>
261
- <edition>3</edition>
262
- <language>en</language>
263
- <language>fr</language>
264
- <script>Latn</script>
265
- <status>
266
- <stage>90</stage>
267
- <substage>93</substage>
268
- </status>
269
- <copyright>
270
- <from>2001</from>
271
- <owner>
272
- <organization>
273
- <name>ISO</name>
274
- </organization>
275
- </owner>
276
- </copyright>
277
- <relation type="obsoletes">
278
- <bibitem type="standard">
279
- <formattedref format="text/plain">ISO 123:1985</formattedref>
280
- </bibitem>
281
- </relation>
282
- <place>Geneva</place>
283
- </bibitem>
284
- <bibitem id="iso123" type="standard">
285
- <fetched>#{Date.today}</fetched>
286
- <title type="title-intro" format="text/plain" language="en" script="Latn">Rubber latex</title>
287
- <title type="title-main" format="text/plain" language="en" script="Latn">Sampling</title>
288
- <title type="main" format="text/plain" language="en" script="Latn">Rubber latex – Sampling</title>
289
- <title type="title-intro" format="text/plain" language="fr" script="Latn">Latex de caoutchouc</title>
290
- <title type="title-main" format="text/plain" language="fr" script="Latn">Échantillonnage</title>
291
- <title type="main" format="text/plain" language="fr" script="Latn">Latex de caoutchouc – Échantillonnage</title>
292
- <uri type="src">https://www.iso.org/standard/23281.html</uri>
293
- <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
294
- <uri type="rss">https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
295
- <docidentifier type="ISO">ISO 123:2001</docidentifier>
296
- <docidentifier type='metanorma'>[1]</docidentifier>
297
- <docnumber>123</docnumber>
298
- <date type="published">
299
- <on>2001</on>
300
- </date>
301
- <contributor>
302
- <role type="publisher"/>
303
- <organization>
304
- <name>International Organization for Standardization</name>
305
- <abbreviation>ISO</abbreviation>
306
- <uri>www.iso.org</uri>
307
- </organization>
308
- </contributor>
309
- <edition>3</edition>
310
- <language>en</language>
311
- <language>fr</language>
312
- <script>Latn</script>
313
- <status>
314
- <stage>90</stage>
315
- <substage>93</substage>
316
- </status>
317
- <copyright>
318
- <from>2001</from>
319
- <owner>
320
- <organization>
321
- <name>ISO</name>
322
- </organization>
323
- </owner>
324
- </copyright>
325
- <relation type="obsoletes">
326
- <bibitem type="standard">
327
- <formattedref format="text/plain">ISO 123:1985</formattedref>
328
- </bibitem>
329
- </relation>
330
- <place>Geneva</place>
331
- </bibitem>
332
- </references></bibliography>
333
- </standard-document>
334
- OUTPUT
335
- =begin
336
- <relation type="instance">
337
- <bibitem type="standard">
338
- <fetched>#{Date.today}</fetched>
339
- <title type="title-main" format="text/plain" language="en" script="Latn">Rubber latex – Sampling</title>
340
- <title type="main" format="text/plain" language="en" script="Latn">Rubber latex – Sampling</title>
341
- <title type="title-main" format="text/plain" language="fr" script="Latn">Latex de caoutchouc – Échantillonnage</title>
342
- <title type="main" format="text/plain" language="fr" script="Latn">Latex de caoutchouc – Échantillonnage</title>
343
- <uri type="src">https://www.iso.org/standard/23281.html</uri>
344
- <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
345
- <uri type="rss">https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
346
- <docidentifier type="ISO">ISO 123:2001</docidentifier>
347
- <docnumber>123</docnumber>
348
- <date type="published">
349
- <on>2001</on>
350
- </date>
351
- <contributor>
352
- <role type="publisher"/>
353
- <organization>
354
- <name>International Organization for Standardization</name>
355
- <abbreviation>ISO</abbreviation>
356
- <uri>www.iso.org</uri>
357
- </organization>
358
- </contributor>
359
- <edition>3</edition>
360
- <language>en</language>
361
- <language>fr</language>
362
- <script>Latn</script>
363
- <status>
364
- <stage>90</stage>
365
- <substage>93</substage>
366
- </status>
367
- <copyright>
368
- <from>2001</from>
369
- <owner>
241
+ <bibitem id='iso123' type='standard'>
242
+ <fetched>#{Date.today}</fetched>
243
+ <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
244
+ <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
245
+ <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
246
+ <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
247
+ <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
248
+ <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
249
+ <uri type='src'>https://www.iso.org/standard/23281.html</uri>
250
+ <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
251
+ <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
252
+ <docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
253
+ <docnumber>123</docnumber>
254
+ <date type='published'>
255
+ <on>2001</on>
256
+ </date>
257
+ <contributor>
258
+ <role type='publisher'/>
370
259
  <organization>
371
- <name>ISO</name>
260
+ <name>International Organization for Standardization</name>
261
+ <abbreviation>ISO</abbreviation>
262
+ <uri>www.iso.org</uri>
372
263
  </organization>
373
- </owner>
374
- </copyright>
375
- <relation type="obsoletes">
376
- <bibitem type="standard">
377
- <formattedref format="text/plain">ISO 123:1985</formattedref>
378
- </bibitem>
379
- </relation>
380
- </bibitem>
381
- </relation>
382
- </bibitem> </references></bibliography>
264
+ </contributor>
265
+ <edition>3</edition>
266
+ <language>en</language>
267
+ <language>fr</language>
268
+ <script>Latn</script>
269
+ <status>
270
+ <stage>90</stage>
271
+ <substage>93</substage>
272
+ </status>
273
+ <copyright>
274
+ <from>2001</from>
275
+ <owner>
276
+ <organization>
277
+ <name>ISO</name>
278
+ </organization>
279
+ </owner>
280
+ </copyright>
281
+ <relation type='obsoletes'>
282
+ <bibitem type='standard'>
283
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
284
+ </bibitem>
285
+ </relation>
286
+ <relation type='instance'>
287
+ <bibitem type='standard'>
288
+ <fetched>#{Date.today}</fetched>
289
+ <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
290
+ <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
291
+ <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
292
+ <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
293
+ <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
294
+ <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
295
+ <uri type='src'>https://www.iso.org/standard/23281.html</uri>
296
+ <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
297
+ <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
298
+ <docidentifier type='ISO'>ISO 123:2001</docidentifier>
299
+ <docnumber>123</docnumber>
300
+ <date type='published'>
301
+ <on>2001</on>
302
+ </date>
303
+ <contributor>
304
+ <role type='publisher'/>
305
+ <organization>
306
+ <name>International Organization for Standardization</name>
307
+ <abbreviation>ISO</abbreviation>
308
+ <uri>www.iso.org</uri>
309
+ </organization>
310
+ </contributor>
311
+ <edition>3</edition>
312
+ <language>en</language>
313
+ <language>fr</language>
314
+ <script>Latn</script>
315
+ <status>
316
+ <stage>90</stage>
317
+ <substage>93</substage>
318
+ </status>
319
+ <copyright>
320
+ <from>2001</from>
321
+ <owner>
322
+ <organization>
323
+ <name>ISO</name>
324
+ </organization>
325
+ </owner>
326
+ </copyright>
327
+ <relation type='obsoletes'>
328
+ <bibitem type='standard'>
329
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
330
+ </bibitem>
331
+ </relation>
332
+ <place>Geneva</place>
333
+ </bibitem>
334
+ </relation>
335
+ <relation type='instance'>
336
+ <bibitem type='standard'>
337
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
338
+ </bibitem>
339
+ </relation>
340
+ <relation type='instance'>
341
+ <bibitem type='standard'>
342
+ <formattedref format='text/plain'>ISO 123:1974</formattedref>
343
+ </bibitem>
344
+ </relation>
345
+ <place>Geneva</place>
346
+ </bibitem>
347
+ <bibitem id='iso124' type='standard'>
348
+ <fetched>#{Date.today}</fetched>
349
+ <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
350
+ <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
351
+ <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
352
+ <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
353
+ <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
354
+ <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
355
+ <uri type='src'>https://www.iso.org/standard/23281.html</uri>
356
+ <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
357
+ <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
358
+ <docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
359
+ <docidentifier type='metanorma'>[1]</docidentifier>
360
+ <docnumber>123</docnumber>
361
+ <date type='published'>
362
+ <on>2001</on>
363
+ </date>
364
+ <contributor>
365
+ <role type='publisher'/>
366
+ <organization>
367
+ <name>International Organization for Standardization</name>
368
+ <abbreviation>ISO</abbreviation>
369
+ <uri>www.iso.org</uri>
370
+ </organization>
371
+ </contributor>
372
+ <edition>3</edition>
373
+ <language>en</language>
374
+ <language>fr</language>
375
+ <script>Latn</script>
376
+ <status>
377
+ <stage>90</stage>
378
+ <substage>93</substage>
379
+ </status>
380
+ <copyright>
381
+ <from>2001</from>
382
+ <owner>
383
+ <organization>
384
+ <name>ISO</name>
385
+ </organization>
386
+ </owner>
387
+ </copyright>
388
+ <relation type='obsoletes'>
389
+ <bibitem type='standard'>
390
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
391
+ </bibitem>
392
+ </relation>
393
+ <relation type='instance'>
394
+ <bibitem type='standard'>
395
+ <fetched>#{Date.today}</fetched>
396
+ <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
397
+ <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
398
+ <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
399
+ <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
400
+ <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
401
+ <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
402
+ <uri type='src'>https://www.iso.org/standard/23281.html</uri>
403
+ <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
404
+ <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
405
+ <docidentifier type='ISO'>ISO 123:2001</docidentifier>
406
+ <docnumber>123</docnumber>
407
+ <date type='published'>
408
+ <on>2001</on>
409
+ </date>
410
+ <contributor>
411
+ <role type='publisher'/>
412
+ <organization>
413
+ <name>International Organization for Standardization</name>
414
+ <abbreviation>ISO</abbreviation>
415
+ <uri>www.iso.org</uri>
416
+ </organization>
417
+ </contributor>
418
+ <edition>3</edition>
419
+ <language>en</language>
420
+ <language>fr</language>
421
+ <script>Latn</script>
422
+ <status>
423
+ <stage>90</stage>
424
+ <substage>93</substage>
425
+ </status>
426
+ <copyright>
427
+ <from>2001</from>
428
+ <owner>
429
+ <organization>
430
+ <name>ISO</name>
431
+ </organization>
432
+ </owner>
433
+ </copyright>
434
+ <relation type='obsoletes'>
435
+ <bibitem type='standard'>
436
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
437
+ </bibitem>
438
+ </relation>
439
+ <place>Geneva</place>
440
+ </bibitem>
441
+ </relation>
442
+ <relation type='instance'>
443
+ <bibitem type='standard'>
444
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
445
+ </bibitem>
446
+ </relation>
447
+ <relation type='instance'>
448
+ <bibitem type='standard'>
449
+ <formattedref format='text/plain'>ISO 123:1974</formattedref>
450
+ </bibitem>
451
+ </relation>
452
+ <place>Geneva</place>
453
+ </bibitem>
454
+ </references>
455
+ </bibliography>
383
456
  </standard-document>
384
- OUTPUT
385
- =end
457
+ OUTPUT
386
458
  end
387
459
  end
388
460
 
@@ -397,12 +469,13 @@ RSpec.describe Asciidoctor::Standoc do
397
469
  INPUT
398
470
  #{BLANK_HDR}
399
471
  <sections>
400
- </sections><bibliography><references id="_" obligation="informative">
472
+ </sections><bibliography><references id="_" obligation="informative" normative="true">
401
473
  <title>Normative References</title>
402
474
  #{NORM_REF_BOILERPLATE}
403
475
  <bibitem id="iso123" type="standard">
404
476
  <title format="text/plain">Standard</title>
405
477
  <docidentifier>IEC 123</docidentifier>
478
+ <docnumber>123</docnumber>
406
479
  <contributor>
407
480
  <role type="publisher"/>
408
481
  <organization>
@@ -414,6 +487,7 @@ RSpec.describe Asciidoctor::Standoc do
414
487
  <title format='text/plain'>Standard</title>
415
488
  <docidentifier type='metanorma'>[1]</docidentifier>
416
489
  <docidentifier>IEC 123</docidentifier>
490
+ <docnumber>123</docnumber>
417
491
  <contributor>
418
492
  <role type='publisher'/>
419
493
  <organization>
@@ -444,7 +518,7 @@ RSpec.describe Asciidoctor::Standoc do
444
518
  #{BLANK_HDR}
445
519
  <sections>
446
520
 
447
- </sections><bibliography><references id="_" obligation="informative">
521
+ </sections><bibliography><references id="_" obligation="informative" normative="true">
448
522
  <title>Normative References</title>
449
523
  #{NORM_REF_BOILERPLATE}
450
524
  <bibitem type="standard" id="iso123">
@@ -469,6 +543,7 @@ RSpec.describe Asciidoctor::Standoc do
469
543
  <uri>www.iso.org</uri>
470
544
  </organization>
471
545
  </contributor>
546
+ <!--
472
547
  <contributor>
473
548
  <role type="publisher"/>
474
549
  <organization>
@@ -477,11 +552,13 @@ RSpec.describe Asciidoctor::Standoc do
477
552
  <uri>www.iec.ch</uri>
478
553
  </organization>
479
554
  </contributor>
555
+ -->
480
556
  <edition>2</edition>
481
557
  <language>en</language>
482
558
  <language>fr</language>
483
559
  <script>Latn</script>
484
560
  <abstract format="text/plain" language="en" script="Latn">Contains a permuted index of all terms included in the parts 1 — 28 of ISO 2382. If any of these parts has been revised, the present TR refers to the revision.</abstract>
561
+ <abstract format="text/plain" language="fr" script="Latn">Contains a permuted index of all terms included in the parts 1 — 28 of ISO 2382. If any of these parts has been revised, the present TR refers to the revision.</abstract>
485
562
  <status>
486
563
  <stage>90</stage>
487
564
  <substage>93</substage>
@@ -568,6 +645,7 @@ RSpec.describe Asciidoctor::Standoc do
568
645
  <uri>www.iso.org</uri>
569
646
  </organization>
570
647
  </contributor>
648
+ <!--
571
649
  <contributor>
572
650
  <role type="publisher"/>
573
651
  <organization>
@@ -576,11 +654,13 @@ RSpec.describe Asciidoctor::Standoc do
576
654
  <uri>www.iec.ch</uri>
577
655
  </organization>
578
656
  </contributor>
657
+ -->
579
658
  <edition>2</edition>
580
659
  <language>en</language>
581
660
  <language>fr</language>
582
661
  <script>Latn</script>
583
662
  <abstract format="text/plain" language="en" script="Latn">Contains a permuted index of all terms included in the parts 1 — 28 of ISO 2382. If any of these parts has been revised, the present TR refers to the revision.</abstract>
663
+ <abstract format="text/plain" language="fr" script="Latn">Contains a permuted index of all terms included in the parts 1 — 28 of ISO 2382. If any of these parts has been revised, the present TR refers to the revision.</abstract>
584
664
  <status>
585
665
  <stage>90</stage>
586
666
  <substage>93</substage>
@@ -665,7 +745,7 @@ RSpec.describe Asciidoctor::Standoc do
665
745
  #{BLANK_HDR}
666
746
  <sections>
667
747
 
668
- </sections><bibliography><references id="_" obligation="informative">
748
+ </sections><bibliography><references id="_" obligation="informative" normative="true">
669
749
  <title>Normative References</title>
670
750
  #{NORM_REF_BOILERPLATE}
671
751
  <bibitem id='iso123'>
@@ -673,6 +753,7 @@ RSpec.describe Asciidoctor::Standoc do
673
753
  <em>Standard</em>
674
754
  </formattedref>
675
755
  <docidentifier>ISO/IEC TR 12382:1992</docidentifier>
756
+ <docnumber>12382:1992)</docnumber>
676
757
  </bibitem>
677
758
  <bibitem id='iso124' type='standard'>
678
759
  <fetched>#{Date.today}</fetched>
@@ -743,12 +824,13 @@ OUTPUT
743
824
  INPUT
744
825
  #{BLANK_HDR}
745
826
  <sections>
746
- </sections><bibliography><references id="_" obligation="informative">
827
+ </sections><bibliography><references id="_" obligation="informative" normative="true">
747
828
  <title>Normative References</title>
748
829
  #{NORM_REF_BOILERPLATE}
749
830
  <bibitem id="iso123" type="standard">
750
831
  <title format="text/plain">Standard</title>
751
832
  <docidentifier>ISO 123:—</docidentifier>
833
+ <docnumber>123</docnumber>
752
834
  <date type="published">
753
835
  <on>–</on>
754
836
  </date>
@@ -762,6 +844,7 @@ OUTPUT
762
844
  <bibitem id="iso124" type="standard">
763
845
  <title format="text/plain">Standard</title>
764
846
  <docidentifier>ISO 124:—</docidentifier>
847
+ <docnumber>124</docnumber>
765
848
  <date type="published">
766
849
  <on>–</on>
767
850
  </date>
@@ -776,6 +859,7 @@ OUTPUT
776
859
  <bibitem id="iso125" type="standard">
777
860
  <title format="text/plain">Standard</title>
778
861
  <docidentifier>ISO 125:—</docidentifier>
862
+ <docnumber>125</docnumber>
779
863
  <date type="published">
780
864
  <on>–</on>
781
865
  </date>
@@ -791,6 +875,7 @@ OUTPUT
791
875
  <title format='text/plain'>Standard</title>
792
876
  <docidentifier type='metanorma'>[1]</docidentifier>
793
877
  <docidentifier>ISO 123:—</docidentifier>
878
+ <docnumber>123</docnumber>
794
879
  <date type='published'>
795
880
  <on>–</on>
796
881
  </date>
@@ -820,12 +905,13 @@ OUTPUT
820
905
  INPUT
821
906
  #{BLANK_HDR}
822
907
  <sections>
823
- </sections><bibliography><references id="_" obligation="informative">
908
+ </sections><bibliography><references id="_" obligation="informative" normative="true">
824
909
  <title>Normative References</title>
825
910
  #{NORM_REF_BOILERPLATE}
826
911
  <bibitem id="iso123" type="standard">
827
912
  <title format="text/plain">Standard</title>
828
913
  <docidentifier>ISO 123:1066 (all parts)</docidentifier>
914
+ <docnumber>123</docnumber>
829
915
  <date type="published">
830
916
  <on>1066</on>
831
917
  </date>
@@ -843,6 +929,7 @@ OUTPUT
843
929
  <title format='text/plain'>Standard</title>
844
930
  <docidentifier type='metanorma'>[1]</docidentifier>
845
931
  <docidentifier>ISO 123:1066 (all parts)</docidentifier>
932
+ <docnumber>123</docnumber>
846
933
  <date type='published'>
847
934
  <on>1066</on>
848
935
  </date>
@@ -885,7 +972,7 @@ OUTPUT
885
972
  <eref type="inline" bibitemid="iso123" citeas="RFC 8341"/>
886
973
  </p>
887
974
  </clause>
888
- </sections><bibliography><references id="_" obligation="informative">
975
+ </sections><bibliography><references id="_" obligation="informative" normative="true">
889
976
  <title>Normative References</title>
890
977
  #{NORM_REF_BOILERPLATE}
891
978
  <bibitem id="iso123" type="standard">
@@ -907,7 +994,7 @@ OUTPUT
907
994
  </name>
908
995
  <affiliation>
909
996
  <organization>
910
- <name>IETF</name>
997
+ <name>Internet Engineering Task Force</name>
911
998
  <abbreviation>IETF</abbreviation>
912
999
  </organization>
913
1000
  </affiliation>
@@ -921,12 +1008,19 @@ OUTPUT
921
1008
  </name>
922
1009
  <affiliation>
923
1010
  <organization>
924
- <name>IETF</name>
1011
+ <name>Internet Engineering Task Force</name>
925
1012
  <abbreviation>IETF</abbreviation>
926
1013
  </organization>
927
1014
  </affiliation>
928
1015
  </person>
929
1016
  </contributor>
1017
+ <contributor>
1018
+ <role type='publisher'/>
1019
+ <organization>
1020
+ <name>Internet Engineering Task Force</name>
1021
+ <abbreviation>IETF</abbreviation>
1022
+ </organization>
1023
+ </contributor>
930
1024
  <language>en</language>
931
1025
  <script>Latn</script>
932
1026
  <abstract format="text/plain" language="en" script="Latn">The standardization of network configuration interfaces for use with the Network Configuration Protocol (NETCONF) or the RESTCONF protocol requires a structured and secure operating environment that promotes human usability and multi-vendor interoperability. There is a need for standard mechanisms to restrict NETCONF or RESTCONF protocol access for particular users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content. This document defines such an access control model.This document obsoletes RFC 6536.</abstract>
@@ -960,7 +1054,7 @@ OUTPUT
960
1054
  </name>
961
1055
  <affiliation>
962
1056
  <organization>
963
- <name>IETF</name>
1057
+ <name>Internet Engineering Task Force</name>
964
1058
  <abbreviation>IETF</abbreviation>
965
1059
  </organization>
966
1060
  </affiliation>
@@ -974,12 +1068,19 @@ OUTPUT
974
1068
  </name>
975
1069
  <affiliation>
976
1070
  <organization>
977
- <name>IETF</name>
1071
+ <name>Internet Engineering Task Force</name>
978
1072
  <abbreviation>IETF</abbreviation>
979
1073
  </organization>
980
1074
  </affiliation>
981
1075
  </person>
982
1076
  </contributor>
1077
+ <contributor>
1078
+ <role type='publisher'/>
1079
+ <organization>
1080
+ <name>Internet Engineering Task Force</name>
1081
+ <abbreviation>IETF</abbreviation>
1082
+ </organization>
1083
+ </contributor>
983
1084
  <language>en</language>
984
1085
  <script>Latn</script>
985
1086
  <abstract format="text/plain" language="en" script="Latn">The standardization of network configuration interfaces for use with the Network Configuration Protocol (NETCONF) or the RESTCONF protocol requires a structured and secure operating environment that promotes human usability and multi-vendor interoperability. There is a need for standard mechanisms to restrict NETCONF or RESTCONF protocol access for particular users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content. This document defines such an access control model.This document obsoletes RFC 6536.</abstract>
@@ -1012,7 +1113,7 @@ OUTPUT
1012
1113
  #{BLANK_HDR}
1013
1114
  <sections>
1014
1115
 
1015
- </sections><bibliography><references id="_" obligation="informative">
1116
+ </sections><bibliography><references id="_" obligation="informative" normative="true">
1016
1117
  <title>Normative References</title>
1017
1118
  #{NORM_REF_BOILERPLATE}
1018
1119
  <bibitem id="iso123">
@@ -1020,6 +1121,7 @@ OUTPUT
1020
1121
  <em>Standard</em>
1021
1122
  </formattedref>
1022
1123
  <docidentifier>XYZ 123:1066 (all parts)</docidentifier>
1124
+ <docnumber>123:1066 (all parts)</docnumber>
1023
1125
  </bibitem>
1024
1126
  <bibitem id='iso124'>
1025
1127
  <formattedref format='application/x-isodoc+xml'>
@@ -1027,6 +1129,7 @@ OUTPUT
1027
1129
  </formattedref>
1028
1130
  <docidentifier type='metanorma'>[1]</docidentifier>
1029
1131
  <docidentifier>XYZ 123:1066 (all parts)</docidentifier>
1132
+ <docnumber>123:1066 (all parts)</docnumber>
1030
1133
  </bibitem>
1031
1134
  </references>
1032
1135
  </bibliography>
@@ -1043,14 +1146,14 @@ OUTPUT
1043
1146
  * [[[iso123,2]]] _Standard_
1044
1147
  * [[[iso124,(B)]]] _Standard_
1045
1148
  * [[[iso125,1]]] _Standard_
1046
- * [[[iso126,(A)]]] _Standard_
1149
+ * [[[iso126,(A1)]]] _Standard_
1047
1150
  * [[[iso127,(4)XYZ 123:1066 (all parts)]]] _Standard_
1048
1151
  INPUT
1049
1152
  #{BLANK_HDR}
1050
1153
  <sections>
1051
1154
 
1052
1155
  </sections>
1053
- <bibliography><references id="_" obligation="informative">
1156
+ <bibliography><references id="_" obligation="informative" normative="false">
1054
1157
  <title>Bibliography</title><bibitem id="iso123">
1055
1158
  <formattedref format="application/x-isodoc+xml">
1056
1159
  <em>Standard</em>
@@ -1070,7 +1173,7 @@ OUTPUT
1070
1173
  <formattedref format="application/x-isodoc+xml">
1071
1174
  <em>Standard</em>
1072
1175
  </formattedref>
1073
- <docidentifier type="metanorma">[A]</docidentifier>
1176
+ <docidentifier type="metanorma">[A1]</docidentifier>
1074
1177
  </bibitem>
1075
1178
  <bibitem id='iso127'>
1076
1179
  <formattedref format='application/x-isodoc+xml'>
@@ -1078,6 +1181,7 @@ OUTPUT
1078
1181
  </formattedref>
1079
1182
  <docidentifier type='metanorma'>[5]</docidentifier>
1080
1183
  <docidentifier>XYZ 123:1066 (all parts)</docidentifier>
1184
+ <docnumber>123:1066 (all parts)</docnumber>
1081
1185
  </bibitem>
1082
1186
  </references>
1083
1187
  </bibliography>
@@ -1113,12 +1217,13 @@ OUTPUT
1113
1217
  </bibdata>
1114
1218
  <sections>
1115
1219
 
1116
- </sections><bibliography><references id="_" obligation="informative">
1220
+ </sections><bibliography><references id="_" obligation="informative" normative="true">
1117
1221
  <title>Normative References</title>
1118
1222
  #{NORM_REF_BOILERPLATE}
1119
1223
  <bibitem id="iso123" type="standard">
1120
1224
  <title format="text/plain">Standard</title>
1121
1225
  <docidentifier type="ISO">ISO 123</docidentifier>
1226
+ <docnumber>123</docnumber>
1122
1227
  <contributor>
1123
1228
  <role type="publisher"/>
1124
1229
  <organization>
@@ -1130,6 +1235,7 @@ OUTPUT
1130
1235
  <title format='text/plain'>Standard</title>
1131
1236
  <docidentifier type='metanorma'>[1]</docidentifier>
1132
1237
  <docidentifier type='ISO'>ISO 123</docidentifier>
1238
+ <docnumber>123</docnumber>
1133
1239
  <contributor>
1134
1240
  <role type='publisher'/>
1135
1241
  <organization>