metanorma-standoc 1.8.2 → 1.8.7

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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +11 -41
  3. data/.gitignore +2 -0
  4. data/.rubocop.yml +6 -2
  5. data/lib/asciidoctor/standoc/base.rb +3 -1
  6. data/lib/asciidoctor/standoc/biblio.rng +4 -6
  7. data/lib/asciidoctor/standoc/blocks.rb +35 -12
  8. data/lib/asciidoctor/standoc/cleanup.rb +2 -1
  9. data/lib/asciidoctor/standoc/cleanup_block.rb +73 -22
  10. data/lib/asciidoctor/standoc/cleanup_boilerplate.rb +3 -3
  11. data/lib/asciidoctor/standoc/cleanup_inline.rb +4 -3
  12. data/lib/asciidoctor/standoc/cleanup_maths.rb +37 -0
  13. data/lib/asciidoctor/standoc/cleanup_ref.rb +4 -13
  14. data/lib/asciidoctor/standoc/cleanup_section.rb +5 -0
  15. data/lib/asciidoctor/standoc/cleanup_terms.rb +2 -2
  16. data/lib/asciidoctor/standoc/inline.rb +7 -15
  17. data/lib/asciidoctor/standoc/isodoc.rng +105 -2
  18. data/lib/asciidoctor/standoc/ref_sect.rb +12 -12
  19. data/lib/asciidoctor/standoc/section.rb +9 -0
  20. data/lib/asciidoctor/standoc/utils.rb +0 -24
  21. data/lib/asciidoctor/standoc/validate.rb +16 -1
  22. data/lib/metanorma/standoc/version.rb +1 -1
  23. data/metanorma-standoc.gemspec +5 -5
  24. data/spec/{asciidoctor-standoc → asciidoctor}/base_spec.rb +4 -0
  25. data/spec/{asciidoctor-standoc → asciidoctor}/blocks_spec.rb +0 -0
  26. data/spec/{asciidoctor-standoc → asciidoctor}/cleanup_sections_spec.rb +14 -14
  27. data/spec/{asciidoctor-standoc → asciidoctor}/cleanup_spec.rb +242 -11
  28. data/spec/{asciidoctor-standoc → asciidoctor}/datamodel/attributes_table_preprocessor_spec.rb +0 -0
  29. data/spec/{asciidoctor-standoc → asciidoctor}/datamodel/diagram_preprocessor_spec.rb +0 -0
  30. data/spec/{asciidoctor-standoc → asciidoctor}/inline_spec.rb +2 -0
  31. data/spec/{asciidoctor-standoc → asciidoctor}/isobib_cache_spec.rb +0 -0
  32. data/spec/{asciidoctor-standoc → asciidoctor}/lists_spec.rb +0 -0
  33. data/spec/{asciidoctor-standoc → asciidoctor}/macros_json2text_spec.rb +0 -0
  34. data/spec/{asciidoctor-standoc → asciidoctor}/macros_plantuml_spec.rb +0 -0
  35. data/spec/{asciidoctor-standoc → asciidoctor}/macros_spec.rb +0 -0
  36. data/spec/{asciidoctor-standoc → asciidoctor}/macros_yaml2text_spec.rb +0 -0
  37. data/spec/{asciidoctor-standoc → asciidoctor}/refs_dl_spec.rb +0 -0
  38. data/spec/{asciidoctor-standoc → asciidoctor}/refs_spec.rb +297 -147
  39. data/spec/{asciidoctor-standoc → asciidoctor}/section_spec.rb +17 -0
  40. data/spec/{asciidoctor-standoc → asciidoctor}/table_spec.rb +0 -0
  41. data/spec/{asciidoctor-standoc → asciidoctor}/validate_spec.rb +20 -0
  42. data/spec/assets/html-override.css +1 -0
  43. data/spec/assets/word-override.css +1 -0
  44. data/spec/fixtures/action_schemaexpg1.svg +122 -0
  45. data/spec/spec_helper.rb +8 -0
  46. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +62 -62
  47. data/spec/vcr_cassettes/isobib_get_123.yml +15 -15
  48. data/spec/vcr_cassettes/isobib_get_123_1.yml +30 -30
  49. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +42 -42
  50. data/spec/vcr_cassettes/isobib_get_123_2001.yml +15 -15
  51. data/spec/vcr_cassettes/isobib_get_124.yml +16 -16
  52. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +94 -30
  53. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +59 -57
  54. metadata +41 -41
  55. data/.rubocop.ribose.yml +0 -66
  56. data/.rubocop.tb.yml +0 -650
  57. data/spec/asciidoctor-standoc/macros_lutaml_spec.rb +0 -80
