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.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +11 -41
- data/.gitignore +2 -0
- data/.rubocop.yml +6 -2
- data/lib/asciidoctor/standoc/base.rb +3 -1
- data/lib/asciidoctor/standoc/biblio.rng +4 -6
- data/lib/asciidoctor/standoc/blocks.rb +35 -12
- data/lib/asciidoctor/standoc/cleanup.rb +2 -1
- data/lib/asciidoctor/standoc/cleanup_block.rb +73 -22
- data/lib/asciidoctor/standoc/cleanup_boilerplate.rb +3 -3
- data/lib/asciidoctor/standoc/cleanup_inline.rb +4 -3
- data/lib/asciidoctor/standoc/cleanup_maths.rb +37 -0
- data/lib/asciidoctor/standoc/cleanup_ref.rb +4 -13
- data/lib/asciidoctor/standoc/cleanup_section.rb +5 -0
- data/lib/asciidoctor/standoc/cleanup_terms.rb +2 -2
- data/lib/asciidoctor/standoc/inline.rb +7 -15
- data/lib/asciidoctor/standoc/isodoc.rng +105 -2
- data/lib/asciidoctor/standoc/ref_sect.rb +12 -12
- data/lib/asciidoctor/standoc/section.rb +9 -0
- data/lib/asciidoctor/standoc/utils.rb +0 -24
- data/lib/asciidoctor/standoc/validate.rb +16 -1
- data/lib/metanorma/standoc/version.rb +1 -1
- data/metanorma-standoc.gemspec +5 -5
- data/spec/{asciidoctor-standoc → asciidoctor}/base_spec.rb +4 -0
- data/spec/{asciidoctor-standoc → asciidoctor}/blocks_spec.rb +0 -0
- data/spec/{asciidoctor-standoc → asciidoctor}/cleanup_sections_spec.rb +14 -14
- data/spec/{asciidoctor-standoc → asciidoctor}/cleanup_spec.rb +242 -11
- data/spec/{asciidoctor-standoc → asciidoctor}/datamodel/attributes_table_preprocessor_spec.rb +0 -0
- data/spec/{asciidoctor-standoc → asciidoctor}/datamodel/diagram_preprocessor_spec.rb +0 -0
- data/spec/{asciidoctor-standoc → asciidoctor}/inline_spec.rb +2 -0
- data/spec/{asciidoctor-standoc → asciidoctor}/isobib_cache_spec.rb +0 -0
- data/spec/{asciidoctor-standoc → asciidoctor}/lists_spec.rb +0 -0
- data/spec/{asciidoctor-standoc → asciidoctor}/macros_json2text_spec.rb +0 -0
- data/spec/{asciidoctor-standoc → asciidoctor}/macros_plantuml_spec.rb +0 -0
- data/spec/{asciidoctor-standoc → asciidoctor}/macros_spec.rb +0 -0
- data/spec/{asciidoctor-standoc → asciidoctor}/macros_yaml2text_spec.rb +0 -0
- data/spec/{asciidoctor-standoc → asciidoctor}/refs_dl_spec.rb +0 -0
- data/spec/{asciidoctor-standoc → asciidoctor}/refs_spec.rb +297 -147
- data/spec/{asciidoctor-standoc → asciidoctor}/section_spec.rb +17 -0
- data/spec/{asciidoctor-standoc → asciidoctor}/table_spec.rb +0 -0
- data/spec/{asciidoctor-standoc → asciidoctor}/validate_spec.rb +20 -0
- data/spec/assets/html-override.css +1 -0
- data/spec/assets/word-override.css +1 -0
- data/spec/fixtures/action_schemaexpg1.svg +122 -0
- data/spec/spec_helper.rb +8 -0
- data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +62 -62
- data/spec/vcr_cassettes/isobib_get_123.yml +15 -15
- data/spec/vcr_cassettes/isobib_get_123_1.yml +30 -30
- data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +42 -42
- data/spec/vcr_cassettes/isobib_get_123_2001.yml +15 -15
- data/spec/vcr_cassettes/isobib_get_124.yml +16 -16
- data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +94 -30
- data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +59 -57
- metadata +41 -41
- data/.rubocop.ribose.yml +0 -66
- data/.rubocop.tb.yml +0 -650
- data/spec/asciidoctor-standoc/macros_lutaml_spec.rb +0 -80
data/spec/{asciidoctor-standoc → asciidoctor}/datamodel/attributes_table_preprocessor_spec.rb
RENAMED
File without changes
|
File without changes
|
@@ -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">Α</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>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -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'>[
|
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'>[
|
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='[
|
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'>[
|
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'>[
|
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'>[
|
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'>[
|
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
|
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
|
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'>[
|
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
|
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'>[
|
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="_"
|
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'>[
|
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'>[
|
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
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
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'>[
|
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'>[
|
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'
|
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(
|
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(
|
1925
|
+
end.exactly(n).times
|
1776
1926
|
end
|
1777
1927
|
|
1778
1928
|
def mock_isobib_get_124
|