metanorma-standoc 1.8.8 → 1.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +3 -13
- data/.hound.yml +3 -1
- data/.rubocop.yml +3 -7
- data/Gemfile.devel +0 -0
- data/lib/asciidoctor/standoc/base.rb +42 -36
- data/lib/asciidoctor/standoc/biblio.rng +1 -0
- data/lib/asciidoctor/standoc/blocks.rb +25 -9
- data/lib/asciidoctor/standoc/blocks_notes.rb +41 -24
- data/lib/asciidoctor/standoc/cleanup.rb +59 -84
- data/lib/asciidoctor/standoc/cleanup_block.rb +63 -85
- data/lib/asciidoctor/standoc/cleanup_boilerplate.rb +51 -29
- data/lib/asciidoctor/standoc/cleanup_footnotes.rb +1 -0
- data/lib/asciidoctor/standoc/cleanup_image.rb +71 -0
- data/lib/asciidoctor/standoc/cleanup_maths.rb +36 -27
- data/lib/asciidoctor/standoc/cleanup_ref.rb +24 -15
- data/lib/asciidoctor/standoc/cleanup_ref_dl.rb +1 -1
- data/lib/asciidoctor/standoc/cleanup_reqt.rb +47 -0
- data/lib/asciidoctor/standoc/cleanup_section.rb +77 -134
- data/lib/asciidoctor/standoc/cleanup_section_names.rb +75 -0
- data/lib/asciidoctor/standoc/converter.rb +10 -3
- data/lib/asciidoctor/standoc/datamodel/plantuml_renderer.rb +67 -66
- data/lib/asciidoctor/standoc/front.rb +35 -18
- data/lib/asciidoctor/standoc/front_contributor.rb +70 -45
- data/lib/asciidoctor/standoc/inline.rb +30 -22
- data/lib/asciidoctor/standoc/isodoc.rng +321 -4
- data/lib/asciidoctor/standoc/lists.rb +4 -2
- data/lib/asciidoctor/standoc/macros.rb +50 -23
- data/lib/asciidoctor/standoc/macros_form.rb +63 -0
- data/lib/asciidoctor/standoc/ref.rb +87 -112
- data/lib/asciidoctor/standoc/ref_date_id.rb +62 -0
- data/lib/asciidoctor/standoc/ref_sect.rb +20 -17
- data/lib/asciidoctor/standoc/section.rb +3 -1
- data/lib/asciidoctor/standoc/term_lookup_cleanup.rb +31 -16
- data/lib/asciidoctor/standoc/terms.rb +27 -16
- data/lib/asciidoctor/standoc/utils.rb +35 -9
- data/lib/asciidoctor/standoc/validate.rb +30 -28
- data/lib/metanorma-standoc.rb +0 -1
- data/lib/metanorma/standoc/version.rb +5 -5
- data/metanorma-standoc.gemspec +11 -11
- data/spec/asciidoctor/base_spec.rb +715 -509
- data/spec/asciidoctor/blocks_spec.rb +830 -727
- data/spec/asciidoctor/cleanup_sections_spec.rb +51 -14
- data/spec/asciidoctor/cleanup_spec.rb +1836 -1673
- data/spec/asciidoctor/inline_spec.rb +330 -283
- data/spec/asciidoctor/isobib_cache_spec.rb +406 -358
- data/spec/asciidoctor/lists_spec.rb +3 -3
- data/spec/asciidoctor/macros_plantuml_spec.rb +8 -8
- data/spec/asciidoctor/macros_spec.rb +546 -444
- data/spec/asciidoctor/macros_yaml2text_spec.rb +1 -1
- data/spec/asciidoctor/refs_dl_spec.rb +4 -4
- data/spec/asciidoctor/refs_spec.rb +1528 -1533
- data/spec/asciidoctor/section_spec.rb +778 -689
- data/spec/asciidoctor/table_spec.rb +6 -6
- data/spec/asciidoctor/validate_spec.rb +296 -304
- data/spec/spec_helper.rb +13 -9
- data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +66 -66
- data/spec/vcr_cassettes/isobib_get_123.yml +17 -17
- data/spec/vcr_cassettes/isobib_get_123_1.yml +31 -31
- data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +40 -40
- data/spec/vcr_cassettes/isobib_get_123_2001.yml +17 -17
- data/spec/vcr_cassettes/isobib_get_124.yml +16 -16
- data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +14 -14
- data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +78 -66
- metadata +69 -67
- data/lib/liquid/custom_blocks/key_iterator.rb +0 -21
- data/lib/liquid/custom_blocks/with_json_nested_context.rb +0 -18
- data/lib/liquid/custom_blocks/with_yaml_nested_context.rb +0 -19
- data/lib/liquid/custom_filters/values.rb +0 -7
@@ -3,7 +3,7 @@ require "relaton_iso"
|
|
3
3
|
|
4
4
|
RSpec.describe Asciidoctor::Standoc do
|
5
5
|
it "processes simple dl reference" do
|
6
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
6
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
7
7
|
#{ASCIIDOC_BLANK_HDR}
|
8
8
|
[bibliography]
|
9
9
|
== Normative References
|
@@ -72,7 +72,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
72
72
|
end
|
73
73
|
|
74
74
|
it "processes complex dl reference" do
|
75
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
75
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
76
76
|
#{ASCIIDOC_BLANK_HDR}
|
77
77
|
|
78
78
|
== Clause
|
@@ -455,7 +455,7 @@ OUTPUT
|
|
455
455
|
end
|
456
456
|
|
457
457
|
it "processes complex dl reference with dot path keys" do
|
458
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
458
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
459
459
|
#{ASCIIDOC_BLANK_HDR}
|
460
460
|
[bibliography]
|
461
461
|
== Normative References
|
@@ -773,7 +773,7 @@ OUTPUT
|
|
773
773
|
end
|
774
774
|
|
775
775
|
it "processes mix of dl and default references" do
|
776
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
776
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
777
777
|
#{ASCIIDOC_BLANK_HDR}
|
778
778
|
|
779
779
|
== Section
|
@@ -3,8 +3,8 @@ require "relaton_iso"
|
|
3
3
|
require "relaton_ietf"
|
4
4
|
|
5
5
|
RSpec.describe Asciidoctor::Standoc do
|
6
|
-
|
7
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
6
|
+
it "processes simple ISO reference" do
|
7
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
8
8
|
#{ASCIIDOC_BLANK_HDR}
|
9
9
|
[bibliography]
|
10
10
|
== Normative References
|
@@ -12,42 +12,42 @@ RSpec.describe Asciidoctor::Standoc do
|
|
12
12
|
* [[[iso123,ISO 123]]] _Standard_
|
13
13
|
* [[[iso124,(1)ISO 123]]] _Standard_
|
14
14
|
INPUT
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
</bibitem>
|
43
|
-
|
44
|
-
|
45
|
-
|
15
|
+
#{BLANK_HDR}
|
16
|
+
<sections>
|
17
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true">
|
18
|
+
<title>Normative references</title>
|
19
|
+
#{NORM_REF_BOILERPLATE}
|
20
|
+
<bibitem id="iso123" type="standard">
|
21
|
+
<title format="text/plain">Standard</title>
|
22
|
+
<docidentifier>ISO 123</docidentifier>
|
23
|
+
<docnumber>123</docnumber>
|
24
|
+
<contributor>
|
25
|
+
<role type="publisher"/>
|
26
|
+
<organization>
|
27
|
+
<name>ISO</name>
|
28
|
+
</organization>
|
29
|
+
</contributor>
|
30
|
+
</bibitem>
|
31
|
+
<bibitem id='iso124' type='standard'>
|
32
|
+
<title format='text/plain'>Standard</title>
|
33
|
+
<docidentifier type='metanorma'>[1]</docidentifier>
|
34
|
+
<docidentifier>ISO 123</docidentifier>
|
35
|
+
<docnumber>123</docnumber>
|
36
|
+
<contributor>
|
37
|
+
<role type='publisher'/>
|
38
|
+
<organization>
|
39
|
+
<name>ISO</name>
|
40
|
+
</organization>
|
41
|
+
</contributor>
|
42
|
+
</bibitem>
|
43
|
+
</references>
|
44
|
+
</bibliography>
|
45
|
+
</standard-document>
|
46
46
|
OUTPUT
|
47
47
|
end
|
48
48
|
|
49
49
|
it "processes simple ISO reference with date range" do
|
50
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
50
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
51
51
|
#{ASCIIDOC_BLANK_HDR}
|
52
52
|
[bibliography]
|
53
53
|
== Normative References
|
@@ -55,46 +55,46 @@ RSpec.describe Asciidoctor::Standoc do
|
|
55
55
|
* [[[iso123,ISO 123:1066-1067]]] _Standard_
|
56
56
|
* [[[iso124,(1)ISO 123:1066-1067]]] _Standard_
|
57
57
|
INPUT
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
58
|
+
#{BLANK_HDR}
|
59
|
+
<sections>
|
60
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true">
|
61
|
+
<title>Normative references</title>
|
62
|
+
#{NORM_REF_BOILERPLATE}
|
63
|
+
<bibitem id="iso123" type="standard">
|
64
|
+
<title format="text/plain">Standard</title>
|
65
|
+
<docidentifier>ISO 123:1066-1067</docidentifier>
|
66
|
+
<docnumber>123</docnumber>
|
67
|
+
<date type="published">
|
68
|
+
<from>1066</from>
|
69
|
+
<to>1067</to>
|
70
|
+
</date>
|
71
|
+
<contributor>
|
72
|
+
<role type="publisher"/>
|
73
|
+
<organization>
|
74
|
+
<name>ISO</name>
|
75
|
+
</organization>
|
76
|
+
</contributor>
|
77
|
+
</bibitem>
|
78
|
+
<bibitem id="iso124" type="standard">
|
79
|
+
<title format="text/plain">Standard</title>
|
80
|
+
<docidentifier type='metanorma'>[1]</docidentifier>
|
81
|
+
<docidentifier>ISO 123:1066-1067</docidentifier>
|
82
|
+
<docnumber>123</docnumber>
|
83
|
+
<date type="published">
|
84
|
+
<from>1066</from>
|
85
|
+
<to>1067</to>
|
86
|
+
</date>
|
87
|
+
<contributor>
|
88
|
+
<role type="publisher"/>
|
89
|
+
<organization>
|
90
|
+
<name>ISO</name>
|
91
|
+
</organization>
|
92
|
+
</contributor>
|
93
|
+
</bibitem>
|
94
94
|
|
95
|
-
|
96
|
-
|
97
|
-
|
95
|
+
</references>
|
96
|
+
</bibliography>
|
97
|
+
</standard-document>
|
98
98
|
OUTPUT
|
99
99
|
end
|
100
100
|
|
@@ -102,129 +102,129 @@ RSpec.describe Asciidoctor::Standoc do
|
|
102
102
|
mock_isobib_get_123_no_docid(2)
|
103
103
|
mock_isobib_get_123_no_docid_lbl(2)
|
104
104
|
input = <<~"INPUT"
|
105
|
-
|
106
|
-
|
107
|
-
<<iso123>>
|
108
|
-
<<iso124>>
|
105
|
+
#{ISOBIB_BLANK_HDR}
|
109
106
|
|
110
|
-
|
111
|
-
|
107
|
+
<<iso123>>
|
108
|
+
<<iso124>>
|
112
109
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
<
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
<
|
172
|
-
|
173
|
-
</
|
174
|
-
<
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
<
|
216
|
-
|
217
|
-
|
218
|
-
</
|
219
|
-
</
|
220
|
-
</
|
221
|
-
|
222
|
-
|
110
|
+
[bibliography]
|
111
|
+
== Normative References
|
112
|
+
|
113
|
+
* [[[iso123,ISO 123]]] _Standard_
|
114
|
+
* [[[iso124,(1)ISO 123]]] _Standard_
|
115
|
+
INPUT
|
116
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
117
|
+
#{BLANK_HDR}
|
118
|
+
<preface>
|
119
|
+
<foreword id='_' obligation='informative'>
|
120
|
+
<title>Foreword</title>
|
121
|
+
<p id='_'>
|
122
|
+
<eref type='inline' bibitemid='iso123' citeas='ISO 123'/>
|
123
|
+
<eref type='inline' bibitemid='iso124' citeas='[1]'/>
|
124
|
+
</p>
|
125
|
+
</foreword>
|
126
|
+
</preface>
|
127
|
+
<sections>
|
128
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true"><title>Normative references</title>
|
129
|
+
#{NORM_REF_BOILERPLATE}
|
130
|
+
<bibitem type="standard" id="iso123">
|
131
|
+
<uri type="src">https://www.iso.org/standard/23281.html</uri>
|
132
|
+
<uri type="obp">https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
133
|
+
<uri type="rss">https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
134
|
+
<date type="published">
|
135
|
+
<on>2001</on>
|
136
|
+
</date>
|
137
|
+
<contributor>
|
138
|
+
<role type="publisher"/>
|
139
|
+
<organization>
|
140
|
+
<name>International Organization for Standardization</name>
|
141
|
+
<abbreviation>ISO</abbreviation>
|
142
|
+
<uri>www.iso.org</uri>
|
143
|
+
</organization>
|
144
|
+
</contributor>
|
145
|
+
<edition>3</edition>
|
146
|
+
<language>en</language>
|
147
|
+
<language>fr</language>
|
148
|
+
<script>Latn</script>
|
149
|
+
<status>
|
150
|
+
<stage>Published</stage>
|
151
|
+
</status>
|
152
|
+
<copyright>
|
153
|
+
<from>2001</from>
|
154
|
+
<owner>
|
155
|
+
<organization>
|
156
|
+
<name>ISO</name>
|
157
|
+
<abbreviation/>
|
158
|
+
</organization>
|
159
|
+
</owner>
|
160
|
+
</copyright>
|
161
|
+
<relation type="obsoletes">
|
162
|
+
<bibitem type="standard">
|
163
|
+
<formattedref format="text/plain">ISO 123:1985</formattedref>
|
164
|
+
</bibitem>
|
165
|
+
</relation>
|
166
|
+
<relation type="updates">
|
167
|
+
<bibitem type="standard">
|
168
|
+
<formattedref format="text/plain">ISO 123:2001</formattedref>
|
169
|
+
</bibitem>
|
170
|
+
</relation>
|
171
|
+
<docidentifier>ISO 123</docidentifier>
|
172
|
+
<title><em>Standard</em></title>
|
173
|
+
</bibitem>
|
174
|
+
<bibitem type="standard" id="iso124">
|
175
|
+
<uri type="src">https://www.iso.org/standard/23281.html</uri>
|
176
|
+
<uri type="obp">https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
177
|
+
<uri type="rss">https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
178
|
+
<date type="published">
|
179
|
+
<on>2001</on>
|
180
|
+
</date>
|
181
|
+
<contributor>
|
182
|
+
<role type="publisher"/>
|
183
|
+
<organization>
|
184
|
+
<name>International Organization for Standardization</name>
|
185
|
+
<abbreviation>ISO</abbreviation>
|
186
|
+
<uri>www.iso.org</uri>
|
187
|
+
</organization>
|
188
|
+
</contributor>
|
189
|
+
<edition>3</edition>
|
190
|
+
<language>en</language>
|
191
|
+
<language>fr</language>
|
192
|
+
<script>Latn</script>
|
193
|
+
<status>
|
194
|
+
<stage>Published</stage>
|
195
|
+
</status>
|
196
|
+
<copyright>
|
197
|
+
<from>2001</from>
|
198
|
+
<owner>
|
199
|
+
<organization>
|
200
|
+
<name>ISO</name>
|
201
|
+
<abbreviation/>
|
202
|
+
</organization>
|
203
|
+
</owner>
|
204
|
+
</copyright>
|
205
|
+
<relation type="obsoletes">
|
206
|
+
<bibitem type="standard">
|
207
|
+
<formattedref format="text/plain">ISO 123:1985</formattedref>
|
208
|
+
</bibitem>
|
209
|
+
</relation>
|
210
|
+
<relation type="updates">
|
211
|
+
<bibitem type="standard">
|
212
|
+
<formattedref format="text/plain">ISO 123:2001</formattedref>
|
213
|
+
</bibitem>
|
214
|
+
</relation>
|
215
|
+
<docidentifier>ISO 123</docidentifier>
|
216
|
+
<docidentifier type='metanorma'>[1]</docidentifier>
|
217
|
+
<title><em>Standard</em></title>
|
218
|
+
</bibitem>
|
219
|
+
</references></bibliography>
|
220
|
+
</standard-document>
|
221
|
+
OUTPUT
|
222
|
+
expect { Asciidoctor.convert(input, *OPTIONS) }.to output(/ERROR: No document identifier retrieved for ISO 123/).to_stderr
|
223
223
|
end
|
224
224
|
|
225
225
|
it "fetches simple ISO reference" do
|
226
226
|
VCR.use_cassette "isobib_get_123_1" do
|
227
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
227
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
228
228
|
#{ISOBIB_BLANK_HDR}
|
229
229
|
[bibliography]
|
230
230
|
== Normative References
|
@@ -232,236 +232,236 @@ RSpec.describe Asciidoctor::Standoc do
|
|
232
232
|
* [[[iso123,ISO 123]]] _Standard_
|
233
233
|
* [[[iso124,(1)ISO 123]]] _Standard_
|
234
234
|
INPUT
|
235
|
-
|
236
|
-
|
235
|
+
#{BLANK_HDR}
|
236
|
+
<sections>
|
237
237
|
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
238
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true"><title>Normative references</title>
|
239
|
+
#{NORM_REF_BOILERPLATE}
|
240
|
+
<bibitem id='iso123' type='standard'>
|
241
|
+
<fetched>#{Date.today}</fetched>
|
242
|
+
<title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
|
243
|
+
<title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
|
244
|
+
<title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</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 (all parts)</docidentifier>
|
249
|
+
<docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
|
250
|
+
<docnumber>123</docnumber>
|
251
|
+
<date type='published'>
|
252
|
+
<on>2001-05</on>
|
253
|
+
</date>
|
254
|
+
<contributor>
|
255
|
+
<role type='publisher'/>
|
256
|
+
<organization>
|
257
|
+
<name>International Organization for Standardization</name>
|
258
|
+
<abbreviation>ISO</abbreviation>
|
259
|
+
<uri>www.iso.org</uri>
|
260
|
+
</organization>
|
261
|
+
</contributor>
|
262
|
+
<edition>3</edition>
|
263
|
+
<language>en</language>
|
264
|
+
<script>Latn</script>
|
265
|
+
<status>
|
266
|
+
<stage>90</stage>
|
267
|
+
<substage>60</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
|
+
<relation type='instance'>
|
283
|
+
<bibitem type='standard'>
|
284
|
+
<fetched>#{Date.today}</fetched>
|
285
|
+
<title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
|
286
|
+
<title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
|
287
|
+
<title type='main' format='text/plain' language='en' script='Latn'>Rubber latex — Sampling</title>
|
288
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
289
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
290
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
291
|
+
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
292
|
+
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.60:ed-3:en</docidentifier>
|
293
|
+
<docnumber>123</docnumber>
|
294
|
+
<date type='published'>
|
295
|
+
<on>2001-05</on>
|
296
|
+
</date>
|
297
|
+
<contributor>
|
298
|
+
<role type='publisher'/>
|
299
|
+
<organization>
|
300
|
+
<name>International Organization for Standardization</name>
|
301
|
+
<abbreviation>ISO</abbreviation>
|
302
|
+
<uri>www.iso.org</uri>
|
303
|
+
</organization>
|
304
|
+
</contributor>
|
305
|
+
<edition>3</edition>
|
306
|
+
<language>en</language>
|
307
|
+
<script>Latn</script>
|
308
|
+
<abstract format='text/plain' language='en' script='Latn'>
|
309
|
+
This International Standard specifies procedures for sampling
|
310
|
+
natural rubber latex concentrate and for sampling syntheticrubber
|
311
|
+
latices and artificial latices. It is also suitable for sampling
|
312
|
+
rubber latex contained in drums, tank cars ortanks. The procedures
|
313
|
+
may also be used for sampling plastics dispersions.
|
314
|
+
</abstract>
|
315
|
+
<status>
|
316
|
+
<stage>90</stage>
|
317
|
+
<substage>60</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
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
353
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
354
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
355
|
+
<docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
|
356
|
+
<docidentifier type='metanorma'>[1]</docidentifier>
|
357
|
+
<docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
|
358
|
+
<docnumber>123</docnumber>
|
359
|
+
<date type='published'>
|
360
|
+
<on>2001-05</on>
|
361
|
+
</date>
|
362
|
+
<contributor>
|
363
|
+
<role type='publisher'/>
|
364
|
+
<organization>
|
365
|
+
<name>International Organization for Standardization</name>
|
366
|
+
<abbreviation>ISO</abbreviation>
|
367
|
+
<uri>www.iso.org</uri>
|
368
|
+
</organization>
|
369
|
+
</contributor>
|
370
|
+
<edition>3</edition>
|
371
|
+
<language>en</language>
|
372
|
+
<script>Latn</script>
|
373
|
+
<status>
|
374
|
+
<stage>90</stage>
|
375
|
+
<substage>60</substage>
|
376
|
+
</status>
|
377
|
+
<copyright>
|
378
|
+
<from>2001</from>
|
379
|
+
<owner>
|
380
|
+
<organization>
|
381
|
+
<name>ISO</name>
|
382
|
+
</organization>
|
383
|
+
</owner>
|
384
|
+
</copyright>
|
385
|
+
<relation type='obsoletes'>
|
386
|
+
<bibitem type='standard'>
|
387
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
388
|
+
</bibitem>
|
389
|
+
</relation>
|
390
|
+
<relation type='instance'>
|
391
|
+
<bibitem type='standard'>
|
392
|
+
<fetched>#{Date.today}</fetched>
|
393
|
+
<title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
|
394
|
+
<title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
|
395
|
+
<title type='main' format='text/plain' language='en' script='Latn'>Rubber latex — Sampling</title>
|
396
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
397
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
398
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
399
|
+
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
400
|
+
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.60:ed-3:en</docidentifier>
|
401
|
+
<docnumber>123</docnumber>
|
402
|
+
<date type='published'>
|
403
|
+
<on>2001-05</on>
|
404
|
+
</date>
|
405
|
+
<contributor>
|
406
|
+
<role type='publisher'/>
|
407
|
+
<organization>
|
408
|
+
<name>International Organization for Standardization</name>
|
409
|
+
<abbreviation>ISO</abbreviation>
|
410
|
+
<uri>www.iso.org</uri>
|
411
|
+
</organization>
|
412
|
+
</contributor>
|
413
|
+
<edition>3</edition>
|
414
|
+
<language>en</language>
|
415
|
+
<script>Latn</script>
|
416
|
+
<abstract format='text/plain' language='en' script='Latn'>
|
417
|
+
This International Standard specifies procedures for sampling
|
418
|
+
natural rubber latex concentrate and for sampling syntheticrubber
|
419
|
+
latices and artificial latices. It is also suitable for sampling
|
420
|
+
rubber latex contained in drums, tank cars ortanks. The procedures
|
421
|
+
may also be used for sampling plastics dispersions.
|
422
|
+
</abstract>
|
423
|
+
<status>
|
424
|
+
<stage>90</stage>
|
425
|
+
<substage>60</substage>
|
426
|
+
</status>
|
427
|
+
<copyright>
|
428
|
+
<from>2001</from>
|
429
|
+
<owner>
|
430
|
+
<organization>
|
431
|
+
<name>ISO</name>
|
432
|
+
</organization>
|
433
|
+
</owner>
|
434
|
+
</copyright>
|
435
|
+
<relation type='obsoletes'>
|
436
|
+
<bibitem type='standard'>
|
437
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
438
|
+
</bibitem>
|
439
|
+
</relation>
|
440
|
+
<place>Geneva</place>
|
441
|
+
</bibitem>
|
442
|
+
</relation>
|
443
|
+
<relation type='instance'>
|
444
|
+
<bibitem type='standard'>
|
445
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
446
|
+
</bibitem>
|
447
|
+
</relation>
|
448
|
+
<relation type='instance'>
|
449
|
+
<bibitem type='standard'>
|
450
|
+
<formattedref format='text/plain'>ISO 123:1974</formattedref>
|
451
|
+
</bibitem>
|
452
|
+
</relation>
|
453
|
+
<place>Geneva</place>
|
454
|
+
</bibitem>
|
455
|
+
</references>
|
456
|
+
</bibliography>
|
457
|
+
</standard-document>
|
458
|
+
OUTPUT
|
459
459
|
end
|
460
460
|
end
|
461
461
|
|
462
462
|
it "fetches simple ISO reference in French" do
|
463
463
|
VCR.use_cassette "isobib_get_123_1_fr" do
|
464
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
464
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
465
465
|
= Document title
|
466
466
|
Author
|
467
467
|
:docfile: test.adoc
|
@@ -476,251 +476,250 @@ RSpec.describe Asciidoctor::Standoc do
|
|
476
476
|
* [[[iso123,ISO 123]]] _Standard_
|
477
477
|
* [[[iso124,(1)ISO 123]]] _Standard_
|
478
478
|
INPUT
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
479
|
+
#{BLANK_HDR.sub(%r{<language>en</language>}, '<language>fr</language>')}
|
480
|
+
<sections>
|
481
|
+
</sections><bibliography>
|
482
|
+
<references id='_' normative='true' obligation='informative'>
|
483
|
+
<title>Références normatives</title>
|
484
|
+
<p id='_'>
|
485
|
+
Les documents suivants cités dans le texte constituent, pour tout ou
|
486
|
+
partie de leur contenu, des exigences du présent document. Pour les
|
487
|
+
références datées, seule l’édition citée s’applique. Pour les références
|
488
|
+
non datées, la dernière édition du document de référence s’applique (y
|
489
|
+
compris les éventuels amendements).
|
490
|
+
</p>
|
491
|
+
<bibitem id='iso123' type='standard'>
|
492
|
+
<fetched>#{Date.today}</fetched>
|
493
|
+
<title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
|
494
|
+
<title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
|
495
|
+
<title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
|
496
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
497
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
498
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
499
|
+
<docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
|
500
|
+
<docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
|
501
|
+
<docnumber>123</docnumber>
|
502
|
+
<date type='published'>
|
503
|
+
<on>2001-05</on>
|
504
|
+
</date>
|
505
|
+
<contributor>
|
506
|
+
<role type='publisher'/>
|
507
|
+
<organization>
|
508
|
+
<name>International Organization for Standardization</name>
|
509
|
+
<abbreviation>ISO</abbreviation>
|
510
|
+
<uri>www.iso.org</uri>
|
511
|
+
</organization>
|
512
|
+
</contributor>
|
513
|
+
<edition>3</edition>
|
514
|
+
<language>en</language>
|
515
|
+
<language>fr</language>
|
516
|
+
<script>Latn</script>
|
517
|
+
<status>
|
518
|
+
<stage>90</stage>
|
519
|
+
<substage>60</substage>
|
520
|
+
</status>
|
521
|
+
<copyright>
|
522
|
+
<from>2001</from>
|
523
|
+
<owner>
|
524
|
+
<organization>
|
525
|
+
<name>ISO</name>
|
526
|
+
</organization>
|
527
|
+
</owner>
|
528
|
+
</copyright>
|
529
|
+
<relation type='obsoletes'>
|
530
|
+
<bibitem type='standard'>
|
531
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
532
|
+
</bibitem>
|
533
|
+
</relation>
|
534
|
+
<relation type='instance'>
|
535
|
+
<bibitem type='standard'>
|
536
|
+
<fetched>#{Date.today}</fetched>
|
537
|
+
<title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
|
538
|
+
<title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
|
539
|
+
<title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Échantillonnage</title>
|
540
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
541
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
542
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
543
|
+
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
544
|
+
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.60:ed-3:fr</docidentifier>
|
545
|
+
<docnumber>123</docnumber>
|
546
|
+
<date type='published'>
|
547
|
+
<on>2001-05</on>
|
548
|
+
</date>
|
549
|
+
<contributor>
|
550
|
+
<role type='publisher'/>
|
551
|
+
<organization>
|
552
|
+
<name>International Organization for Standardization</name>
|
553
|
+
<abbreviation>ISO</abbreviation>
|
554
|
+
<uri>www.iso.org</uri>
|
555
|
+
</organization>
|
556
|
+
</contributor>
|
557
|
+
<edition>3</edition>
|
558
|
+
<language>en</language>
|
559
|
+
<language>fr</language>
|
560
|
+
<script>Latn</script>
|
561
|
+
<abstract format='text/plain' language='fr' script='Latn'>
|
562
|
+
La présente Norme internationale spécifie des méthodes
|
563
|
+
d’échantillonnage pour des concentrés de latex de
|
564
|
+
caoutchoucnaturel et pour échantillonner des latex de caoutchouc
|
565
|
+
synthétique et des latex artificiels. Elle s’applique égalementà
|
566
|
+
l’échantillonnage de latex de caoutchouc contenus dans des fûts,
|
567
|
+
citernes routières ou de stockage. Lemode opératoire peut aussi
|
568
|
+
être utilisé pour l’échantillonnage de dispersions de plastiques.
|
569
|
+
</abstract>
|
570
|
+
<status>
|
571
|
+
<stage>90</stage>
|
572
|
+
<substage>60</substage>
|
573
|
+
</status>
|
574
|
+
<copyright>
|
575
|
+
<from>2001</from>
|
576
|
+
<owner>
|
577
|
+
<organization>
|
578
|
+
<name>ISO</name>
|
579
|
+
</organization>
|
580
|
+
</owner>
|
581
|
+
</copyright>
|
582
|
+
<relation type='obsoletes'>
|
583
|
+
<bibitem type='standard'>
|
584
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
585
|
+
</bibitem>
|
586
|
+
</relation>
|
587
|
+
<place>Geneva</place>
|
588
|
+
</bibitem>
|
589
|
+
</relation>
|
590
|
+
<relation type='instance'>
|
591
|
+
<bibitem type='standard'>
|
592
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
593
|
+
</bibitem>
|
594
|
+
</relation>
|
595
|
+
<relation type='instance'>
|
596
|
+
<bibitem type='standard'>
|
597
|
+
<formattedref format='text/plain'>ISO 123:1974</formattedref>
|
598
|
+
</bibitem>
|
599
|
+
</relation>
|
600
|
+
<place>Geneva</place>
|
586
601
|
</bibitem>
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
</
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
<
|
602
|
+
<bibitem id='iso124' type='standard'>
|
603
|
+
<fetched>#{Date.today}</fetched>
|
604
|
+
<title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
|
605
|
+
<title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
|
606
|
+
<title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
|
607
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
608
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
609
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
610
|
+
<docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
|
611
|
+
<docidentifier type='metanorma'>[1]</docidentifier>
|
612
|
+
<docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
|
613
|
+
<docnumber>123</docnumber>
|
614
|
+
<date type='published'>
|
615
|
+
<on>2001-05</on>
|
616
|
+
</date>
|
617
|
+
<contributor>
|
618
|
+
<role type='publisher'/>
|
619
|
+
<organization>
|
620
|
+
<name>International Organization for Standardization</name>
|
621
|
+
<abbreviation>ISO</abbreviation>
|
622
|
+
<uri>www.iso.org</uri>
|
623
|
+
</organization>
|
624
|
+
</contributor>
|
625
|
+
<edition>3</edition>
|
626
|
+
<language>en</language>
|
627
|
+
<language>fr</language>
|
628
|
+
<script>Latn</script>
|
629
|
+
<status>
|
630
|
+
<stage>90</stage>
|
631
|
+
<substage>60</substage>
|
632
|
+
</status>
|
633
|
+
<copyright>
|
634
|
+
<from>2001</from>
|
635
|
+
<owner>
|
636
|
+
<organization>
|
637
|
+
<name>ISO</name>
|
638
|
+
</organization>
|
639
|
+
</owner>
|
640
|
+
</copyright>
|
641
|
+
<relation type='obsoletes'>
|
642
|
+
<bibitem type='standard'>
|
643
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
644
|
+
</bibitem>
|
645
|
+
</relation>
|
646
|
+
<relation type='instance'>
|
647
|
+
<bibitem type='standard'>
|
648
|
+
<fetched>#{Date.today}</fetched>
|
649
|
+
<title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
|
650
|
+
<title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
|
651
|
+
<title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Échantillonnage</title>
|
652
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
653
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
654
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
655
|
+
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
656
|
+
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.60:ed-3:fr</docidentifier>
|
657
|
+
<docnumber>123</docnumber>
|
658
|
+
<date type='published'>
|
659
|
+
<on>2001-05</on>
|
660
|
+
</date>
|
661
|
+
<contributor>
|
662
|
+
<role type='publisher'/>
|
663
|
+
<organization>
|
664
|
+
<name>International Organization for Standardization</name>
|
665
|
+
<abbreviation>ISO</abbreviation>
|
666
|
+
<uri>www.iso.org</uri>
|
667
|
+
</organization>
|
668
|
+
</contributor>
|
669
|
+
<edition>3</edition>
|
670
|
+
<language>en</language>
|
671
|
+
<language>fr</language>
|
672
|
+
<script>Latn</script>
|
673
|
+
<abstract format='text/plain' language='fr' script='Latn'>
|
674
|
+
La présente Norme internationale spécifie des méthodes
|
675
|
+
d’échantillonnage pour des concentrés de latex de
|
676
|
+
caoutchoucnaturel et pour échantillonner des latex de caoutchouc
|
677
|
+
synthétique et des latex artificiels. Elle s’applique égalementà
|
678
|
+
l’échantillonnage de latex de caoutchouc contenus dans des fûts,
|
679
|
+
citernes routières ou de stockage. Lemode opératoire peut aussi
|
680
|
+
être utilisé pour l’échantillonnage de dispersions de plastiques.
|
681
|
+
</abstract>
|
682
|
+
<status>
|
683
|
+
<stage>90</stage>
|
684
|
+
<substage>60</substage>
|
685
|
+
</status>
|
686
|
+
<copyright>
|
687
|
+
<from>2001</from>
|
688
|
+
<owner>
|
689
|
+
<organization>
|
690
|
+
<name>ISO</name>
|
691
|
+
</organization>
|
692
|
+
</owner>
|
693
|
+
</copyright>
|
694
|
+
<relation type='obsoletes'>
|
695
|
+
<bibitem type='standard'>
|
696
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
697
|
+
</bibitem>
|
698
|
+
</relation>
|
699
|
+
<place>Geneva</place>
|
700
|
+
</bibitem>
|
701
|
+
</relation>
|
702
|
+
<relation type='instance'>
|
703
|
+
<bibitem type='standard'>
|
704
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
705
|
+
</bibitem>
|
706
|
+
</relation>
|
707
|
+
<relation type='instance'>
|
708
|
+
<bibitem type='standard'>
|
709
|
+
<formattedref format='text/plain'>ISO 123:1974</formattedref>
|
710
|
+
</bibitem>
|
711
|
+
</relation>
|
712
|
+
<place>Geneva</place>
|
698
713
|
</bibitem>
|
699
|
-
</
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
<relation type='instance'>
|
704
|
-
<bibitem type='standard'>
|
705
|
-
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
706
|
-
</bibitem>
|
707
|
-
</relation>
|
708
|
-
<relation type='instance'>
|
709
|
-
<bibitem type='standard'>
|
710
|
-
<formattedref format='text/plain'>ISO 123:1974</formattedref>
|
711
|
-
</bibitem>
|
712
|
-
</relation>
|
713
|
-
<place>Geneva</place>
|
714
|
-
</bibitem>
|
715
|
-
</references>
|
716
|
-
</bibliography>
|
717
|
-
</standard-document>
|
718
|
-
OUTPUT
|
714
|
+
</references>
|
715
|
+
</bibliography>
|
716
|
+
</standard-document>
|
717
|
+
OUTPUT
|
719
718
|
end
|
720
719
|
end
|
721
720
|
|
722
721
|
it "processes simple IEC reference" do
|
723
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
722
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
724
723
|
#{ASCIIDOC_BLANK_HDR}
|
725
724
|
[bibliography]
|
726
725
|
== Normative References
|
@@ -728,37 +727,37 @@ compris les éventuels amendements).
|
|
728
727
|
* [[[iso123,IEC 123]]] _Standard_
|
729
728
|
* [[[iso124,(1)IEC 123]]] _Standard_
|
730
729
|
INPUT
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
</bibitem>
|
759
|
-
|
760
|
-
|
761
|
-
|
730
|
+
#{BLANK_HDR}
|
731
|
+
<sections>
|
732
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true">
|
733
|
+
<title>Normative references</title>
|
734
|
+
#{NORM_REF_BOILERPLATE}
|
735
|
+
<bibitem id="iso123" type="standard">
|
736
|
+
<title format="text/plain">Standard</title>
|
737
|
+
<docidentifier>IEC 123</docidentifier>
|
738
|
+
<docnumber>123</docnumber>
|
739
|
+
<contributor>
|
740
|
+
<role type="publisher"/>
|
741
|
+
<organization>
|
742
|
+
<name>IEC</name>
|
743
|
+
</organization>
|
744
|
+
</contributor>
|
745
|
+
</bibitem>
|
746
|
+
<bibitem id='iso124' type='standard'>
|
747
|
+
<title format='text/plain'>Standard</title>
|
748
|
+
<docidentifier type='metanorma'>[1]</docidentifier>
|
749
|
+
<docidentifier>IEC 123</docidentifier>
|
750
|
+
<docnumber>123</docnumber>
|
751
|
+
<contributor>
|
752
|
+
<role type='publisher'/>
|
753
|
+
<organization>
|
754
|
+
<name>IEC</name>
|
755
|
+
</organization>
|
756
|
+
</contributor>
|
757
|
+
</bibitem>
|
758
|
+
</references>
|
759
|
+
</bibliography>
|
760
|
+
</standard-document>
|
762
761
|
OUTPUT
|
763
762
|
end
|
764
763
|
|
@@ -766,7 +765,7 @@ compris les éventuels amendements).
|
|
766
765
|
# mock_isobib_get_iec12382
|
767
766
|
# mock_isobib_get_124
|
768
767
|
VCR.use_cassette "dated_iso_ref_joint_iso_iec" do
|
769
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
768
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
770
769
|
#{ISOBIB_BLANK_HDR}
|
771
770
|
[bibliography]
|
772
771
|
== Normative References
|
@@ -975,9 +974,9 @@ compris les éventuels amendements).
|
|
975
974
|
end
|
976
975
|
end
|
977
976
|
|
978
|
-
|
977
|
+
it "declines to fetch individual references" do
|
979
978
|
VCR.use_cassette "dated_iso_ref_joint_iso_iec" do
|
980
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
979
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
981
980
|
#{ISOBIB_BLANK_HDR}
|
982
981
|
[bibliography]
|
983
982
|
== Normative References
|
@@ -1044,14 +1043,14 @@ compris les éventuels amendements).
|
|
1044
1043
|
<place>Geneva</place>
|
1045
1044
|
</bibitem>
|
1046
1045
|
</references></bibliography></standard-document>
|
1047
|
-
OUTPUT
|
1048
|
-
end
|
1046
|
+
OUTPUT
|
1049
1047
|
end
|
1048
|
+
end
|
1050
1049
|
|
1051
1050
|
it "processes draft ISO reference" do
|
1052
|
-
#stub_fetch_ref no_year: true, note: "The standard is in press"
|
1051
|
+
# stub_fetch_ref no_year: true, note: "The standard is in press"
|
1053
1052
|
|
1054
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
1053
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1055
1054
|
#{ASCIIDOC_BLANK_HDR}
|
1056
1055
|
[bibliography]
|
1057
1056
|
== Normative References
|
@@ -1061,80 +1060,80 @@ OUTPUT
|
|
1061
1060
|
* [[[iso125,ISO 125:–]]], footnote:[The standard is in press] _Standard_
|
1062
1061
|
* [[[iso126,(1)ISO 123:--]]] _Standard_
|
1063
1062
|
INPUT
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
</bibitem>
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1063
|
+
#{BLANK_HDR}
|
1064
|
+
<sections>
|
1065
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true">
|
1066
|
+
<title>Normative references</title>
|
1067
|
+
#{NORM_REF_BOILERPLATE}
|
1068
|
+
<bibitem id="iso123" type="standard">
|
1069
|
+
<title format="text/plain">Standard</title>
|
1070
|
+
<docidentifier>ISO 123:—</docidentifier>
|
1071
|
+
<docnumber>123</docnumber>
|
1072
|
+
<date type="published">
|
1073
|
+
<on>–</on>
|
1074
|
+
</date>
|
1075
|
+
<contributor>
|
1076
|
+
<role type="publisher"/>
|
1077
|
+
<organization>
|
1078
|
+
<name>ISO</name>
|
1079
|
+
</organization>
|
1080
|
+
</contributor>
|
1081
|
+
</bibitem>
|
1082
|
+
<bibitem id="iso124" type="standard">
|
1083
|
+
<title format="text/plain">Standard</title>
|
1084
|
+
<docidentifier>ISO 124:—</docidentifier>
|
1085
|
+
<docnumber>124</docnumber>
|
1086
|
+
<date type="published">
|
1087
|
+
<on>–</on>
|
1088
|
+
</date>
|
1089
|
+
<contributor>
|
1090
|
+
<role type="publisher"/>
|
1091
|
+
<organization>
|
1092
|
+
<name>ISO</name>
|
1093
|
+
</organization>
|
1094
|
+
</contributor>
|
1095
|
+
<note format="text/plain" type="Unpublished-Status">The standard is in press</note>
|
1096
|
+
</bibitem>
|
1097
|
+
<bibitem id="iso125" type="standard">
|
1098
|
+
<title format="text/plain">Standard</title>
|
1099
|
+
<docidentifier>ISO 125:—</docidentifier>
|
1100
|
+
<docnumber>125</docnumber>
|
1101
|
+
<date type="published">
|
1102
|
+
<on>–</on>
|
1103
|
+
</date>
|
1104
|
+
<contributor>
|
1105
|
+
<role type="publisher"/>
|
1106
|
+
<organization>
|
1107
|
+
<name>ISO</name>
|
1108
|
+
</organization>
|
1109
|
+
</contributor>
|
1110
|
+
<note format="text/plain" type="Unpublished-Status">The standard is in press</note>
|
1111
|
+
</bibitem>
|
1112
|
+
<bibitem id='iso126' type='standard'>
|
1113
|
+
<title format='text/plain'>Standard</title>
|
1114
|
+
<docidentifier type='metanorma'>[1]</docidentifier>
|
1115
|
+
<docidentifier>ISO 123:—</docidentifier>
|
1116
|
+
<docnumber>123</docnumber>
|
1117
|
+
<date type='published'>
|
1118
|
+
<on>–</on>
|
1119
|
+
</date>
|
1120
|
+
<contributor>
|
1121
|
+
<role type='publisher'/>
|
1122
|
+
<organization>
|
1123
|
+
<name>ISO</name>
|
1124
|
+
</organization>
|
1125
|
+
</contributor>
|
1126
|
+
</bibitem>
|
1127
|
+
</references>
|
1128
|
+
</bibliography>
|
1129
|
+
</standard-document>
|
1131
1130
|
OUTPUT
|
1132
1131
|
end
|
1133
1132
|
|
1134
1133
|
it "processes all-parts ISO reference" do
|
1135
|
-
#stub_fetch_ref(all_parts: true)
|
1134
|
+
# stub_fetch_ref(all_parts: true)
|
1136
1135
|
|
1137
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
1136
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1138
1137
|
#{ASCIIDOC_BLANK_HDR}
|
1139
1138
|
[bibliography]
|
1140
1139
|
== Normative References
|
@@ -1142,56 +1141,56 @@ OUTPUT
|
|
1142
1141
|
* [[[iso123,ISO 123:1066 (all parts)]]] _Standard_
|
1143
1142
|
* [[[iso124,(1)ISO 123:1066 (all parts)]]] _Standard_
|
1144
1143
|
INPUT
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1144
|
+
#{BLANK_HDR}
|
1145
|
+
<sections>
|
1146
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true">
|
1147
|
+
<title>Normative references</title>
|
1148
|
+
#{NORM_REF_BOILERPLATE}
|
1149
|
+
<bibitem id="iso123" type="standard">
|
1150
|
+
<title format="text/plain">Standard</title>
|
1151
|
+
<docidentifier>ISO 123:1066 (all parts)</docidentifier>
|
1152
|
+
<docnumber>123</docnumber>
|
1153
|
+
<date type="published">
|
1154
|
+
<on>1066</on>
|
1155
|
+
</date>
|
1156
|
+
<contributor>
|
1157
|
+
<role type="publisher"/>
|
1158
|
+
<organization>
|
1159
|
+
<name>ISO</name>
|
1160
|
+
</organization>
|
1161
|
+
</contributor>
|
1162
|
+
<extent type="part">
|
1163
|
+
<referenceFrom>all</referenceFrom>
|
1164
|
+
</extent>
|
1165
|
+
</bibitem>
|
1166
|
+
<bibitem id='iso124' type='standard'>
|
1167
|
+
<title format='text/plain'>Standard</title>
|
1168
|
+
<docidentifier type='metanorma'>[1]</docidentifier>
|
1169
|
+
<docidentifier>ISO 123:1066 (all parts)</docidentifier>
|
1170
|
+
<docnumber>123</docnumber>
|
1171
|
+
<date type='published'>
|
1172
|
+
<on>1066</on>
|
1173
|
+
</date>
|
1174
|
+
<contributor>
|
1175
|
+
<role type='publisher'/>
|
1176
|
+
<organization>
|
1177
|
+
<name>ISO</name>
|
1178
|
+
</organization>
|
1179
|
+
</contributor>
|
1180
|
+
<extent type='part'>
|
1181
|
+
<referenceFrom>all</referenceFrom>
|
1165
1182
|
</extent>
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
<docidentifier>ISO 123:1066 (all parts)</docidentifier>
|
1171
|
-
<docnumber>123</docnumber>
|
1172
|
-
<date type='published'>
|
1173
|
-
<on>1066</on>
|
1174
|
-
</date>
|
1175
|
-
<contributor>
|
1176
|
-
<role type='publisher'/>
|
1177
|
-
<organization>
|
1178
|
-
<name>ISO</name>
|
1179
|
-
</organization>
|
1180
|
-
</contributor>
|
1181
|
-
<extent type='part'>
|
1182
|
-
<referenceFrom>all</referenceFrom>
|
1183
|
-
</extent>
|
1184
|
-
</bibitem>
|
1185
|
-
</references>
|
1186
|
-
</bibliography>
|
1187
|
-
</standard-document>
|
1183
|
+
</bibitem>
|
1184
|
+
</references>
|
1185
|
+
</bibliography>
|
1186
|
+
</standard-document>
|
1188
1187
|
OUTPUT
|
1189
1188
|
end
|
1190
1189
|
|
1191
1190
|
it "processes RFC reference in Normative References" do
|
1192
1191
|
# mock_rfcbib_get_rfc8341
|
1193
1192
|
VCR.use_cassette "rfcbib_get_rfc8341" do
|
1194
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
1193
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1195
1194
|
#{ISOBIB_BLANK_HDR}
|
1196
1195
|
[bibliography]
|
1197
1196
|
== Normative References
|
@@ -1203,167 +1202,167 @@ OUTPUT
|
|
1203
1202
|
|
1204
1203
|
<<iso123>>
|
1205
1204
|
INPUT
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
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
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1205
|
+
#{BLANK_HDR}
|
1206
|
+
<sections>
|
1207
|
+
<clause id="_" inline-header="false" obligation="normative">
|
1208
|
+
<title>Clause 4</title>
|
1209
|
+
<p id="_">
|
1210
|
+
<eref type="inline" bibitemid="iso123" citeas="IETF RFC 8341"/>
|
1211
|
+
</p>
|
1212
|
+
</clause>
|
1213
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true">
|
1214
|
+
<title>Normative references</title>
|
1215
|
+
#{NORM_REF_BOILERPLATE}
|
1216
|
+
<bibitem id='iso123' type='standard'>
|
1217
|
+
<fetched>#{Date.today}</fetched>
|
1218
|
+
<title format='text/plain' language='en' script='Latn'>Network Configuration Access Control Model</title>
|
1219
|
+
<uri type='xml'>
|
1220
|
+
https://raw.githubusercontent.com/relaton/relaton-data-ietf/master/data/reference.RFC.8341.xml
|
1221
|
+
</uri>
|
1222
|
+
<uri type='src'>https://www.rfc-editor.org/info/rfc8341</uri>
|
1223
|
+
<docidentifier type='IETF'>RFC 8341</docidentifier>
|
1224
|
+
<docidentifier type='rfc-anchor'>RFC8341</docidentifier>
|
1225
|
+
<docidentifier type='DOI'>10.17487/RFC8341</docidentifier>
|
1226
|
+
<date type='published'>
|
1227
|
+
<on>2018-03</on>
|
1228
|
+
</date>
|
1229
|
+
<contributor>
|
1230
|
+
<role type='author'/>
|
1231
|
+
<person>
|
1232
|
+
<name>
|
1233
|
+
<completename language='en'>A. Bierman</completename>
|
1234
|
+
</name>
|
1235
|
+
<affiliation>
|
1236
|
+
<organization>
|
1237
|
+
<name>Internet Engineering Task Force</name>
|
1238
|
+
<abbreviation>IETF</abbreviation>
|
1239
|
+
</organization>
|
1240
|
+
</affiliation>
|
1241
|
+
</person>
|
1242
|
+
</contributor>
|
1243
|
+
<contributor>
|
1244
|
+
<role type='author'/>
|
1245
|
+
<person>
|
1246
|
+
<name>
|
1247
|
+
<completename language='en'>M. Bjorklund</completename>
|
1248
|
+
</name>
|
1249
|
+
<affiliation>
|
1250
|
+
<organization>
|
1251
|
+
<name>Internet Engineering Task Force</name>
|
1252
|
+
<abbreviation>IETF</abbreviation>
|
1253
|
+
</organization>
|
1254
|
+
</affiliation>
|
1255
|
+
</person>
|
1256
|
+
</contributor>
|
1257
|
+
<contributor>
|
1258
|
+
<role type='publisher'/>
|
1259
|
+
<organization>
|
1260
|
+
<name>Internet Engineering Task Force</name>
|
1261
|
+
<abbreviation>IETF</abbreviation>
|
1262
|
+
</organization>
|
1263
|
+
</contributor>
|
1264
|
+
<language>en</language>
|
1265
|
+
<script>Latn</script>
|
1266
|
+
<abstract format='text/plain' language='en' script='Latn'>
|
1267
|
+
The standardization of network configuration interfaces for use with
|
1268
|
+
the Network Configuration Protocol (NETCONF) or the RESTCONF protocol
|
1269
|
+
requires a structured and secure operating environment that promotes
|
1270
|
+
human usability and multi-vendor interoperability. There is a need for
|
1271
|
+
standard mechanisms to restrict NETCONF or RESTCONF protocol access
|
1272
|
+
for particular users to a preconfigured subset of all available
|
1273
|
+
NETCONF or RESTCONF protocol operations and content. This document
|
1274
|
+
defines such an access control model.This document obsoletes RFC 6536.
|
1275
|
+
</abstract>
|
1276
|
+
<series type='main'>
|
1277
|
+
<title format='text/plain' language='en' script='Latn'>STD</title>
|
1278
|
+
<number>91</number>
|
1279
|
+
</series>
|
1280
|
+
<series type='main'>
|
1281
|
+
<title format='text/plain' language='en' script='Latn'>RFC</title>
|
1282
|
+
<number>8341</number>
|
1283
|
+
</series>
|
1284
|
+
<place>Fremont, CA</place>
|
1285
|
+
</bibitem>
|
1286
|
+
<bibitem id='iso124' type='standard'>
|
1287
|
+
<fetched>#{Date.today}</fetched>
|
1288
|
+
<title format='text/plain' language='en' script='Latn'>Network Configuration Access Control Model</title>
|
1289
|
+
<uri type='xml'>
|
1290
|
+
https://raw.githubusercontent.com/relaton/relaton-data-ietf/master/data/reference.RFC.8341.xml
|
1291
|
+
</uri>
|
1292
|
+
<uri type='src'>https://www.rfc-editor.org/info/rfc8341</uri>
|
1293
|
+
<docidentifier type='IETF'>RFC 8341</docidentifier>
|
1294
|
+
<docidentifier type='metanorma'>[1]</docidentifier>
|
1295
|
+
<docidentifier type='rfc-anchor'>RFC8341</docidentifier>
|
1296
|
+
<docidentifier type='DOI'>10.17487/RFC8341</docidentifier>
|
1297
|
+
<date type='published'>
|
1298
|
+
<on>2018-03</on>
|
1299
|
+
</date>
|
1300
|
+
<contributor>
|
1301
|
+
<role type='author'/>
|
1302
|
+
<person>
|
1303
|
+
<name>
|
1304
|
+
<completename language='en'>A. Bierman</completename>
|
1305
|
+
</name>
|
1306
|
+
<affiliation>
|
1307
|
+
<organization>
|
1308
|
+
<name>Internet Engineering Task Force</name>
|
1309
|
+
<abbreviation>IETF</abbreviation>
|
1310
|
+
</organization>
|
1311
|
+
</affiliation>
|
1312
|
+
</person>
|
1313
|
+
</contributor>
|
1314
|
+
<contributor>
|
1315
|
+
<role type='author'/>
|
1316
|
+
<person>
|
1317
|
+
<name>
|
1318
|
+
<completename language='en'>M. Bjorklund</completename>
|
1319
|
+
</name>
|
1320
|
+
<affiliation>
|
1321
|
+
<organization>
|
1322
|
+
<name>Internet Engineering Task Force</name>
|
1323
|
+
<abbreviation>IETF</abbreviation>
|
1324
|
+
</organization>
|
1325
|
+
</affiliation>
|
1326
|
+
</person>
|
1327
|
+
</contributor>
|
1328
|
+
<contributor>
|
1329
|
+
<role type='publisher'/>
|
1330
|
+
<organization>
|
1331
|
+
<name>Internet Engineering Task Force</name>
|
1332
|
+
<abbreviation>IETF</abbreviation>
|
1333
|
+
</organization>
|
1334
|
+
</contributor>
|
1335
|
+
<language>en</language>
|
1336
|
+
<script>Latn</script>
|
1337
|
+
<abstract format='text/plain' language='en' script='Latn'>
|
1338
|
+
The standardization of network configuration interfaces for use with
|
1339
|
+
the Network Configuration Protocol (NETCONF) or the RESTCONF protocol
|
1340
|
+
requires a structured and secure operating environment that promotes
|
1341
|
+
human usability and multi-vendor interoperability. There is a need for
|
1342
|
+
standard mechanisms to restrict NETCONF or RESTCONF protocol access
|
1343
|
+
for particular users to a preconfigured subset of all available
|
1344
|
+
NETCONF or RESTCONF protocol operations and content. This document
|
1345
|
+
defines such an access control model.This document obsoletes RFC 6536.
|
1346
|
+
</abstract>
|
1347
|
+
<series type='main'>
|
1348
|
+
<title format='text/plain' language='en' script='Latn'>STD</title>
|
1349
|
+
<number>91</number>
|
1350
|
+
</series>
|
1351
|
+
<series type='main'>
|
1352
|
+
<title format='text/plain' language='en' script='Latn'>RFC</title>
|
1353
|
+
<number>8341</number>
|
1354
|
+
</series>
|
1355
|
+
<place>Fremont, CA</place>
|
1356
|
+
</bibitem>
|
1357
|
+
</references>
|
1358
|
+
</bibliography>
|
1359
|
+
</standard-document>
|
1361
1360
|
OUTPUT
|
1362
1361
|
end
|
1363
1362
|
end
|
1364
1363
|
|
1365
1364
|
it "processes non-ISO reference in Normative References" do
|
1366
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
1365
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1367
1366
|
#{ASCIIDOC_BLANK_HDR}
|
1368
1367
|
[bibliography]
|
1369
1368
|
== Normative References
|
@@ -1371,35 +1370,34 @@ OUTPUT
|
|
1371
1370
|
* [[[iso123,XYZ 123:1066 (all parts)]]] _Standard_
|
1372
1371
|
* [[[iso124,(1)XYZ 123:1066 (all parts)]]] _Standard_
|
1373
1372
|
INPUT
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
</
|
1395
|
-
|
1396
|
-
|
1397
|
-
</standard-document>
|
1373
|
+
#{BLANK_HDR}
|
1374
|
+
<sections>
|
1375
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true">
|
1376
|
+
<title>Normative references</title>
|
1377
|
+
#{NORM_REF_BOILERPLATE}
|
1378
|
+
<bibitem id="iso123">
|
1379
|
+
<formattedref format="application/x-isodoc+xml">
|
1380
|
+
<em>Standard</em>
|
1381
|
+
</formattedref>
|
1382
|
+
<docidentifier>XYZ 123:1066 (all parts)</docidentifier>
|
1383
|
+
<docnumber>123:1066 (all parts)</docnumber>
|
1384
|
+
</bibitem>
|
1385
|
+
<bibitem id='iso124'>
|
1386
|
+
<formattedref format='application/x-isodoc+xml'>
|
1387
|
+
<em>Standard</em>
|
1388
|
+
</formattedref>
|
1389
|
+
<docidentifier type='metanorma'>[1]</docidentifier>
|
1390
|
+
<docidentifier>XYZ 123:1066 (all parts)</docidentifier>
|
1391
|
+
<docnumber>123:1066 (all parts)</docnumber>
|
1392
|
+
</bibitem>
|
1393
|
+
</references>
|
1394
|
+
</bibliography>
|
1395
|
+
</standard-document>
|
1398
1396
|
OUTPUT
|
1399
1397
|
end
|
1400
1398
|
|
1401
1399
|
it "processes non-ISO reference in Bibliography" do
|
1402
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
1400
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1403
1401
|
#{ASCIIDOC_BLANK_HDR}
|
1404
1402
|
[bibliography]
|
1405
1403
|
== Bibliography
|
@@ -1410,43 +1408,42 @@ OUTPUT
|
|
1410
1408
|
* [[[iso126,(A1)]]] _Standard_
|
1411
1409
|
* [[[iso127,(4)XYZ 123:1066 (all parts)]]] _Standard_
|
1412
1410
|
INPUT
|
1413
|
-
|
1414
|
-
|
1415
|
-
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
<
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
</
|
1447
|
-
|
1448
|
-
|
1449
|
-
</standard-document>
|
1411
|
+
#{BLANK_HDR}
|
1412
|
+
<sections>
|
1413
|
+
</sections>
|
1414
|
+
<bibliography><references id="_" obligation="informative" normative="false">
|
1415
|
+
<title>Bibliography</title><bibitem id="iso123">
|
1416
|
+
<formattedref format="application/x-isodoc+xml">
|
1417
|
+
<em>Standard</em>
|
1418
|
+
</formattedref>
|
1419
|
+
<docidentifier type="metanorma">[1]</docidentifier>
|
1420
|
+
</bibitem><bibitem id="iso124">
|
1421
|
+
<formattedref format="application/x-isodoc+xml">
|
1422
|
+
<em>Standard</em>
|
1423
|
+
</formattedref>
|
1424
|
+
<docidentifier type="metanorma">[B]</docidentifier>
|
1425
|
+
</bibitem><bibitem id="iso125">
|
1426
|
+
<formattedref format="application/x-isodoc+xml">
|
1427
|
+
<em>Standard</em>
|
1428
|
+
</formattedref>
|
1429
|
+
<docidentifier type="metanorma">[3]</docidentifier>
|
1430
|
+
</bibitem><bibitem id="iso126">
|
1431
|
+
<formattedref format="application/x-isodoc+xml">
|
1432
|
+
<em>Standard</em>
|
1433
|
+
</formattedref>
|
1434
|
+
<docidentifier type="metanorma">[A1]</docidentifier>
|
1435
|
+
</bibitem>
|
1436
|
+
<bibitem id='iso127'>
|
1437
|
+
<formattedref format='application/x-isodoc+xml'>
|
1438
|
+
<em>Standard</em>
|
1439
|
+
</formattedref>
|
1440
|
+
<docidentifier type='metanorma'>[5]</docidentifier>
|
1441
|
+
<docidentifier>XYZ 123:1066 (all parts)</docidentifier>
|
1442
|
+
<docnumber>123:1066 (all parts)</docnumber>
|
1443
|
+
</bibitem>
|
1444
|
+
</references>
|
1445
|
+
</bibliography>
|
1446
|
+
</standard-document>
|
1450
1447
|
OUTPUT
|
1451
1448
|
end
|
1452
1449
|
|
@@ -1454,7 +1451,7 @@ OUTPUT
|
|
1454
1451
|
expect(RelatonIso::IsoBibliography).to receive(:search).with("ISO 123") do
|
1455
1452
|
raise RelatonBib::RequestError.new "getaddrinfo"
|
1456
1453
|
end.at_least :once
|
1457
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
1454
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1458
1455
|
#{ISOBIB_BLANK_HDR}
|
1459
1456
|
[bibliography]
|
1460
1457
|
== Normative References
|
@@ -1462,55 +1459,54 @@ OUTPUT
|
|
1462
1459
|
* [[[iso123,ISO 123]]] _Standard_
|
1463
1460
|
* [[[iso124,(1)ISO 123]]] _Standard_
|
1464
1461
|
INPUT
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
<
|
1487
|
-
|
1462
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
1463
|
+
<standard-document xmlns="https://www.metanorma.org/ns/standoc" type="semantic" version="#{Metanorma::Standoc::VERSION}">
|
1464
|
+
<bibdata type="standard">
|
1465
|
+
<title language="en" format="text/plain">Document title</title>
|
1466
|
+
<language>en</language>
|
1467
|
+
<script>Latn</script>
|
1468
|
+
<status><stage>published</stage></status>
|
1469
|
+
<copyright>
|
1470
|
+
<from>#{Date.today.year}</from>
|
1471
|
+
</copyright>
|
1472
|
+
<ext>
|
1473
|
+
<doctype>article</doctype>
|
1474
|
+
</ext>
|
1475
|
+
</bibdata>
|
1476
|
+
<sections>
|
1477
|
+
</sections><bibliography><references id="_" obligation="informative" normative="true">
|
1478
|
+
<title>Normative references</title>
|
1479
|
+
#{NORM_REF_BOILERPLATE}
|
1480
|
+
<bibitem id="iso123" type="standard">
|
1481
|
+
<title format="text/plain">Standard</title>
|
1482
|
+
<docidentifier type="ISO">ISO 123</docidentifier>
|
1483
|
+
<docnumber>123</docnumber>
|
1484
|
+
<contributor>
|
1485
|
+
<role type="publisher"/>
|
1486
|
+
<organization>
|
1487
|
+
<name>ISO</name>
|
1488
|
+
</organization>
|
1489
|
+
</contributor>
|
1490
|
+
</bibitem>
|
1491
|
+
<bibitem id='iso124' type='standard'>
|
1492
|
+
<title format='text/plain'>Standard</title>
|
1493
|
+
<docidentifier type='metanorma'>[1]</docidentifier>
|
1494
|
+
<docidentifier type='ISO'>ISO 123</docidentifier>
|
1495
|
+
<docnumber>123</docnumber>
|
1488
1496
|
<contributor>
|
1489
|
-
<role type=
|
1497
|
+
<role type='publisher'/>
|
1490
1498
|
<organization>
|
1491
1499
|
<name>ISO</name>
|
1492
1500
|
</organization>
|
1493
1501
|
</contributor>
|
1494
1502
|
</bibitem>
|
1495
|
-
|
1496
|
-
|
1497
|
-
<docidentifier type='metanorma'>[1]</docidentifier>
|
1498
|
-
<docidentifier type='ISO'>ISO 123</docidentifier>
|
1499
|
-
<docnumber>123</docnumber>
|
1500
|
-
<contributor>
|
1501
|
-
<role type='publisher'/>
|
1502
|
-
<organization>
|
1503
|
-
<name>ISO</name>
|
1504
|
-
</organization>
|
1505
|
-
</contributor>
|
1506
|
-
</bibitem>
|
1507
|
-
</references></bibliography>
|
1508
|
-
</standard-document>
|
1503
|
+
</references></bibliography>
|
1504
|
+
</standard-document>
|
1509
1505
|
OUTPUT
|
1510
1506
|
end
|
1511
1507
|
|
1512
1508
|
it "processes repository reference" do
|
1513
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
1509
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1514
1510
|
#{ISOBIB_BLANK_HDR}
|
1515
1511
|
== Scope
|
1516
1512
|
|
@@ -1525,63 +1521,63 @@ OUTPUT
|
|
1525
1521
|
* [[[iso123,repo:(ab/ISO 123)]]] _Standard_
|
1526
1522
|
* [[[iso124,repo:(ab/ISO 124,id)]]] _Standard_
|
1527
1523
|
INPUT
|
1528
|
-
|
1529
|
-
<sections>
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1524
|
+
#{BLANK_HDR}
|
1525
|
+
<sections>
|
1526
|
+
<clause id='_' type='scope' inline-header='false' obligation='normative'>
|
1527
|
+
<title>Scope</title>
|
1528
|
+
<p id='_'>
|
1529
|
+
<eref type='inline' bibitemid='iso123' citeas='ISO 123'/>
|
1530
|
+
<eref type='inline' bibitemid='iso123' citeas='ISO 123'>
|
1531
|
+
<localityStack>
|
1532
|
+
<locality type='clause'>
|
1533
|
+
<referenceFrom>1</referenceFrom>
|
1534
|
+
</locality>
|
1535
|
+
</localityStack>
|
1536
|
+
</eref>
|
1537
|
+
<eref type='inline' bibitemid='iso124' citeas='id'/>
|
1538
|
+
<eref type='inline' bibitemid='iso124' citeas='id'>
|
1539
|
+
<localityStack>
|
1540
|
+
<locality type='clause'>
|
1541
|
+
<referenceFrom>1</referenceFrom>
|
1542
|
+
</locality>
|
1543
|
+
</localityStack>
|
1544
|
+
</eref>
|
1545
|
+
</p>
|
1546
|
+
</clause>
|
1547
|
+
</sections>
|
1548
|
+
<bibliography>
|
1549
|
+
<references id='_' normative='true' obligation='informative'>
|
1550
|
+
<title>Normative references</title>
|
1551
|
+
<p id='_'>
|
1552
|
+
The following documents are referred to in the text in such a way that
|
1553
|
+
some or all of their content constitutes requirements of this document.
|
1554
|
+
For dated references, only the edition cited applies. For undated
|
1555
|
+
references, the latest edition of the referenced document (including any
|
1556
|
+
amendments) applies.
|
1557
|
+
</p>
|
1558
|
+
<bibitem id='iso123'>
|
1559
|
+
<formattedref format='application/x-isodoc+xml'>
|
1560
|
+
<em>Standard</em>
|
1561
|
+
</formattedref>
|
1562
|
+
<docidentifier type='ISO'>ISO 123</docidentifier>
|
1563
|
+
<docidentifier type='repository'>ab/ISO 123</docidentifier>
|
1564
|
+
<docnumber>123</docnumber>
|
1565
|
+
</bibitem>
|
1566
|
+
<bibitem id='iso124'>
|
1567
|
+
<formattedref format='application/x-isodoc+xml'>
|
1568
|
+
<em>Standard</em>
|
1569
|
+
</formattedref>
|
1570
|
+
<docidentifier>id</docidentifier>
|
1571
|
+
<docidentifier type='repository'>ab/ISO 124</docidentifier>
|
1572
|
+
</bibitem>
|
1573
|
+
</references>
|
1574
|
+
</bibliography>
|
1575
|
+
</standard-document>
|
1580
1576
|
OUTPUT
|
1581
|
-
|
1577
|
+
end
|
1582
1578
|
|
1583
|
-
|
1584
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
1579
|
+
it "processes hyperlink reference, ingest RXL or XML if available" do
|
1580
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1585
1581
|
#{ISOBIB_BLANK_HDR}
|
1586
1582
|
== Scope
|
1587
1583
|
|
@@ -1599,458 +1595,457 @@ OUTPUT
|
|
1599
1595
|
* [[[iso123,path:(spec/assets/iso123,ISO 123)]]] _Standard_
|
1600
1596
|
* [[[iso124,path:(a/b.adoc,ISO 124)]]] _Standard_
|
1601
1597
|
INPUT
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
1606
|
-
|
1607
|
-
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
</locality>
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1635
|
-
</locality>
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
<title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
|
1658
|
-
<title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
<organization>
|
1671
|
-
<name>International Organization for Standardization</name>
|
1672
|
-
<abbreviation>ISO</abbreviation>
|
1673
|
-
<uri>www.iso.org</uri>
|
1674
|
-
</organization>
|
1675
|
-
</contributor>
|
1676
|
-
<edition>3</edition>
|
1677
|
-
<language>en</language>
|
1678
|
-
<language>fr</language>
|
1679
|
-
<script>Latn</script>
|
1680
|
-
<status>
|
1681
|
-
<stage>90</stage>
|
1682
|
-
<substage>93</substage>
|
1683
|
-
</status>
|
1684
|
-
<copyright>
|
1685
|
-
<from>2001</from>
|
1686
|
-
<owner>
|
1687
|
-
<organization>
|
1688
|
-
<name>ISO</name>
|
1689
|
-
</organization>
|
1690
|
-
</owner>
|
1691
|
-
</copyright>
|
1692
|
-
<relation type='obsoletes'>
|
1693
|
-
<bibitem type='standard'>
|
1694
|
-
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
1695
|
-
</bibitem>
|
1696
|
-
</relation>
|
1697
|
-
<relation type='instance'>
|
1698
|
-
<bibitem type='standard'>
|
1699
|
-
<fetched>2020-06-12</fetched>
|
1700
|
-
<title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
|
1701
|
-
<title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
|
1702
|
-
<title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
|
1703
|
-
<title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
|
1704
|
-
<title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
|
1705
|
-
<title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
|
1706
|
-
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
1707
|
-
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
1708
|
-
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
1709
|
-
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
1710
|
-
<docnumber>123</docnumber>
|
1711
|
-
<date type='published'>
|
1712
|
-
<on>2001</on>
|
1713
|
-
</date>
|
1714
|
-
<contributor>
|
1715
|
-
<role type='publisher'/>
|
1716
|
-
<organization>
|
1717
|
-
<name>International Organization for Standardization</name>
|
1718
|
-
<abbreviation>ISO</abbreviation>
|
1719
|
-
<uri>www.iso.org</uri>
|
1720
|
-
</organization>
|
1721
|
-
</contributor>
|
1722
|
-
<edition>3</edition>
|
1723
|
-
<language>en</language>
|
1724
|
-
<language>fr</language>
|
1725
|
-
<script>Latn</script>
|
1726
|
-
<status>
|
1727
|
-
<stage>90</stage>
|
1728
|
-
<substage>93</substage>
|
1729
|
-
</status>
|
1730
|
-
<copyright>
|
1731
|
-
<from>2001</from>
|
1732
|
-
<owner>
|
1598
|
+
#{BLANK_HDR}
|
1599
|
+
<sections>
|
1600
|
+
<clause id='_' type="scope" inline-header='false' obligation='normative'>
|
1601
|
+
<title>Scope</title>
|
1602
|
+
<p id='_'>
|
1603
|
+
<eref type='inline' bibitemid='iso123' citeas='ISO 123 (all parts)'/>
|
1604
|
+
</p>
|
1605
|
+
<p id='_'>
|
1606
|
+
<eref type='inline' bibitemid='iso124' citeas='ISO 124'>
|
1607
|
+
<localityStack>
|
1608
|
+
<locality type='clause'>
|
1609
|
+
<referenceFrom>1</referenceFrom>
|
1610
|
+
</locality>
|
1611
|
+
</localityStack>
|
1612
|
+
</eref>
|
1613
|
+
</p>
|
1614
|
+
<p id='_'>
|
1615
|
+
<eref type='inline' bibitemid='iso123' citeas='ISO 123 (all parts)'>
|
1616
|
+
<localityStack>
|
1617
|
+
<locality type='anchor'>
|
1618
|
+
<referenceFrom>xyz</referenceFrom>
|
1619
|
+
</locality>
|
1620
|
+
</localityStack>
|
1621
|
+
</eref>
|
1622
|
+
</p>
|
1623
|
+
<p id='_'>
|
1624
|
+
<eref type='inline' bibitemid='iso124' citeas='ISO 124'>
|
1625
|
+
<localityStack>
|
1626
|
+
<locality type='clause'>
|
1627
|
+
<referenceFrom>1</referenceFrom>
|
1628
|
+
</locality>
|
1629
|
+
<locality type='anchor'>
|
1630
|
+
<referenceFrom>xyz</referenceFrom>
|
1631
|
+
</locality>
|
1632
|
+
</localityStack>
|
1633
|
+
</eref>
|
1634
|
+
</p>
|
1635
|
+
</clause>
|
1636
|
+
</sections>
|
1637
|
+
<bibliography>
|
1638
|
+
<references id='_' normative='true' obligation='informative'>
|
1639
|
+
<title>Normative references</title>
|
1640
|
+
<p id='_'>
|
1641
|
+
The following documents are referred to in the text in such a way that
|
1642
|
+
some or all of their content constitutes requirements of this document.
|
1643
|
+
For dated references, only the edition cited applies. For undated
|
1644
|
+
references, the latest edition of the referenced document (including any
|
1645
|
+
amendments) applies.
|
1646
|
+
</p>
|
1647
|
+
<bibitem id='iso123' type='standard'>
|
1648
|
+
<fetched>2020-06-12</fetched>
|
1649
|
+
<title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
|
1650
|
+
<title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
|
1651
|
+
<title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
|
1652
|
+
<title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
|
1653
|
+
<title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
|
1654
|
+
<title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
|
1655
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
1656
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
1657
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
1658
|
+
<uri type='citation'>spec/assets/iso123</uri>
|
1659
|
+
<docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
|
1660
|
+
<docnumber>123</docnumber>
|
1661
|
+
<date type='published'>
|
1662
|
+
<on>2001</on>
|
1663
|
+
</date>
|
1664
|
+
<contributor>
|
1665
|
+
<role type='publisher'/>
|
1733
1666
|
<organization>
|
1734
|
-
<name>
|
1667
|
+
<name>International Organization for Standardization</name>
|
1668
|
+
<abbreviation>ISO</abbreviation>
|
1669
|
+
<uri>www.iso.org</uri>
|
1735
1670
|
</organization>
|
1736
|
-
</
|
1737
|
-
|
1738
|
-
|
1739
|
-
<
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
|
1748
|
-
|
1749
|
-
|
1750
|
-
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
</
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
<
|
1764
|
-
|
1765
|
-
|
1671
|
+
</contributor>
|
1672
|
+
<edition>3</edition>
|
1673
|
+
<language>en</language>
|
1674
|
+
<language>fr</language>
|
1675
|
+
<script>Latn</script>
|
1676
|
+
<status>
|
1677
|
+
<stage>90</stage>
|
1678
|
+
<substage>93</substage>
|
1679
|
+
</status>
|
1680
|
+
<copyright>
|
1681
|
+
<from>2001</from>
|
1682
|
+
<owner>
|
1683
|
+
<organization>
|
1684
|
+
<name>ISO</name>
|
1685
|
+
</organization>
|
1686
|
+
</owner>
|
1687
|
+
</copyright>
|
1688
|
+
<relation type='obsoletes'>
|
1689
|
+
<bibitem type='standard'>
|
1690
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
1691
|
+
</bibitem>
|
1692
|
+
</relation>
|
1693
|
+
<relation type='instance'>
|
1694
|
+
<bibitem type='standard'>
|
1695
|
+
<fetched>2020-06-12</fetched>
|
1696
|
+
<title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
|
1697
|
+
<title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
|
1698
|
+
<title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
|
1699
|
+
<title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
|
1700
|
+
<title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
|
1701
|
+
<title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
|
1702
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
1703
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
1704
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
1705
|
+
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
1706
|
+
<docnumber>123</docnumber>
|
1707
|
+
<date type='published'>
|
1708
|
+
<on>2001</on>
|
1709
|
+
</date>
|
1710
|
+
<contributor>
|
1711
|
+
<role type='publisher'/>
|
1712
|
+
<organization>
|
1713
|
+
<name>International Organization for Standardization</name>
|
1714
|
+
<abbreviation>ISO</abbreviation>
|
1715
|
+
<uri>www.iso.org</uri>
|
1716
|
+
</organization>
|
1717
|
+
</contributor>
|
1718
|
+
<edition>3</edition>
|
1719
|
+
<language>en</language>
|
1720
|
+
<language>fr</language>
|
1721
|
+
<script>Latn</script>
|
1722
|
+
<status>
|
1723
|
+
<stage>90</stage>
|
1724
|
+
<substage>93</substage>
|
1725
|
+
</status>
|
1726
|
+
<copyright>
|
1727
|
+
<from>2001</from>
|
1728
|
+
<owner>
|
1729
|
+
<organization>
|
1730
|
+
<name>ISO</name>
|
1731
|
+
</organization>
|
1732
|
+
</owner>
|
1733
|
+
</copyright>
|
1734
|
+
<relation type='obsoletes'>
|
1735
|
+
<bibitem type='standard'>
|
1736
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
1737
|
+
</bibitem>
|
1738
|
+
</relation>
|
1739
|
+
<place>Geneva</place>
|
1740
|
+
</bibitem>
|
1741
|
+
</relation>
|
1742
|
+
<relation type='instance'>
|
1743
|
+
<bibitem type='standard'>
|
1744
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
1745
|
+
</bibitem>
|
1746
|
+
</relation>
|
1747
|
+
<relation type='instance'>
|
1748
|
+
<bibitem type='standard'>
|
1749
|
+
<formattedref format='text/plain'>ISO 123:1974</formattedref>
|
1750
|
+
</bibitem>
|
1751
|
+
</relation>
|
1752
|
+
<place>Geneva</place>
|
1766
1753
|
</bibitem>
|
1767
|
-
|
1768
|
-
|
1769
|
-
</
|
1754
|
+
<bibitem id='iso124'>
|
1755
|
+
<formattedref format='application/x-isodoc+xml'>
|
1756
|
+
<em>Standard</em>
|
1757
|
+
</formattedref>
|
1758
|
+
<uri type='URI'>a/b</uri>
|
1759
|
+
<uri type='citation'>a/b</uri>
|
1760
|
+
<docidentifier type="ISO">ISO 124</docidentifier>
|
1761
|
+
<docnumber>124</docnumber>
|
1762
|
+
</bibitem>
|
1763
|
+
</references>
|
1764
|
+
</bibliography>
|
1765
|
+
</standard-document>
|
1770
1766
|
OUTPUT
|
1771
|
-
|
1767
|
+
end
|
1772
1768
|
|
1773
|
-
|
1769
|
+
it "overrides normative status of bibliographies" do
|
1774
1770
|
mock_isobib_get_123_no_docid(1)
|
1775
1771
|
mock_isobib_get_123_no_docid_lbl(1)
|
1776
|
-
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT",
|
1772
|
+
expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
|
1777
1773
|
#{ISOBIB_BLANK_HDR}
|
1778
1774
|
[bibliography,normative=false]
|
1779
1775
|
== Normative References
|
1780
1776
|
|
1781
1777
|
* [[[iso123,ISO 123]]] _Standard_
|
1782
|
-
|
1778
|
+
|
1783
1779
|
[bibliography,normative=true]
|
1784
1780
|
== Bibliography
|
1785
1781
|
|
1786
1782
|
* [[[iso124,(1)ISO 123]]] _Standard_
|
1787
1783
|
INPUT
|
1788
|
-
|
1789
|
-
|
1790
|
-
<bibliography>
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1822
|
-
|
1823
|
-
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
1898
|
-
|
1784
|
+
#{BLANK_HDR}
|
1785
|
+
<sections> </sections>
|
1786
|
+
<bibliography>
|
1787
|
+
<references id='_' normative='false' obligation='informative'>
|
1788
|
+
<title>Bibliography</title>
|
1789
|
+
<bibitem type='standard' id='iso123'>
|
1790
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
1791
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
1792
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
1793
|
+
<date type='published'>
|
1794
|
+
<on>2001</on>
|
1795
|
+
</date>
|
1796
|
+
<contributor>
|
1797
|
+
<role type='publisher'/>
|
1798
|
+
<organization>
|
1799
|
+
<name>International Organization for Standardization</name>
|
1800
|
+
<abbreviation>ISO</abbreviation>
|
1801
|
+
<uri>www.iso.org</uri>
|
1802
|
+
</organization>
|
1803
|
+
</contributor>
|
1804
|
+
<edition>3</edition>
|
1805
|
+
<language>en</language>
|
1806
|
+
<language>fr</language>
|
1807
|
+
<script>Latn</script>
|
1808
|
+
<status>
|
1809
|
+
<stage>Published</stage>
|
1810
|
+
</status>
|
1811
|
+
<copyright>
|
1812
|
+
<from>2001</from>
|
1813
|
+
<owner>
|
1814
|
+
<organization>
|
1815
|
+
<name>ISO</name>
|
1816
|
+
<abbreviation/>
|
1817
|
+
</organization>
|
1818
|
+
</owner>
|
1819
|
+
</copyright>
|
1820
|
+
<relation type='obsoletes'>
|
1821
|
+
<bibitem type='standard'>
|
1822
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
1823
|
+
</bibitem>
|
1824
|
+
</relation>
|
1825
|
+
<relation type='updates'>
|
1826
|
+
<bibitem type='standard'>
|
1827
|
+
<formattedref format='text/plain'>ISO 123:2001</formattedref>
|
1828
|
+
</bibitem>
|
1829
|
+
</relation>
|
1830
|
+
<docidentifier>ISO 123</docidentifier>
|
1831
|
+
<title>
|
1832
|
+
<em>Standard</em>
|
1833
|
+
</title>
|
1834
|
+
</bibitem>
|
1835
|
+
</references>
|
1836
|
+
<references id='_' normative='true' obligation='informative'>
|
1837
|
+
<title>Normative references</title>
|
1838
|
+
<p id='_'>
|
1839
|
+
The following documents are referred to in the text in such a way that
|
1840
|
+
some or all of their content constitutes requirements of this document.
|
1841
|
+
For dated references, only the edition cited applies. For undated
|
1842
|
+
references, the latest edition of the referenced document (including any
|
1843
|
+
amendments) applies.
|
1844
|
+
</p>
|
1845
|
+
<bibitem type='standard' id='iso124'>
|
1846
|
+
<uri type='src'>https://www.iso.org/standard/23281.html</uri>
|
1847
|
+
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
1848
|
+
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
1849
|
+
<date type='published'>
|
1850
|
+
<on>2001</on>
|
1851
|
+
</date>
|
1852
|
+
<contributor>
|
1853
|
+
<role type='publisher'/>
|
1854
|
+
<organization>
|
1855
|
+
<name>International Organization for Standardization</name>
|
1856
|
+
<abbreviation>ISO</abbreviation>
|
1857
|
+
<uri>www.iso.org</uri>
|
1858
|
+
</organization>
|
1859
|
+
</contributor>
|
1860
|
+
<edition>3</edition>
|
1861
|
+
<language>en</language>
|
1862
|
+
<language>fr</language>
|
1863
|
+
<script>Latn</script>
|
1864
|
+
<status>
|
1865
|
+
<stage>Published</stage>
|
1866
|
+
</status>
|
1867
|
+
<copyright>
|
1868
|
+
<from>2001</from>
|
1869
|
+
<owner>
|
1870
|
+
<organization>
|
1871
|
+
<name>ISO</name>
|
1872
|
+
<abbreviation/>
|
1873
|
+
</organization>
|
1874
|
+
</owner>
|
1875
|
+
</copyright>
|
1876
|
+
<relation type='obsoletes'>
|
1877
|
+
<bibitem type='standard'>
|
1878
|
+
<formattedref format='text/plain'>ISO 123:1985</formattedref>
|
1879
|
+
</bibitem>
|
1880
|
+
</relation>
|
1881
|
+
<relation type='updates'>
|
1882
|
+
<bibitem type='standard'>
|
1883
|
+
<formattedref format='text/plain'>ISO 123:2001</formattedref>
|
1884
|
+
</bibitem>
|
1885
|
+
</relation>
|
1886
|
+
<docidentifier>ISO 123</docidentifier>
|
1887
|
+
<docidentifier type='metanorma'>[1]</docidentifier>
|
1888
|
+
<title>
|
1889
|
+
<em>Standard</em>
|
1890
|
+
</title>
|
1891
|
+
</bibitem>
|
1892
|
+
</references>
|
1893
|
+
</bibliography>
|
1894
|
+
</standard-document>
|
1899
1895
|
OUTPUT
|
1900
|
-
|
1896
|
+
end
|
1901
1897
|
|
1902
|
-
|
1898
|
+
private
|
1903
1899
|
|
1904
|
-
|
1905
|
-
|
1906
|
-
|
1900
|
+
def mock_isobib_get_123
|
1901
|
+
expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 123", nil, {}) do
|
1902
|
+
IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
|
1907
1903
|
<bibitem type=\"standard\" id=\"ISO123\">\n <title format=\"text/plain\" language=\"en\" script=\"Latn\">Rubber latex -- Sampling</title>\n <title format=\"text/plain\" language=\"fr\" script=\"Latn\">Latex de caoutchouc -- ?chantillonnage</title>\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 <docidentifier>ISO 123</docidentifier>\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>Published</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>
|
1908
|
-
|
1909
|
-
end
|
1904
|
+
OUTPUT
|
1910
1905
|
end
|
1906
|
+
end
|
1911
1907
|
|
1912
|
-
|
1913
|
-
|
1914
|
-
|
1908
|
+
def mock_isobib_get_123_no_docid(n)
|
1909
|
+
expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 123", nil, { lang: "en", title: "<em>Standard</em>", usrlbl: nil }) do
|
1910
|
+
RelatonBib::XMLParser.from_xml(<<~"OUTPUT")
|
1915
1911
|
<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>
|
1916
|
-
|
1917
|
-
|
1918
|
-
|
1912
|
+
OUTPUT
|
1913
|
+
end.exactly(n).times
|
1914
|
+
end
|
1919
1915
|
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1916
|
+
def mock_isobib_get_123_no_docid_lbl(n)
|
1917
|
+
expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 123", nil, { lang: "en", title: "<em>Standard</em>", usrlbl: "(1)" }) do
|
1918
|
+
RelatonBib::XMLParser.from_xml(<<~"OUTPUT")
|
1923
1919
|
<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>
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1920
|
+
OUTPUT
|
1921
|
+
end.exactly(n).times
|
1922
|
+
end
|
1927
1923
|
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1942
|
-
|
1943
|
-
<organization>
|
1944
|
-
<name>International Organization for Standardization</name>
|
1945
|
-
<abbreviation>ISO</abbreviation>
|
1946
|
-
<uri>www.iso.org</uri>
|
1947
|
-
</organization>
|
1948
|
-
</contributor>
|
1949
|
-
<edition>7</edition>
|
1950
|
-
<language>en</language>
|
1951
|
-
<language>fr</language>
|
1952
|
-
<script>Latn</script>
|
1953
|
-
<abstract format="text/plain" language="en" script="Latn">ISO 124:2014 specifies methods for the determination of the total solids content of natural rubber field and concentrated latices and synthetic rubber latex. These methods are not necessarily suitable for latex from natural sources other than the Hevea brasiliensis, for vulcanized latex, for compounded latex, or for artificial dispersions of rubber.</abstract>
|
1954
|
-
<status>Published</status>
|
1955
|
-
<copyright>
|
1956
|
-
<from>2014</from>
|
1957
|
-
<owner>
|
1924
|
+
def mock_isobib_get_124
|
1925
|
+
expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 124", "2014", {}) do
|
1926
|
+
IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
|
1927
|
+
<bibitem type="standard" id="iso124">
|
1928
|
+
<title format="text/plain" language="en" script="Latn">Latex, rubber -- Determination of total solids content</title>
|
1929
|
+
<title format="text/plain" language="fr" script="Latn">Latex de caoutchouc -- Détermination des matières solides totales</title>
|
1930
|
+
<uri type="src">https://www.iso.org/standard/61884.html</uri>
|
1931
|
+
<uri type="obp">https://www.iso.org/obp/ui/#!iso:std:61884:en</uri>
|
1932
|
+
<uri type="rss">https://www.iso.org/contents/data/standard/06/18/61884.detail.rss</uri>
|
1933
|
+
<docidentifier>ISO 124</docidentifier>
|
1934
|
+
<date type="published">
|
1935
|
+
<on>2014</on>
|
1936
|
+
</date>
|
1937
|
+
<contributor>
|
1938
|
+
<role type="publisher"/>
|
1958
1939
|
<organization>
|
1959
|
-
<name>
|
1960
|
-
<abbreviation
|
1940
|
+
<name>International Organization for Standardization</name>
|
1941
|
+
<abbreviation>ISO</abbreviation>
|
1942
|
+
<uri>www.iso.org</uri>
|
1961
1943
|
</organization>
|
1962
|
-
</
|
1963
|
-
|
1964
|
-
|
1965
|
-
<
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1944
|
+
</contributor>
|
1945
|
+
<edition>7</edition>
|
1946
|
+
<language>en</language>
|
1947
|
+
<language>fr</language>
|
1948
|
+
<script>Latn</script>
|
1949
|
+
<abstract format="text/plain" language="en" script="Latn">ISO 124:2014 specifies methods for the determination of the total solids content of natural rubber field and concentrated latices and synthetic rubber latex. These methods are not necessarily suitable for latex from natural sources other than the Hevea brasiliensis, for vulcanized latex, for compounded latex, or for artificial dispersions of rubber.</abstract>
|
1950
|
+
<status>Published</status>
|
1951
|
+
<copyright>
|
1952
|
+
<from>2014</from>
|
1953
|
+
<owner>
|
1954
|
+
<organization>
|
1955
|
+
<name>ISO</name>
|
1956
|
+
<abbreviation/>
|
1957
|
+
</organization>
|
1958
|
+
</owner>
|
1959
|
+
</copyright>
|
1960
|
+
<relation type="obsoletes">
|
1961
|
+
<bibitem type="standard">
|
1962
|
+
<formattedref format="text/plain">ISO 124:2011</formattedref>
|
1963
|
+
</bibitem>
|
1964
|
+
</relation>
|
1965
|
+
<ics>
|
1966
|
+
<code>83.040.10</code>
|
1967
|
+
<text>Latex and raw rubber</text>
|
1968
|
+
</ics>
|
1969
|
+
</bibitem>
|
1970
|
+
OUTPUT
|
1976
1971
|
end
|
1972
|
+
end
|
1977
1973
|
|
1978
|
-
|
1979
|
-
|
1974
|
+
def mock_isobib_get_iec12382
|
1975
|
+
expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO/IEC TR 12382", "1992", {}) do
|
1980
1976
|
IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1993
|
-
<organization>
|
1994
|
-
<name>International Organization for Standardization</name>
|
1995
|
-
<abbreviation>ISO</abbreviation>
|
1996
|
-
<uri>www.iso.org</uri>
|
1997
|
-
</organization>
|
1998
|
-
</contributor>
|
1999
|
-
<contributor>
|
2000
|
-
<role type="publisher"/>
|
2001
|
-
<organization>
|
2002
|
-
<name>International Electrotechnical Commission</name>
|
2003
|
-
<abbreviation>IEC</abbreviation>
|
2004
|
-
<uri>www.iec.ch</uri>
|
2005
|
-
</organization>
|
2006
|
-
</contributor>
|
2007
|
-
<edition>2</edition>
|
2008
|
-
<language>en</language>
|
2009
|
-
<language>fr</language>
|
2010
|
-
<script>Latn</script>
|
2011
|
-
<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>
|
2012
|
-
<status>Published</status>
|
2013
|
-
<copyright>
|
2014
|
-
<from>1992</from>
|
2015
|
-
<owner>
|
1977
|
+
<bibitem type="standard" id="iso123">
|
1978
|
+
<title format="text/plain" language="en" script="Latn">Permuted index of the vocabulary of information technology</title>
|
1979
|
+
<title format="text/plain" language="fr" script="Latn">Index permuté du vocabulaire des technologies de l'information</title>
|
1980
|
+
<uri type="src">https://www.iso.org/standard/21071.html</uri>
|
1981
|
+
<uri type="obp">https://www.iso.org/obp/ui/#!iso:std:21071:en</uri>
|
1982
|
+
<uri type="rss">https://www.iso.org/contents/data/standard/02/10/21071.detail.rss</uri>
|
1983
|
+
<docidentifier>ISO/IEC 12382</docidentifier>
|
1984
|
+
<date type="published">
|
1985
|
+
<on>1992</on>
|
1986
|
+
</date>
|
1987
|
+
<contributor>
|
1988
|
+
<role type="publisher"/>
|
2016
1989
|
<organization>
|
2017
|
-
<name>
|
2018
|
-
<abbreviation
|
1990
|
+
<name>International Organization for Standardization</name>
|
1991
|
+
<abbreviation>ISO</abbreviation>
|
1992
|
+
<uri>www.iso.org</uri>
|
2019
1993
|
</organization>
|
2020
|
-
</
|
2021
|
-
|
2022
|
-
|
2023
|
-
|
2024
|
-
|
2025
|
-
|
2026
|
-
|
2027
|
-
|
2028
|
-
|
2029
|
-
|
2030
|
-
|
2031
|
-
|
2032
|
-
|
2033
|
-
|
2034
|
-
|
2035
|
-
|
2036
|
-
|
1994
|
+
</contributor>
|
1995
|
+
<contributor>
|
1996
|
+
<role type="publisher"/>
|
1997
|
+
<organization>
|
1998
|
+
<name>International Electrotechnical Commission</name>
|
1999
|
+
<abbreviation>IEC</abbreviation>
|
2000
|
+
<uri>www.iec.ch</uri>
|
2001
|
+
</organization>
|
2002
|
+
</contributor>
|
2003
|
+
<edition>2</edition>
|
2004
|
+
<language>en</language>
|
2005
|
+
<language>fr</language>
|
2006
|
+
<script>Latn</script>
|
2007
|
+
<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>
|
2008
|
+
<status>Published</status>
|
2009
|
+
<copyright>
|
2010
|
+
<from>1992</from>
|
2011
|
+
<owner>
|
2012
|
+
<organization>
|
2013
|
+
<name>ISO/IEC</name>
|
2014
|
+
<abbreviation/>
|
2015
|
+
</organization>
|
2016
|
+
</owner>
|
2017
|
+
</copyright>
|
2018
|
+
<relation type="updates">
|
2019
|
+
<bibitem type="standard">
|
2020
|
+
<formattedref format="text/plain">ISO/IEC TR 12382:1992</formattedref>
|
2021
|
+
</bibitem>
|
2022
|
+
</relation>
|
2023
|
+
<ics>
|
2024
|
+
<code>35.020</code>
|
2025
|
+
<text>Information technology (IT) in general</text>
|
2026
|
+
</ics>
|
2027
|
+
<ics>
|
2028
|
+
<code>01.040.35</code>
|
2029
|
+
<text>Information technology (Vocabularies)</text>
|
2030
|
+
</ics>
|
2031
|
+
</bibitem>
|
2032
|
+
OUTPUT
|
2037
2033
|
end
|
2038
|
-
end
|
2034
|
+
end
|
2039
2035
|
|
2040
|
-
|
2041
|
-
|
2042
|
-
|
2043
|
-
|
2044
|
-
|
2045
|
-
|
2046
|
-
|
2047
|
-
|
2048
|
-
|
2049
|
-
|
2050
|
-
|
2051
|
-
</bibitem>
|
2052
|
-
|
2053
|
-
end
|
2036
|
+
def mock_rfcbib_get_rfc8341
|
2037
|
+
expect(IETFBib::RfcBibliography).to receive(:get).with("RFC 8341", nil, {}) do
|
2038
|
+
IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
|
2039
|
+
<bibitem id="RFC8341">
|
2040
|
+
<title format="text/plain" language="en" script="Latn">Network Configuration Access Control Model</title>
|
2041
|
+
<docidentifier type="DOI">10.17487/RFC8341</docidentifier>
|
2042
|
+
<docidentifier type="IETF">RFC 8341</docidentifier>
|
2043
|
+
<date type="published">
|
2044
|
+
<on>2018</on>
|
2045
|
+
</date>
|
2046
|
+
<status>published</status>
|
2047
|
+
</bibitem>
|
2048
|
+
OUTPUT
|
2054
2049
|
end
|
2055
|
-
|
2050
|
+
end
|
2056
2051
|
end
|