@@ -48,6 +48,7 @@ text, including <strong><em>nest</em></strong>ed markup.</p>
48
48
  sub~script~
49
49
  sub~__scr__ipt~
50
50
  stem:[<mml:math><mml:msub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"> <mml:mrow> <mml:mrow> <mml:mi mathvariant="bold-italic">F</mml:mi> </mml:mrow> </mml:mrow> <mml:mrow> <mml:mrow> <mml:mi mathvariant="bold-italic">&#x391;</mml:mi> </mml:mrow> </mml:mrow> </mml:msub> </mml:math>]
51
+ #mark#
51
52
  [alt]#alt#
52
53
  [deprecated]#deprecated#
53
54
  [domain]#domain#
@@ -67,6 +68,7 @@ text, including <strong><em>nest</em></strong>ed markup.</p>
67
68
  sub<sub>script</sub>
68
69
  sub<sub><em>scr</em>ipt</sub>
69
70
  <stem type="MathML"><math xmlns="http://www.w3.org/1998/Math/MathML"><msub> <mrow> <mrow> <mi mathvariant="bold-italic">F</mi> </mrow> </mrow> <mrow> <mrow> <mi mathvariant="bold-italic">Α</mi> </mrow> </mrow> </msub> </math></stem>
71
+ mark
70
72
  <admitted>alt</admitted>
71
73
  <deprecates>deprecated</deprecates>
72
74
  <domain>domain</domain>
@@ -30,7 +30,7 @@ RSpec.describe Asciidoctor::Standoc do
30
30
  </bibitem>
31
31
  <bibitem id='iso124' type='standard'>
32
32
  <title format='text/plain'>Standard</title>
33
- <docidentifier type='metanorma'>[2]</docidentifier>
33
+ <docidentifier type='metanorma'>[1]</docidentifier>
34
34
  <docidentifier>ISO 123</docidentifier>
35
35
  <docnumber>123</docnumber>
36
36
  <contributor>
@@ -77,7 +77,7 @@ RSpec.describe Asciidoctor::Standoc do
77
77
  </bibitem>
78
78
  <bibitem id="iso124" type="standard">
79
79
  <title format="text/plain">Standard</title>
80
- <docidentifier type='metanorma'>[2]</docidentifier>
80
+ <docidentifier type='metanorma'>[1]</docidentifier>
81
81
  <docidentifier>ISO 123:1066-1067</docidentifier>
82
82
  <docnumber>123</docnumber>
83
83
  <date type="published">
@@ -99,8 +99,8 @@ RSpec.describe Asciidoctor::Standoc do
99
99
  end
100
100
 
101
101
  it "repairs simple fetched ISO reference" do
102
- mock_isobib_get_123_no_docid
103
- mock_isobib_get_123_no_docid_lbl
102
+ mock_isobib_get_123_no_docid(2)
103
+ mock_isobib_get_123_no_docid_lbl(2)
104
104
  input = <<~"INPUT"
105
105
  #{ISOBIB_BLANK_HDR}
106
106
 
@@ -120,7 +120,7 @@ RSpec.describe Asciidoctor::Standoc do
120
120
  <title>Foreword</title>
121
121
  <p id='_'>
122
122
  <eref type='inline' bibitemid='iso123' citeas='ISO 123'/>
123
- <eref type='inline' bibitemid='iso124' citeas='[2]'/>
123
+ <eref type='inline' bibitemid='iso124' citeas='[1]'/>
124
124
  </p>
125
125
  </foreword>
126
126
  </preface>
@@ -213,7 +213,7 @@ RSpec.describe Asciidoctor::Standoc do
213
213
  </bibitem>
214
214
  </relation>
215
215
  <docidentifier>ISO 123</docidentifier>
216
- <docidentifier type='metanorma'>[2]</docidentifier>
216
+ <docidentifier type='metanorma'>[1]</docidentifier>
217
217
  <title><em>Standard</em></title>
218
218
  </bibitem>
219
219
  </references></bibliography>
@@ -353,7 +353,7 @@ RSpec.describe Asciidoctor::Standoc do
353
353
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
354
354
  <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
355
355
  <docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
356
- <docidentifier type='metanorma'>[2]</docidentifier>
356
+ <docidentifier type='metanorma'>[1]</docidentifier>
357
357
  <docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
358
358
  <docnumber>123</docnumber>
359
359
  <date type='published'>
@@ -609,7 +609,7 @@ compris les éventuels amendements).
609
609
  <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
610
610
  <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
611
611
  <docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
612
- <docidentifier type='metanorma'>[2]</docidentifier>
612
+ <docidentifier type='metanorma'>[1]</docidentifier>
613
613
  <docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
614
614
  <docnumber>123</docnumber>
615
615
  <date type='published'>
@@ -746,7 +746,7 @@ compris les éventuels amendements).
746
746
  </bibitem>
747
747
  <bibitem id='iso124' type='standard'>
748
748
  <title format='text/plain'>Standard</title>
749
- <docidentifier type='metanorma'>[2]</docidentifier>
749
+ <docidentifier type='metanorma'>[1]</docidentifier>
750
750
  <docidentifier>IEC 123</docidentifier>
751
751
  <docnumber>123</docnumber>
752
752
  <contributor>
@@ -829,7 +829,7 @@ compris les éventuels amendements).
829
829
  </copyright>
830
830
  <place>Geneva</place>
831
831
  </bibitem>
832
- <bibitem type="standard" id="iso124">
832
+ <bibitem id="iso124" type="standard">
833
833
  <fetched>#{Date.today}</fetched>
834
834
  <title type="title-intro" format="text/plain" language="en" script="Latn">Latex, rubber</title>
835
835
  <title type="title-main" format="text/plain" language="en" script="Latn">Determination of total solids content</title>
@@ -874,7 +874,7 @@ compris les éventuels amendements).
874
874
  </relation>
875
875
  <place>Geneva</place>
876
876
  </bibitem>
877
- <bibitem type="standard" id="iso125">
877
+ <bibitem id="iso125" type="standard">
878
878
  <fetched>#{Date.today}</fetched>
879
879
  <title type="title-main" format="text/plain" language="en" script="Latn">Permuted index of the vocabulary of information technology</title>
880
880
  <title type='main' format='text/plain' language='en' script='Latn'>Permuted index of the vocabulary of information technology</title>
@@ -882,7 +882,7 @@ compris les éventuels amendements).
882
882
  <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:21071:en</uri>
883
883
  <uri type="rss">https://www.iso.org/contents/data/standard/02/10/21071.detail.rss</uri>
884
884
  <docidentifier type="ISO">ISO/IEC TR 12382:1992</docidentifier>
885
- <docidentifier type='metanorma'>[3]</docidentifier>
885
+ <docidentifier type='metanorma'>[1]</docidentifier>
886
886
  <docidentifier type='URN'>urn:iso:std:iso-iec:tr:12382:stage-90.93:ed-2:en</docidentifier>
887
887
  <docnumber>12382</docnumber>
888
888
  <date type="published">
@@ -922,7 +922,7 @@ compris les éventuels amendements).
922
922
  </copyright>
923
923
  <place>Geneva</place>
924
924
  </bibitem>
925
- <bibitem type="standard" id="iso126">
925
+ <bibitem id="iso126" type="standard">
926
926
  <fetched>#{Date.today}</fetched>
927
927
  <title type="title-intro" format="text/plain" language="en" script="Latn">Latex, rubber</title>
928
928
  <title type="title-main" format="text/plain" language="en" script="Latn">Determination of total solids content</title>
@@ -931,7 +931,7 @@ compris les éventuels amendements).
931
931
  <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:61884:en</uri>
932
932
  <uri type="rss">https://www.iso.org/contents/data/standard/06/18/61884.detail.rss</uri>
933
933
  <docidentifier type="ISO">ISO 124:2014</docidentifier>
934
- <docidentifier type='metanorma'>[4]</docidentifier>
934
+ <docidentifier type='metanorma'>[1]</docidentifier>
935
935
  <docidentifier type='URN'>urn:iso:std:iso:124:stage-90.93:ed-7:en</docidentifier>
936
936
  <docnumber>124</docnumber>
937
937
  <date type="published">
@@ -988,7 +988,7 @@ compris les éventuels amendements).
988
988
  #{BLANK_HDR}
989
989
  <sections>
990
990
 
991
- </sections><bibliography><references id="_" obligation="informative" normative="true">
991
+ </sections><bibliography><references id="_" normative="true" obligation="informative" >
992
992
  <title>Normative references</title>
993
993
  #{NORM_REF_BOILERPLATE}
994
994
  <bibitem id='iso123'>
@@ -1112,7 +1112,7 @@ OUTPUT
1112
1112
  </bibitem>
1113
1113
  <bibitem id='iso126' type='standard'>
1114
1114
  <title format='text/plain'>Standard</title>
1115
- <docidentifier type='metanorma'>[4]</docidentifier>
1115
+ <docidentifier type='metanorma'>[1]</docidentifier>
1116
1116
  <docidentifier>ISO 123:—</docidentifier>
1117
1117
  <docnumber>123</docnumber>
1118
1118
  <date type='published'>
@@ -1166,7 +1166,7 @@ OUTPUT
1166
1166
  </bibitem>
1167
1167
  <bibitem id='iso124' type='standard'>
1168
1168
  <title format='text/plain'>Standard</title>
1169
- <docidentifier type='metanorma'>[2]</docidentifier>
1169
+ <docidentifier type='metanorma'>[1]</docidentifier>
1170
1170
  <docidentifier>ISO 123:1066 (all parts)</docidentifier>
1171
1171
  <docnumber>123</docnumber>
1172
1172
  <date type='published'>
@@ -1208,134 +1208,156 @@ OUTPUT
1208
1208
  <clause id="_" inline-header="false" obligation="normative">
1209
1209
  <title>Clause 4</title>
1210
1210
  <p id="_">
1211
- <eref type="inline" bibitemid="iso123" citeas="RFC 8341"/>
1211
+ <eref type="inline" bibitemid="iso123" citeas="IETF RFC 8341"/>
1212
1212
  </p>
1213
1213
  </clause>
1214
1214
  </sections><bibliography><references id="_" obligation="informative" normative="true">
1215
1215
  <title>Normative references</title>
1216
1216
  #{NORM_REF_BOILERPLATE}
1217
- <bibitem id="iso123" type="standard">
1218
- <fetched>#{Date.today}</fetched>
1219
- <title format="text/plain" language="en" script="Latn">Network Configuration Access Control Model</title>
1220
- <uri type='xml'>https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8341.xml</uri>
1221
- <uri type="src">https://www.rfc-editor.org/info/rfc8341</uri>
1222
- <docidentifier type="IETF">RFC 8341</docidentifier>
1223
- <docidentifier type='rfc-anchor'>RFC8341</docidentifier>
1224
- <docidentifier type="DOI">10.17487/RFC8341</docidentifier>
1225
- <date type="published">
1226
- <on>2018-03</on>
1227
- </date>
1228
- <contributor>
1229
- <role type="author"/>
1230
- <person>
1231
- <name>
1232
- <completename language="en">A. Bierman</completename>
1233
- </name>
1234
- <affiliation>
1235
- <organization>
1236
- <name>Internet Engineering Task Force</name>
1237
- <abbreviation>IETF</abbreviation>
1238
- </organization>
1239
- </affiliation>
1240
- </person>
1241
- </contributor>
1242
- <contributor>
1243
- <role type="author"/>
1244
- <person>
1245
- <name>
1246
- <completename language="en">M. Bjorklund</completename>
1247
- </name>
1248
- <affiliation>
1249
- <organization>
1250
- <name>Internet Engineering Task Force</name>
1251
- <abbreviation>IETF</abbreviation>
1252
- </organization>
1253
- </affiliation>
1254
- </person>
1255
- </contributor>
1256
- <contributor>
1257
- <role type='publisher'/>
1258
- <organization>
1259
- <name>Internet Engineering Task Force</name>
1260
- <abbreviation>IETF</abbreviation>
1261
- </organization>
1262
- </contributor>
1263
- <language>en</language>
1264
- <script>Latn</script>
1265
- <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>
1266
- <series type="main">
1267
- <title format="text/plain" language="en" script="Latn">STD</title>
1268
- <number>91</number>
1269
- </series>
1270
- <series type="main">
1271
- <title format="text/plain" language="en" script="Latn">RFC</title>
1272
- <number>8341</number>
1273
- </series>
1274
- <place>Fremont, CA</place>
1275
- </bibitem>
1276
- <bibitem id="iso124" type="standard">
1277
- <fetched>#{Date.today}</fetched>
1278
- <title format="text/plain" language="en" script="Latn">Network Configuration Access Control Model</title>
1279
- <uri type='xml'>https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8341.xml</uri>
1280
- <uri type="src">https://www.rfc-editor.org/info/rfc8341</uri>
1281
- <docidentifier type="IETF">RFC 8341</docidentifier>
1282
- <docidentifier type='metanorma'>[2]</docidentifier>
1283
- <docidentifier type='rfc-anchor'>RFC8341</docidentifier>
1284
- <docidentifier type="DOI">10.17487/RFC8341</docidentifier>
1285
- <date type="published">
1286
- <on>2018-03</on>
1287
- </date>
1288
- <contributor>
1289
- <role type="author"/>
1290
- <person>
1291
- <name>
1292
- <completename language="en">A. Bierman</completename>
1293
- </name>
1294
- <affiliation>
1295
- <organization>
1296
- <name>Internet Engineering Task Force</name>
1297
- <abbreviation>IETF</abbreviation>
1298
- </organization>
1299
- </affiliation>
1300
- </person>
1301
- </contributor>
1302
- <contributor>
1303
- <role type="author"/>
1304
- <person>
1305
- <name>
1306
- <completename language="en">M. Bjorklund</completename>
1307
- </name>
1308
- <affiliation>
1309
- <organization>
1310
- <name>Internet Engineering Task Force</name>
1311
- <abbreviation>IETF</abbreviation>
1312
- </organization>
1313
- </affiliation>
1314
- </person>
1315
- </contributor>
1316
- <contributor>
1317
- <role type='publisher'/>
1318
- <organization>
1319
- <name>Internet Engineering Task Force</name>
1320
- <abbreviation>IETF</abbreviation>
1321
- </organization>
1322
- </contributor>
1323
- <language>en</language>
1324
- <script>Latn</script>
1325
- <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>
1326
- <series type="main">
1327
- <title format="text/plain" language="en" script="Latn">STD</title>
1328
- <number>91</number>
1329
- </series>
1330
- <series type="main">
1331
- <title format="text/plain" language="en" script="Latn">RFC</title>
1332
- <number>8341</number>
1333
- </series>
1334
- <place>Fremont, CA</place>
1335
- </bibitem>
1336
- </references>
1337
- </bibliography>
1338
- </standard-document>
1217
+ <bibitem id='iso123' type='standard'>
1218
+ <fetched>#{Date.today}</fetched>
1219
+ <title format='text/plain' language='en' script='Latn'>Network Configuration Access Control Model</title>
1220
+ <uri type='xml'>
1221
+ https://raw.githubusercontent.com/relaton/relaton-data-ietf/master/data/reference.RFC.8341.xml
1222
+ </uri>
1223
+ <uri type='src'>https://www.rfc-editor.org/info/rfc8341</uri>
1224
+ <docidentifier type='IETF'>RFC 8341</docidentifier>
1225
+ <docidentifier type='rfc-anchor'>RFC8341</docidentifier>
1226
+ <docidentifier type='DOI'>10.17487/RFC8341</docidentifier>
1227
+ <date type='published'>
1228
+ <on>2018-03</on>
1229
+ </date>
1230
+ <contributor>
1231
+ <role type='author'/>
1232
+ <person>
1233
+ <name>
1234
+ <completename language='en'>A. Bierman</completename>
1235
+ </name>
1236
+ <affiliation>
1237
+ <organization>
1238
+ <name>Internet Engineering Task Force</name>
1239
+ <abbreviation>IETF</abbreviation>
1240
+ </organization>
1241
+ </affiliation>
1242
+ </person>
1243
+ </contributor>
1244
+ <contributor>
1245
+ <role type='author'/>
1246
+ <person>
1247
+ <name>
1248
+ <completename language='en'>M. Bjorklund</completename>
1249
+ </name>
1250
+ <affiliation>
1251
+ <organization>
1252
+ <name>Internet Engineering Task Force</name>
1253
+ <abbreviation>IETF</abbreviation>
1254
+ </organization>
1255
+ </affiliation>
1256
+ </person>
1257
+ </contributor>
1258
+ <contributor>
1259
+ <role type='publisher'/>
1260
+ <organization>
1261
+ <name>Internet Engineering Task Force</name>
1262
+ <abbreviation>IETF</abbreviation>
1263
+ </organization>
1264
+ </contributor>
1265
+ <language>en</language>
1266
+ <script>Latn</script>
1267
+ <abstract format='text/plain' language='en' script='Latn'>
1268
+ The standardization of network configuration interfaces for use with
1269
+ the Network Configuration Protocol (NETCONF) or the RESTCONF protocol
1270
+ requires a structured and secure operating environment that promotes
1271
+ human usability and multi-vendor interoperability. There is a need for
1272
+ standard mechanisms to restrict NETCONF or RESTCONF protocol access
1273
+ for particular users to a preconfigured subset of all available
1274
+ NETCONF or RESTCONF protocol operations and content. This document
1275
+ defines such an access control model.This document obsoletes RFC 6536.
1276
+ </abstract>
1277
+ <series type='main'>
1278
+ <title format='text/plain' language='en' script='Latn'>STD</title>
1279
+ <number>91</number>
1280
+ </series>
1281
+ <series type='main'>
1282
+ <title format='text/plain' language='en' script='Latn'>RFC</title>
1283
+ <number>8341</number>
1284
+ </series>
1285
+ <place>Fremont, CA</place>
1286
+ </bibitem>
1287
+ <bibitem id='iso124' type='standard'>
1288
+ <fetched>#{Date.today}</fetched>
1289
+ <title format='text/plain' language='en' script='Latn'>Network Configuration Access Control Model</title>
1290
+ <uri type='xml'>
1291
+ https://raw.githubusercontent.com/relaton/relaton-data-ietf/master/data/reference.RFC.8341.xml
1292
+ </uri>
1293
+ <uri type='src'>https://www.rfc-editor.org/info/rfc8341</uri>
1294
+ <docidentifier type='IETF'>RFC 8341</docidentifier>
1295
+ <docidentifier type='metanorma'>[1]</docidentifier>
1296
+ <docidentifier type='rfc-anchor'>RFC8341</docidentifier>
1297
+ <docidentifier type='DOI'>10.17487/RFC8341</docidentifier>
1298
+ <date type='published'>
1299
+ <on>2018-03</on>
1300
+ </date>
1301
+ <contributor>
1302
+ <role type='author'/>
1303
+ <person>
1304
+ <name>
1305
+ <completename language='en'>A. Bierman</completename>
1306
+ </name>
1307
+ <affiliation>
1308
+ <organization>
1309
+ <name>Internet Engineering Task Force</name>
1310
+ <abbreviation>IETF</abbreviation>
1311
+ </organization>
1312
+ </affiliation>
1313
+ </person>
1314
+ </contributor>
1315
+ <contributor>
1316
+ <role type='author'/>
1317
+ <person>
1318
+ <name>
1319
+ <completename language='en'>M. Bjorklund</completename>
1320
+ </name>
1321
+ <affiliation>
1322
+ <organization>
1323
+ <name>Internet Engineering Task Force</name>
1324
+ <abbreviation>IETF</abbreviation>
1325
+ </organization>
1326
+ </affiliation>
1327
+ </person>
1328
+ </contributor>
1329
+ <contributor>
1330
+ <role type='publisher'/>
1331
+ <organization>
1332
+ <name>Internet Engineering Task Force</name>
1333
+ <abbreviation>IETF</abbreviation>
1334
+ </organization>
1335
+ </contributor>
1336
+ <language>en</language>
1337
+ <script>Latn</script>
1338
+ <abstract format='text/plain' language='en' script='Latn'>
1339
+ The standardization of network configuration interfaces for use with
1340
+ the Network Configuration Protocol (NETCONF) or the RESTCONF protocol
1341
+ requires a structured and secure operating environment that promotes
1342
+ human usability and multi-vendor interoperability. There is a need for
1343
+ standard mechanisms to restrict NETCONF or RESTCONF protocol access
1344
+ for particular users to a preconfigured subset of all available
1345
+ NETCONF or RESTCONF protocol operations and content. This document
1346
+ defines such an access control model.This document obsoletes RFC 6536.
1347
+ </abstract>
1348
+ <series type='main'>
1349
+ <title format='text/plain' language='en' script='Latn'>STD</title>
1350
+ <number>91</number>
1351
+ </series>
1352
+ <series type='main'>
1353
+ <title format='text/plain' language='en' script='Latn'>RFC</title>
1354
+ <number>8341</number>
1355
+ </series>
1356
+ <place>Fremont, CA</place>
1357
+ </bibitem>
1358
+ </references>
1359
+ </bibliography>
1360
+ </standard-document>
1339
1361
  OUTPUT
1340
1362
  end
1341
1363
  end
@@ -1366,7 +1388,7 @@ OUTPUT
1366
1388
  <formattedref format='application/x-isodoc+xml'>
1367
1389
  <em>Standard</em>
1368
1390
  </formattedref>
1369
- <docidentifier type='metanorma'>[2]</docidentifier>
1391
+ <docidentifier type='metanorma'>[1]</docidentifier>
1370
1392
  <docidentifier>XYZ 123:1066 (all parts)</docidentifier>
1371
1393
  <docnumber>123:1066 (all parts)</docnumber>
1372
1394
  </bibitem>
@@ -1472,7 +1494,7 @@ OUTPUT
1472
1494
  </bibitem>
1473
1495
  <bibitem id='iso124' type='standard'>
1474
1496
  <title format='text/plain'>Standard</title>
1475
- <docidentifier type='metanorma'>[2]</docidentifier>
1497
+ <docidentifier type='metanorma'>[1]</docidentifier>
1476
1498
  <docidentifier type='ISO'>ISO 123</docidentifier>
1477
1499
  <docnumber>123</docnumber>
1478
1500
  <contributor>
@@ -1579,7 +1601,7 @@ OUTPUT
1579
1601
  INPUT
1580
1602
  #{BLANK_HDR}
1581
1603
  <sections>
1582
- <clause id='_' inline-header='false' obligation='normative' type="scope">
1604
+ <clause id='_' type="scope" inline-header='false' obligation='normative'>
1583
1605
  <title>Scope</title>
1584
1606
  <p id='_'>
1585
1607
  <eref type='inline' bibitemid='iso123' citeas='ISO 123 (all parts)'/>
@@ -1748,6 +1770,134 @@ OUTPUT
1748
1770
  OUTPUT
1749
1771
  end
1750
1772
 
1773
+ it "overrides normative status of bibliographies" do
1774
+ mock_isobib_get_123_no_docid(1)
1775
+ mock_isobib_get_123_no_docid_lbl(1)
1776
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :standoc, header_footer: true)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
1777
+ #{ISOBIB_BLANK_HDR}
1778
+ [bibliography,normative=false]
1779
+ == Normative References
1780
+
1781
+ * [[[iso123,ISO 123]]] _Standard_
1782
+
1783
+ [bibliography,normative=true]
1784
+ == Bibliography
1785
+
1786
+ * [[[iso124,(1)ISO 123]]] _Standard_
1787
+ INPUT
1788
+ #{BLANK_HDR}
1789
+ <sections> </sections>
1790
+ <bibliography>
1791
+ <references id='_' normative='false' obligation='informative'>
1792
+ <title>Bibliography</title>
1793
+ <bibitem type='standard' id='iso123'>
1794
+ <uri type='src'>https://www.iso.org/standard/23281.html</uri>
1795
+ <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
1796
+ <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
1797
+ <date type='published'>
1798
+ <on>2001</on>
1799
+ </date>
1800
+ <contributor>
1801
+ <role type='publisher'/>
1802
+ <organization>
1803
+ <name>International Organization for Standardization</name>
1804
+ <abbreviation>ISO</abbreviation>
1805
+ <uri>www.iso.org</uri>
1806
+ </organization>
1807
+ </contributor>
1808
+ <edition>3</edition>
1809
+ <language>en</language>
1810
+ <language>fr</language>
1811
+ <script>Latn</script>
1812
+ <status>
1813
+ <stage>Published</stage>
1814
+ </status>
1815
+ <copyright>
1816
+ <from>2001</from>
1817
+ <owner>
1818
+ <organization>
1819
+ <name>ISO</name>
1820
+ <abbreviation/>
1821
+ </organization>
1822
+ </owner>
1823
+ </copyright>
1824
+ <relation type='obsoletes'>
1825
+ <bibitem type='standard'>
1826
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
1827
+ </bibitem>
1828
+ </relation>
1829
+ <relation type='updates'>
1830
+ <bibitem type='standard'>
1831
+ <formattedref format='text/plain'>ISO 123:2001</formattedref>
1832
+ </bibitem>
1833
+ </relation>
1834
+ <docidentifier>ISO 123</docidentifier>
1835
+ <title>
1836
+ <em>Standard</em>
1837
+ </title>
1838
+ </bibitem>
1839
+ </references>
1840
+ <references id='_' normative='true' obligation='informative'>
1841
+ <title>Normative references</title>
1842
+ <p id='_'>
1843
+ The following documents are referred to in the text in such a way that
1844
+ some or all of their content constitutes requirements of this document.
1845
+ For dated references, only the edition cited applies. For undated
1846
+ references, the latest edition of the referenced document (including any
1847
+ amendments) applies.
1848
+ </p>
1849
+ <bibitem type='standard' id='iso124'>
1850
+ <uri type='src'>https://www.iso.org/standard/23281.html</uri>
1851
+ <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
1852
+ <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
1853
+ <date type='published'>
1854
+ <on>2001</on>
1855
+ </date>
1856
+ <contributor>
1857
+ <role type='publisher'/>
1858
+ <organization>
1859
+ <name>International Organization for Standardization</name>
1860
+ <abbreviation>ISO</abbreviation>
1861
+ <uri>www.iso.org</uri>
1862
+ </organization>
1863
+ </contributor>
1864
+ <edition>3</edition>
1865
+ <language>en</language>
1866
+ <language>fr</language>
1867
+ <script>Latn</script>
1868
+ <status>
1869
+ <stage>Published</stage>
1870
+ </status>
1871
+ <copyright>
1872
+ <from>2001</from>
1873
+ <owner>
1874
+ <organization>
1875
+ <name>ISO</name>
1876
+ <abbreviation/>
1877
+ </organization>
1878
+ </owner>
1879
+ </copyright>
1880
+ <relation type='obsoletes'>
1881
+ <bibitem type='standard'>
1882
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
1883
+ </bibitem>
1884
+ </relation>
1885
+ <relation type='updates'>
1886
+ <bibitem type='standard'>
1887
+ <formattedref format='text/plain'>ISO 123:2001</formattedref>
1888
+ </bibitem>
1889
+ </relation>
1890
+ <docidentifier>ISO 123</docidentifier>
1891
+ <docidentifier type='metanorma'>[1]</docidentifier>
1892
+ <title>
1893
+ <em>Standard</em>
1894
+ </title>
1895
+ </bibitem>
1896
+ </references>
1897
+ </bibliography>
1898
+ </standard-document>
1899
+ OUTPUT
1900
+ end
1751
1901
 
1752
1902
  private
1753
1903
 
@@ -1759,20 +1909,20 @@ OUTPUT
1759
1909
  end
1760
1910
  end
1761
1911
 
1762
- def mock_isobib_get_123_no_docid
1912
+ def mock_isobib_get_123_no_docid(n)
1763
1913
  expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 123", nil, {:lang=>"en", :title=>"<em>Standard</em>", usrlbl: nil}) do
1764
1914
  RelatonBib::XMLParser.from_xml(<<~"OUTPUT")
1765
1915
  <bibitem type=\"standard\" id=\"ISO123\">\n <uri type=\"src\">https://www.iso.org/standard/23281.html</uri>\n <uri type=\"obp\">https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>\n <uri type=\"rss\">https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>\n <date type=\"published\">\n <on>2001</on>\n </date>\n <contributor>\n <role type=\"publisher\"/>\n <organization>\n <name>International Organization for Standardization</name>\n <abbreviation>ISO</abbreviation>\n <uri>www.iso.org</uri>\n </organization>\n </contributor>\n <edition>3</edition>\n <language>en</language>\n <language>fr</language>\n <script>Latn</script>\n <status><stage>Published</stage></status>\n <copyright>\n <from>2001</from>\n <owner>\n <organization>\n <name>ISO</name>\n <abbreviation></abbreviation>\n </organization>\n </owner>\n </copyright>\n <relation type=\"obsoletes\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:1985</formattedref>\n </bibitem>\n </relation>\n <relation type=\"updates\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:2001</formattedref>\n </bibitem>\n </relation>\n</bibitem>
1766
1916
  OUTPUT
1767
- end.exactly(2).times
1917
+ end.exactly(n).times
1768
1918
  end
1769
1919
 
1770
- def mock_isobib_get_123_no_docid_lbl
1920
+ def mock_isobib_get_123_no_docid_lbl(n)
1771
1921
  expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 123", nil, {:lang=>"en", :title=>"<em>Standard</em>", usrlbl: "(1)"}) do
1772
1922
  RelatonBib::XMLParser.from_xml(<<~"OUTPUT")
1773
1923
  <bibitem type=\"standard\" id=\"ISO123\">\n <uri type=\"src\">https://www.iso.org/standard/23281.html</uri>\n <uri type=\"obp\">https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>\n <uri type=\"rss\">https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>\n <date type=\"published\">\n <on>2001</on>\n </date>\n <contributor>\n <role type=\"publisher\"/>\n <organization>\n <name>International Organization for Standardization</name>\n <abbreviation>ISO</abbreviation>\n <uri>www.iso.org</uri>\n </organization>\n </contributor>\n <edition>3</edition>\n <language>en</language>\n <language>fr</language>\n <script>Latn</script>\n <status><stage>Published</stage></status>\n <copyright>\n <from>2001</from>\n <owner>\n <organization>\n <name>ISO</name>\n <abbreviation></abbreviation>\n </organization>\n </owner>\n </copyright>\n <relation type=\"obsoletes\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:1985</formattedref>\n </bibitem>\n </relation>\n <relation type=\"updates\">\n <bibitem type="standard">\n <formattedref format="text/plain">ISO 123:2001</formattedref>\n </bibitem>\n </relation>\n</bibitem>
1774
1924
  OUTPUT
1775
- end.exactly(2).times
1925
+ end.exactly(n).times
1776
1926
  end
1777
1927
 
1778
1928
  def mock_isobib_get_124