metanorma-standoc 1.9.3 → 1.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +3 -13
  3. data/.hound.yml +3 -1
  4. data/.rubocop.yml +4 -6
  5. data/lib/asciidoctor/standoc/base.rb +3 -1
  6. data/lib/asciidoctor/standoc/blocks.rb +1 -1
  7. data/lib/asciidoctor/standoc/cleanup.rb +1 -2
  8. data/lib/asciidoctor/standoc/cleanup_block.rb +0 -1
  9. data/lib/asciidoctor/standoc/cleanup_boilerplate.rb +2 -2
  10. data/lib/asciidoctor/standoc/cleanup_footnotes.rb +0 -1
  11. data/lib/asciidoctor/standoc/cleanup_inline.rb +117 -77
  12. data/lib/asciidoctor/standoc/cleanup_maths.rb +0 -1
  13. data/lib/asciidoctor/standoc/cleanup_ref.rb +7 -0
  14. data/lib/asciidoctor/standoc/cleanup_section.rb +13 -81
  15. data/lib/asciidoctor/standoc/cleanup_section_names.rb +75 -0
  16. data/lib/asciidoctor/standoc/cleanup_terms.rb +19 -18
  17. data/lib/asciidoctor/standoc/converter.rb +1 -0
  18. data/lib/asciidoctor/standoc/front.rb +0 -1
  19. data/lib/asciidoctor/standoc/front_contributor.rb +66 -42
  20. data/lib/asciidoctor/standoc/inline.rb +45 -34
  21. data/lib/asciidoctor/standoc/isodoc.rng +65 -7
  22. data/lib/asciidoctor/standoc/macros.rb +7 -5
  23. data/lib/asciidoctor/standoc/macros_plantuml.rb +21 -23
  24. data/lib/asciidoctor/standoc/macros_terms.rb +60 -23
  25. data/lib/asciidoctor/standoc/section.rb +19 -12
  26. data/lib/asciidoctor/standoc/term_lookup_cleanup.rb +69 -30
  27. data/lib/asciidoctor/standoc/terms.rb +1 -1
  28. data/lib/asciidoctor/standoc/utils.rb +0 -1
  29. data/lib/asciidoctor/standoc/validate.rb +22 -8
  30. data/lib/isodoc/html/html_titlepage.html +81 -0
  31. data/lib/isodoc/html/htmlstyle.css +983 -0
  32. data/lib/isodoc/html/htmlstyle.scss +714 -0
  33. data/lib/isodoc/html/scripts.html +71 -0
  34. data/lib/metanorma/standoc/processor.rb +16 -7
  35. data/lib/metanorma/standoc/version.rb +1 -1
  36. data/metanorma-standoc.gemspec +2 -2
  37. data/spec/asciidoctor/base_spec.rb +693 -553
  38. data/spec/asciidoctor/blocks_spec.rb +6 -6
  39. data/spec/asciidoctor/cleanup_spec.rb +899 -688
  40. data/spec/asciidoctor/inline_spec.rb +62 -14
  41. data/spec/asciidoctor/isobib_cache_spec.rb +4 -6
  42. data/spec/asciidoctor/lists_spec.rb +147 -135
  43. data/spec/asciidoctor/macros_json2text_spec.rb +1 -1
  44. data/spec/asciidoctor/macros_spec.rb +714 -168
  45. data/spec/asciidoctor/refs_spec.rb +1527 -1532
  46. data/spec/asciidoctor/validate_spec.rb +352 -304
  47. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +51 -51
  48. data/spec/vcr_cassettes/isobib_get_123.yml +14 -14
  49. data/spec/vcr_cassettes/isobib_get_123_1.yml +27 -27
  50. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +36 -36
  51. data/spec/vcr_cassettes/isobib_get_123_2001.yml +12 -12
  52. data/spec/vcr_cassettes/isobib_get_124.yml +13 -13
  53. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +14 -14
  54. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +46 -46
  55. metadata +10 -5
@@ -4,7 +4,7 @@ require "relaton_ietf"
4
4
 
5
5
  RSpec.describe Asciidoctor::Standoc do
6
6
  it "processes simple ISO reference" do
7
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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
- #{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>
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", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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
- #{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>
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
- </references>
96
- </bibliography>
97
- </standard-document>
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
- #{ISOBIB_BLANK_HDR}
106
-
107
- <<iso123>>
108
- <<iso124>>
105
+ #{ISOBIB_BLANK_HDR}
109
106
 
110
- [bibliography]
111
- == Normative References
107
+ <<iso123>>
108
+ <<iso124>>
112
109
 
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
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", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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
- #{BLANK_HDR}
236
- <sections>
235
+ #{BLANK_HDR}
236
+ <sections>
237
237
 
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>20</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.20: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>20</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>20</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.20: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>20</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
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>93</substage>
268
+ </status>
269
+ <copyright>
270
+ <from>2001</from>
271
+ <owner>
272
+ <organization>
273
+ <name>ISO</name>
274
+ </organization>
275
+ </owner>
276
+ </copyright>
277
+ <relation type='obsoletes'>
278
+ <bibitem type='standard'>
279
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
280
+ </bibitem>
281
+ </relation>
282
+ <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.93: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>93</substage>
318
+ </status>
319
+ <copyright>
320
+ <from>2001</from>
321
+ <owner>
322
+ <organization>
323
+ <name>ISO</name>
324
+ </organization>
325
+ </owner>
326
+ </copyright>
327
+ <relation type='obsoletes'>
328
+ <bibitem type='standard'>
329
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
330
+ </bibitem>
331
+ </relation>
332
+ <place>Geneva</place>
333
+ </bibitem>
334
+ </relation>
335
+ <relation type='instance'>
336
+ <bibitem type='standard'>
337
+ <formattedref format='text/plain'>ISO 123:1985</formattedref>
338
+ </bibitem>
339
+ </relation>
340
+ <relation type='instance'>
341
+ <bibitem type='standard'>
342
+ <formattedref format='text/plain'>ISO 123:1974</formattedref>
343
+ </bibitem>
344
+ </relation>
345
+ <place>Geneva</place>
346
+ </bibitem>
347
+ <bibitem id='iso124' type='standard'>
348
+ <fetched>#{Date.today}</fetched>
349
+ <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
350
+ <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
351
+ <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
352
+ <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>93</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.93: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>93</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", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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
- #{BLANK_HDR.sub(%r{<language>en</language>}, "<language>fr</language>")}
480
- <sections>
481
-
482
- </sections><bibliography>
483
- <references id='_' normative='true' obligation='informative'>
484
- <title>Références normatives</title>
485
- <p id='_'>
486
- Les documents suivants cités dans le texte constituent, pour tout ou
487
- partie de leur contenu, des exigences du présent document. Pour les
488
- références datées, seule l’édition citée s’applique. Pour les références
489
- non datées, la dernière édition du document de référence s’applique (y
490
- compris les éventuels amendements).
491
- </p>
492
- <bibitem id='iso123' type='standard'>
493
- <fetched>#{Date.today}</fetched>
494
- <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
495
- <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
496
- <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
497
- <uri type='src'>https://www.iso.org/standard/23281.html</uri>
498
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
499
- <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
500
- <docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
501
- <docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
502
- <docnumber>123</docnumber>
503
- <date type='published'>
504
- <on>2001-05</on>
505
- </date>
506
- <contributor>
507
- <role type='publisher'/>
508
- <organization>
509
- <name>International Organization for Standardization</name>
510
- <abbreviation>ISO</abbreviation>
511
- <uri>www.iso.org</uri>
512
- </organization>
513
- </contributor>
514
- <edition>3</edition>
515
- <language>en</language>
516
- <language>fr</language>
517
- <script>Latn</script>
518
- <status>
519
- <stage>90</stage>
520
- <substage>20</substage>
521
- </status>
522
- <copyright>
523
- <from>2001</from>
524
- <owner>
525
- <organization>
526
- <name>ISO</name>
527
- </organization>
528
- </owner>
529
- </copyright>
530
- <relation type='obsoletes'>
531
- <bibitem type='standard'>
532
- <formattedref format='text/plain'>ISO 123:1985</formattedref>
533
- </bibitem>
534
- </relation>
535
- <relation type='instance'>
536
- <bibitem type='standard'>
537
- <fetched>#{Date.today}</fetched>
538
- <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
539
- <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
540
- <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Échantillonnage</title>
541
- <uri type='src'>https://www.iso.org/standard/23281.html</uri>
542
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
543
- <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
544
- <docidentifier type='ISO'>ISO 123:2001</docidentifier>
545
- <docidentifier type='URN'>urn:iso:std:iso:123:stage-90.20:ed-3:fr</docidentifier>
546
- <docnumber>123</docnumber>
547
- <date type='published'>
548
- <on>2001-05</on>
549
- </date>
550
- <contributor>
551
- <role type='publisher'/>
552
- <organization>
553
- <name>International Organization for Standardization</name>
554
- <abbreviation>ISO</abbreviation>
555
- <uri>www.iso.org</uri>
556
- </organization>
557
- </contributor>
558
- <edition>3</edition>
559
- <language>en</language>
560
- <language>fr</language>
561
- <script>Latn</script>
562
- <abstract format='text/plain' language='fr' script='Latn'>
563
- La présente Norme internationale spécifie des méthodes
564
- d’échantillonnage pour des concentrés de latex de
565
- caoutchoucnaturel et pour échantillonner des latex de caoutchouc
566
- synthétique et des latex artificiels. Elle s’applique égalementà
567
- l’échantillonnage de latex de caoutchouc contenus dans des fûts,
568
- citernes routières ou de stockage. Lemode opératoire peut aussi
569
- être utilisé pour l’échantillonnage de dispersions de plastiques.
570
- </abstract>
571
- <status>
572
- <stage>90</stage>
573
- <substage>20</substage>
574
- </status>
575
- <copyright>
576
- <from>2001</from>
577
- <owner>
578
- <organization>
579
- <name>ISO</name>
580
- </organization>
581
- </owner>
582
- </copyright>
583
- <relation type='obsoletes'>
584
- <bibitem type='standard'>
585
- <formattedref format='text/plain'>ISO 123:1985</formattedref>
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>93</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.93: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>93</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
- </relation>
588
- <place>Geneva</place>
589
- </bibitem>
590
- </relation>
591
- <relation type='instance'>
592
- <bibitem type='standard'>
593
- <formattedref format='text/plain'>ISO 123:1985</formattedref>
594
- </bibitem>
595
- </relation>
596
- <relation type='instance'>
597
- <bibitem type='standard'>
598
- <formattedref format='text/plain'>ISO 123:1974</formattedref>
599
- </bibitem>
600
- </relation>
601
- <place>Geneva</place>
602
- </bibitem>
603
- <bibitem id='iso124' type='standard'>
604
- <fetched>#{Date.today}</fetched>
605
- <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
606
- <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
607
- <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc – Échantillonnage</title>
608
- <uri type='src'>https://www.iso.org/standard/23281.html</uri>
609
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
610
- <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
611
- <docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
612
- <docidentifier type='metanorma'>[1]</docidentifier>
613
- <docidentifier type='URN'>urn:iso:std:iso:123</docidentifier>
614
- <docnumber>123</docnumber>
615
- <date type='published'>
616
- <on>2001-05</on>
617
- </date>
618
- <contributor>
619
- <role type='publisher'/>
620
- <organization>
621
- <name>International Organization for Standardization</name>
622
- <abbreviation>ISO</abbreviation>
623
- <uri>www.iso.org</uri>
624
- </organization>
625
- </contributor>
626
- <edition>3</edition>
627
- <language>en</language>
628
- <language>fr</language>
629
- <script>Latn</script>
630
- <status>
631
- <stage>90</stage>
632
- <substage>20</substage>
633
- </status>
634
- <copyright>
635
- <from>2001</from>
636
- <owner>
637
- <organization>
638
- <name>ISO</name>
639
- </organization>
640
- </owner>
641
- </copyright>
642
- <relation type='obsoletes'>
643
- <bibitem type='standard'>
644
- <formattedref format='text/plain'>ISO 123:1985</formattedref>
645
- </bibitem>
646
- </relation>
647
- <relation type='instance'>
648
- <bibitem type='standard'>
649
- <fetched>#{Date.today}</fetched>
650
- <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
651
- <title type='title-main' format='text/plain' language='fr' script='Latn'>Échantillonnage</title>
652
- <title type='main' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc — Échantillonnage</title>
653
- <uri type='src'>https://www.iso.org/standard/23281.html</uri>
654
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
655
- <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
656
- <docidentifier type='ISO'>ISO 123:2001</docidentifier>
657
- <docidentifier type='URN'>urn:iso:std:iso:123:stage-90.20:ed-3:fr</docidentifier>
658
- <docnumber>123</docnumber>
659
- <date type='published'>
660
- <on>2001-05</on>
661
- </date>
662
- <contributor>
663
- <role type='publisher'/>
664
- <organization>
665
- <name>International Organization for Standardization</name>
666
- <abbreviation>ISO</abbreviation>
667
- <uri>www.iso.org</uri>
668
- </organization>
669
- </contributor>
670
- <edition>3</edition>
671
- <language>en</language>
672
- <language>fr</language>
673
- <script>Latn</script>
674
- <abstract format='text/plain' language='fr' script='Latn'>
675
- La présente Norme internationale spécifie des méthodes
676
- d’échantillonnage pour des concentrés de latex de
677
- caoutchoucnaturel et pour échantillonner des latex de caoutchouc
678
- synthétique et des latex artificiels. Elle s’applique égalementà
679
- l’échantillonnage de latex de caoutchouc contenus dans des fûts,
680
- citernes routières ou de stockage. Lemode opératoire peut aussi
681
- être utilisé pour l’échantillonnage de dispersions de plastiques.
682
- </abstract>
683
- <status>
684
- <stage>90</stage>
685
- <substage>20</substage>
686
- </status>
687
- <copyright>
688
- <from>2001</from>
689
- <owner>
690
- <organization>
691
- <name>ISO</name>
692
- </organization>
693
- </owner>
694
- </copyright>
695
- <relation type='obsoletes'>
696
- <bibitem type='standard'>
697
- <formattedref format='text/plain'>ISO 123:1985</formattedref>
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>93</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.93: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>93</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
- </relation>
700
- <place>Geneva</place>
701
- </bibitem>
702
- </relation>
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", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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
- #{BLANK_HDR}
732
- <sections>
733
- </sections><bibliography><references id="_" obligation="informative" normative="true">
734
- <title>Normative references</title>
735
- #{NORM_REF_BOILERPLATE}
736
- <bibitem id="iso123" type="standard">
737
- <title format="text/plain">Standard</title>
738
- <docidentifier>IEC 123</docidentifier>
739
- <docnumber>123</docnumber>
740
- <contributor>
741
- <role type="publisher"/>
742
- <organization>
743
- <name>IEC</name>
744
- </organization>
745
- </contributor>
746
- </bibitem>
747
- <bibitem id='iso124' type='standard'>
748
- <title format='text/plain'>Standard</title>
749
- <docidentifier type='metanorma'>[1]</docidentifier>
750
- <docidentifier>IEC 123</docidentifier>
751
- <docnumber>123</docnumber>
752
- <contributor>
753
- <role type='publisher'/>
754
- <organization>
755
- <name>IEC</name>
756
- </organization>
757
- </contributor>
758
- </bibitem>
759
- </references>
760
- </bibliography>
761
- </standard-document>
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", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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
- it "declines to fetch individual references" do
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", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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:&ndash;]]], footnote:[The standard is in press] _Standard_
1062
1061
  * [[[iso126,(1)ISO 123:--]]] _Standard_
1063
1062
  INPUT
1064
- #{BLANK_HDR}
1065
- <sections>
1066
- </sections><bibliography><references id="_" obligation="informative" normative="true">
1067
- <title>Normative references</title>
1068
- #{NORM_REF_BOILERPLATE}
1069
- <bibitem id="iso123" type="standard">
1070
- <title format="text/plain">Standard</title>
1071
- <docidentifier>ISO 123:—</docidentifier>
1072
- <docnumber>123</docnumber>
1073
- <date type="published">
1074
- <on>–</on>
1075
- </date>
1076
- <contributor>
1077
- <role type="publisher"/>
1078
- <organization>
1079
- <name>ISO</name>
1080
- </organization>
1081
- </contributor>
1082
- </bibitem>
1083
- <bibitem id="iso124" type="standard">
1084
- <title format="text/plain">Standard</title>
1085
- <docidentifier>ISO 124:—</docidentifier>
1086
- <docnumber>124</docnumber>
1087
- <date type="published">
1088
- <on>–</on>
1089
- </date>
1090
- <contributor>
1091
- <role type="publisher"/>
1092
- <organization>
1093
- <name>ISO</name>
1094
- </organization>
1095
- </contributor>
1096
- <note format="text/plain" type="Unpublished-Status">The standard is in press</note>
1097
- </bibitem>
1098
- <bibitem id="iso125" type="standard">
1099
- <title format="text/plain">Standard</title>
1100
- <docidentifier>ISO 125:—</docidentifier>
1101
- <docnumber>125</docnumber>
1102
- <date type="published">
1103
- <on>–</on>
1104
- </date>
1105
- <contributor>
1106
- <role type="publisher"/>
1107
- <organization>
1108
- <name>ISO</name>
1109
- </organization>
1110
- </contributor>
1111
- <note format="text/plain" type="Unpublished-Status">The standard is in press</note>
1112
- </bibitem>
1113
- <bibitem id='iso126' type='standard'>
1114
- <title format='text/plain'>Standard</title>
1115
- <docidentifier type='metanorma'>[1]</docidentifier>
1116
- <docidentifier>ISO 123:—</docidentifier>
1117
- <docnumber>123</docnumber>
1118
- <date type='published'>
1119
- <on>–</on>
1120
- </date>
1121
- <contributor>
1122
- <role type='publisher'/>
1123
- <organization>
1124
- <name>ISO</name>
1125
- </organization>
1126
- </contributor>
1127
- </bibitem>
1128
- </references>
1129
- </bibliography>
1130
- </standard-document>
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", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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
- #{BLANK_HDR}
1146
- <sections>
1147
- </sections><bibliography><references id="_" obligation="informative" normative="true">
1148
- <title>Normative references</title>
1149
- #{NORM_REF_BOILERPLATE}
1150
- <bibitem id="iso123" type="standard">
1151
- <title format="text/plain">Standard</title>
1152
- <docidentifier>ISO 123:1066 (all parts)</docidentifier>
1153
- <docnumber>123</docnumber>
1154
- <date type="published">
1155
- <on>1066</on>
1156
- </date>
1157
- <contributor>
1158
- <role type="publisher"/>
1159
- <organization>
1160
- <name>ISO</name>
1161
- </organization>
1162
- </contributor>
1163
- <extent type="part">
1164
- <referenceFrom>all</referenceFrom>
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
- </bibitem>
1167
- <bibitem id='iso124' type='standard'>
1168
- <title format='text/plain'>Standard</title>
1169
- <docidentifier type='metanorma'>[1]</docidentifier>
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", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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
- #{BLANK_HDR}
1207
- <sections>
1208
- <clause id="_" inline-header="false" obligation="normative">
1209
- <title>Clause 4</title>
1210
- <p id="_">
1211
- <eref type="inline" bibitemid="iso123" citeas="IETF RFC 8341"/>
1212
- </p>
1213
- </clause>
1214
- </sections><bibliography><references id="_" obligation="informative" normative="true">
1215
- <title>Normative references</title>
1216
- #{NORM_REF_BOILERPLATE}
1217
- <bibitem id='iso123' type='standard'>
1218
- <fetched>#{Date.today}</fetched>
1219
- <title format='text/plain' language='en' script='Latn'>Network Configuration Access Control Model</title>
1220
- <uri type='xml'>
1221
- https://raw.githubusercontent.com/relaton/relaton-data-ietf/master/data/reference.RFC.8341.xml
1222
- </uri>
1223
- <uri type='src'>https://www.rfc-editor.org/info/rfc8341</uri>
1224
- <docidentifier type='IETF'>RFC 8341</docidentifier>
1225
- <docidentifier type='rfc-anchor'>RFC8341</docidentifier>
1226
- <docidentifier type='DOI'>10.17487/RFC8341</docidentifier>
1227
- <date type='published'>
1228
- <on>2018-03</on>
1229
- </date>
1230
- <contributor>
1231
- <role type='author'/>
1232
- <person>
1233
- <name>
1234
- <completename language='en'>A. Bierman</completename>
1235
- </name>
1236
- <affiliation>
1237
- <organization>
1238
- <name>Internet Engineering Task Force</name>
1239
- <abbreviation>IETF</abbreviation>
1240
- </organization>
1241
- </affiliation>
1242
- </person>
1243
- </contributor>
1244
- <contributor>
1245
- <role type='author'/>
1246
- <person>
1247
- <name>
1248
- <completename language='en'>M. Bjorklund</completename>
1249
- </name>
1250
- <affiliation>
1251
- <organization>
1252
- <name>Internet Engineering Task Force</name>
1253
- <abbreviation>IETF</abbreviation>
1254
- </organization>
1255
- </affiliation>
1256
- </person>
1257
- </contributor>
1258
- <contributor>
1259
- <role type='publisher'/>
1260
- <organization>
1261
- <name>Internet Engineering Task Force</name>
1262
- <abbreviation>IETF</abbreviation>
1263
- </organization>
1264
- </contributor>
1265
- <language>en</language>
1266
- <script>Latn</script>
1267
- <abstract format='text/plain' language='en' script='Latn'>
1268
- The standardization of network configuration interfaces for use with
1269
- the Network Configuration Protocol (NETCONF) or the RESTCONF protocol
1270
- requires a structured and secure operating environment that promotes
1271
- human usability and multi-vendor interoperability. There is a need for
1272
- standard mechanisms to restrict NETCONF or RESTCONF protocol access
1273
- for particular users to a preconfigured subset of all available
1274
- NETCONF or RESTCONF protocol operations and content. This document
1275
- defines such an access control model.This document obsoletes RFC 6536.
1276
- </abstract>
1277
- <series type='main'>
1278
- <title format='text/plain' language='en' script='Latn'>STD</title>
1279
- <number>91</number>
1280
- </series>
1281
- <series type='main'>
1282
- <title format='text/plain' language='en' script='Latn'>RFC</title>
1283
- <number>8341</number>
1284
- </series>
1285
- <place>Fremont, CA</place>
1286
- </bibitem>
1287
- <bibitem id='iso124' type='standard'>
1288
- <fetched>#{Date.today}</fetched>
1289
- <title format='text/plain' language='en' script='Latn'>Network Configuration Access Control Model</title>
1290
- <uri type='xml'>
1291
- https://raw.githubusercontent.com/relaton/relaton-data-ietf/master/data/reference.RFC.8341.xml
1292
- </uri>
1293
- <uri type='src'>https://www.rfc-editor.org/info/rfc8341</uri>
1294
- <docidentifier type='IETF'>RFC 8341</docidentifier>
1295
- <docidentifier type='metanorma'>[1]</docidentifier>
1296
- <docidentifier type='rfc-anchor'>RFC8341</docidentifier>
1297
- <docidentifier type='DOI'>10.17487/RFC8341</docidentifier>
1298
- <date type='published'>
1299
- <on>2018-03</on>
1300
- </date>
1301
- <contributor>
1302
- <role type='author'/>
1303
- <person>
1304
- <name>
1305
- <completename language='en'>A. Bierman</completename>
1306
- </name>
1307
- <affiliation>
1308
- <organization>
1309
- <name>Internet Engineering Task Force</name>
1310
- <abbreviation>IETF</abbreviation>
1311
- </organization>
1312
- </affiliation>
1313
- </person>
1314
- </contributor>
1315
- <contributor>
1316
- <role type='author'/>
1317
- <person>
1318
- <name>
1319
- <completename language='en'>M. Bjorklund</completename>
1320
- </name>
1321
- <affiliation>
1322
- <organization>
1323
- <name>Internet Engineering Task Force</name>
1324
- <abbreviation>IETF</abbreviation>
1325
- </organization>
1326
- </affiliation>
1327
- </person>
1328
- </contributor>
1329
- <contributor>
1330
- <role type='publisher'/>
1331
- <organization>
1332
- <name>Internet Engineering Task Force</name>
1333
- <abbreviation>IETF</abbreviation>
1334
- </organization>
1335
- </contributor>
1336
- <language>en</language>
1337
- <script>Latn</script>
1338
- <abstract format='text/plain' language='en' script='Latn'>
1339
- The standardization of network configuration interfaces for use with
1340
- the Network Configuration Protocol (NETCONF) or the RESTCONF protocol
1341
- requires a structured and secure operating environment that promotes
1342
- human usability and multi-vendor interoperability. There is a need for
1343
- standard mechanisms to restrict NETCONF or RESTCONF protocol access
1344
- for particular users to a preconfigured subset of all available
1345
- NETCONF or RESTCONF protocol operations and content. This document
1346
- defines such an access control model.This document obsoletes RFC 6536.
1347
- </abstract>
1348
- <series type='main'>
1349
- <title format='text/plain' language='en' script='Latn'>STD</title>
1350
- <number>91</number>
1351
- </series>
1352
- <series type='main'>
1353
- <title format='text/plain' language='en' script='Latn'>RFC</title>
1354
- <number>8341</number>
1355
- </series>
1356
- <place>Fremont, CA</place>
1357
- </bibitem>
1358
- </references>
1359
- </bibliography>
1360
- </standard-document>
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", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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
- #{BLANK_HDR}
1375
- <sections>
1376
-
1377
- </sections><bibliography><references id="_" obligation="informative" normative="true">
1378
- <title>Normative references</title>
1379
- #{NORM_REF_BOILERPLATE}
1380
- <bibitem id="iso123">
1381
- <formattedref format="application/x-isodoc+xml">
1382
- <em>Standard</em>
1383
- </formattedref>
1384
- <docidentifier>XYZ 123:1066 (all parts)</docidentifier>
1385
- <docnumber>123:1066 (all parts)</docnumber>
1386
- </bibitem>
1387
- <bibitem id='iso124'>
1388
- <formattedref format='application/x-isodoc+xml'>
1389
- <em>Standard</em>
1390
- </formattedref>
1391
- <docidentifier type='metanorma'>[1]</docidentifier>
1392
- <docidentifier>XYZ 123:1066 (all parts)</docidentifier>
1393
- <docnumber>123:1066 (all parts)</docnumber>
1394
- </bibitem>
1395
- </references>
1396
- </bibliography>
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", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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
- #{BLANK_HDR}
1414
- <sections>
1415
-
1416
- </sections>
1417
- <bibliography><references id="_" obligation="informative" normative="false">
1418
- <title>Bibliography</title><bibitem id="iso123">
1419
- <formattedref format="application/x-isodoc+xml">
1420
- <em>Standard</em>
1421
- </formattedref>
1422
- <docidentifier type="metanorma">[1]</docidentifier>
1423
- </bibitem><bibitem id="iso124">
1424
- <formattedref format="application/x-isodoc+xml">
1425
- <em>Standard</em>
1426
- </formattedref>
1427
- <docidentifier type="metanorma">[B]</docidentifier>
1428
- </bibitem><bibitem id="iso125">
1429
- <formattedref format="application/x-isodoc+xml">
1430
- <em>Standard</em>
1431
- </formattedref>
1432
- <docidentifier type="metanorma">[3]</docidentifier>
1433
- </bibitem><bibitem id="iso126">
1434
- <formattedref format="application/x-isodoc+xml">
1435
- <em>Standard</em>
1436
- </formattedref>
1437
- <docidentifier type="metanorma">[A1]</docidentifier>
1438
- </bibitem>
1439
- <bibitem id='iso127'>
1440
- <formattedref format='application/x-isodoc+xml'>
1441
- <em>Standard</em>
1442
- </formattedref>
1443
- <docidentifier type='metanorma'>[5]</docidentifier>
1444
- <docidentifier>XYZ 123:1066 (all parts)</docidentifier>
1445
- <docnumber>123:1066 (all parts)</docnumber>
1446
- </bibitem>
1447
- </references>
1448
- </bibliography>
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", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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
- <?xml version="1.0" encoding="UTF-8"?>
1466
- <standard-document xmlns="https://www.metanorma.org/ns/standoc" type="semantic" version="#{Metanorma::Standoc::VERSION}">
1467
- <bibdata type="standard">
1468
- <title language="en" format="text/plain">Document title</title>
1469
- <language>en</language>
1470
- <script>Latn</script>
1471
- <status><stage>published</stage></status>
1472
- <copyright>
1473
- <from>#{Date.today.year}</from>
1474
- </copyright>
1475
- <ext>
1476
- <doctype>article</doctype>
1477
- </ext>
1478
- </bibdata>
1479
- <sections>
1480
-
1481
- </sections><bibliography><references id="_" obligation="informative" normative="true">
1482
- <title>Normative references</title>
1483
- #{NORM_REF_BOILERPLATE}
1484
- <bibitem id="iso123" type="standard">
1485
- <title format="text/plain">Standard</title>
1486
- <docidentifier type="ISO">ISO 123</docidentifier>
1487
- <docnumber>123</docnumber>
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="publisher"/>
1497
+ <role type='publisher'/>
1490
1498
  <organization>
1491
1499
  <name>ISO</name>
1492
1500
  </organization>
1493
1501
  </contributor>
1494
1502
  </bibitem>
1495
- <bibitem id='iso124' type='standard'>
1496
- <title format='text/plain'>Standard</title>
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", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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
- #{BLANK_HDR}
1529
- <sections>
1530
- <clause id='_' type='scope' inline-header='false' obligation='normative'>
1531
- <title>Scope</title>
1532
- <p id='_'>
1533
- <eref type='inline' bibitemid='iso123' citeas='ISO 123'/>
1534
- <eref type='inline' bibitemid='iso123' citeas='ISO 123'>
1535
- <localityStack>
1536
- <locality type='clause'>
1537
- <referenceFrom>1</referenceFrom>
1538
- </locality>
1539
- </localityStack>
1540
- </eref>
1541
- <eref type='inline' bibitemid='iso124' citeas='id'/>
1542
- <eref type='inline' bibitemid='iso124' citeas='id'>
1543
- <localityStack>
1544
- <locality type='clause'>
1545
- <referenceFrom>1</referenceFrom>
1546
- </locality>
1547
- </localityStack>
1548
- </eref>
1549
- </p>
1550
- </clause>
1551
- </sections>
1552
- <bibliography>
1553
- <references id='_' normative='true' obligation='informative'>
1554
- <title>Normative references</title>
1555
- <p id='_'>
1556
- The following documents are referred to in the text in such a way that
1557
- some or all of their content constitutes requirements of this document.
1558
- For dated references, only the edition cited applies. For undated
1559
- references, the latest edition of the referenced document (including any
1560
- amendments) applies.
1561
- </p>
1562
- <bibitem id='iso123'>
1563
- <formattedref format='application/x-isodoc+xml'>
1564
- <em>Standard</em>
1565
- </formattedref>
1566
- <docidentifier type='ISO'>ISO 123</docidentifier>
1567
- <docidentifier type='repository'>ab/ISO 123</docidentifier>
1568
- <docnumber>123</docnumber>
1569
- </bibitem>
1570
- <bibitem id='iso124'>
1571
- <formattedref format='application/x-isodoc+xml'>
1572
- <em>Standard</em>
1573
- </formattedref>
1574
- <docidentifier>id</docidentifier>
1575
- <docidentifier type='repository'>ab/ISO 124</docidentifier>
1576
- </bibitem>
1577
- </references>
1578
- </bibliography>
1579
- </standard-document>
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
- end
1577
+ end
1582
1578
 
1583
- it "processes hyperlink reference, ingest RXL or XML if available" do
1584
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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
- #{BLANK_HDR}
1603
- <sections>
1604
- <clause id='_' type="scope" inline-header='false' obligation='normative'>
1605
- <title>Scope</title>
1606
- <p id='_'>
1607
- <eref type='inline' bibitemid='iso123' citeas='ISO 123 (all parts)'/>
1608
- </p>
1609
- <p id='_'>
1610
- <eref type='inline' bibitemid='iso124' citeas='ISO 124'>
1611
- <localityStack>
1612
- <locality type='clause'>
1613
- <referenceFrom>1</referenceFrom>
1614
- </locality>
1615
- </localityStack>
1616
- </eref>
1617
- </p>
1618
- <p id='_'>
1619
- <eref type='inline' bibitemid='iso123' citeas='ISO 123 (all parts)'>
1620
- <localityStack>
1621
- <locality type='anchor'>
1622
- <referenceFrom>xyz</referenceFrom>
1623
- </locality>
1624
- </localityStack>
1625
- </eref>
1626
- </p>
1627
- <p id='_'>
1628
- <eref type='inline' bibitemid='iso124' citeas='ISO 124'>
1629
- <localityStack>
1630
- <locality type='clause'>
1631
- <referenceFrom>1</referenceFrom>
1632
- </locality>
1633
- <locality type='anchor'>
1634
- <referenceFrom>xyz</referenceFrom>
1635
- </locality>
1636
- </localityStack>
1637
- </eref>
1638
- </p>
1639
- </clause>
1640
- </sections>
1641
- <bibliography>
1642
- <references id='_' normative='true' obligation='informative'>
1643
- <title>Normative references</title>
1644
- <p id='_'>
1645
- The following documents are referred to in the text in such a way that
1646
- some or all of their content constitutes requirements of this document.
1647
- For dated references, only the edition cited applies. For undated
1648
- references, the latest edition of the referenced document (including any
1649
- amendments) applies.
1650
- </p>
1651
- <bibitem id='iso123' type='standard'>
1652
- <fetched>2020-06-12</fetched>
1653
- <title type='title-intro' format='text/plain' language='en' script='Latn'>Rubber latex</title>
1654
- <title type='title-main' format='text/plain' language='en' script='Latn'>Sampling</title>
1655
- <title type='main' format='text/plain' language='en' script='Latn'>Rubber latex – Sampling</title>
1656
- <title type='title-intro' format='text/plain' language='fr' script='Latn'>Latex de caoutchouc</title>
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
- <uri type='src'>https://www.iso.org/standard/23281.html</uri>
1660
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
1661
- <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
1662
- <uri type='citation'>spec/assets/iso123</uri>
1663
- <docidentifier type='ISO'>ISO 123 (all parts)</docidentifier>
1664
- <docnumber>123</docnumber>
1665
- <date type='published'>
1666
- <on>2001</on>
1667
- </date>
1668
- <contributor>
1669
- <role type='publisher'/>
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>ISO</name>
1667
+ <name>International Organization for Standardization</name>
1668
+ <abbreviation>ISO</abbreviation>
1669
+ <uri>www.iso.org</uri>
1735
1670
  </organization>
1736
- </owner>
1737
- </copyright>
1738
- <relation type='obsoletes'>
1739
- <bibitem type='standard'>
1740
- <formattedref format='text/plain'>ISO 123:1985</formattedref>
1741
- </bibitem>
1742
- </relation>
1743
- <place>Geneva</place>
1744
- </bibitem>
1745
- </relation>
1746
- <relation type='instance'>
1747
- <bibitem type='standard'>
1748
- <formattedref format='text/plain'>ISO 123:1985</formattedref>
1749
- </bibitem>
1750
- </relation>
1751
- <relation type='instance'>
1752
- <bibitem type='standard'>
1753
- <formattedref format='text/plain'>ISO 123:1974</formattedref>
1754
- </bibitem>
1755
- </relation>
1756
- <place>Geneva</place>
1757
- </bibitem>
1758
- <bibitem id='iso124'>
1759
- <formattedref format='application/x-isodoc+xml'>
1760
- <em>Standard</em>
1761
- </formattedref>
1762
- <uri type='URI'>a/b</uri>
1763
- <uri type='citation'>a/b</uri>
1764
- <docidentifier type="ISO">ISO 124</docidentifier>
1765
- <docnumber>124</docnumber>
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
- </references>
1768
- </bibliography>
1769
- </standard-document>
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
- end
1767
+ end
1772
1768
 
1773
- it "overrides normative status of bibliographies" do
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", *OPTIONS)))).to be_equivalent_to xmlpp( <<~"OUTPUT")
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
- #{BLANK_HDR}
1789
- <sections> </sections>
1790
- <bibliography>
1791
- <references id='_' normative='false' obligation='informative'>
1792
- <title>Bibliography</title>
1793
- <bibitem type='standard' id='iso123'>
1794
- <uri type='src'>https://www.iso.org/standard/23281.html</uri>
1795
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
1796
- <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
1797
- <date type='published'>
1798
- <on>2001</on>
1799
- </date>
1800
- <contributor>
1801
- <role type='publisher'/>
1802
- <organization>
1803
- <name>International Organization for Standardization</name>
1804
- <abbreviation>ISO</abbreviation>
1805
- <uri>www.iso.org</uri>
1806
- </organization>
1807
- </contributor>
1808
- <edition>3</edition>
1809
- <language>en</language>
1810
- <language>fr</language>
1811
- <script>Latn</script>
1812
- <status>
1813
- <stage>Published</stage>
1814
- </status>
1815
- <copyright>
1816
- <from>2001</from>
1817
- <owner>
1818
- <organization>
1819
- <name>ISO</name>
1820
- <abbreviation/>
1821
- </organization>
1822
- </owner>
1823
- </copyright>
1824
- <relation type='obsoletes'>
1825
- <bibitem type='standard'>
1826
- <formattedref format='text/plain'>ISO 123:1985</formattedref>
1827
- </bibitem>
1828
- </relation>
1829
- <relation type='updates'>
1830
- <bibitem type='standard'>
1831
- <formattedref format='text/plain'>ISO 123:2001</formattedref>
1832
- </bibitem>
1833
- </relation>
1834
- <docidentifier>ISO 123</docidentifier>
1835
- <title>
1836
- <em>Standard</em>
1837
- </title>
1838
- </bibitem>
1839
- </references>
1840
- <references id='_' normative='true' obligation='informative'>
1841
- <title>Normative references</title>
1842
- <p id='_'>
1843
- The following documents are referred to in the text in such a way that
1844
- some or all of their content constitutes requirements of this document.
1845
- For dated references, only the edition cited applies. For undated
1846
- references, the latest edition of the referenced document (including any
1847
- amendments) applies.
1848
- </p>
1849
- <bibitem type='standard' id='iso124'>
1850
- <uri type='src'>https://www.iso.org/standard/23281.html</uri>
1851
- <uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
1852
- <uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
1853
- <date type='published'>
1854
- <on>2001</on>
1855
- </date>
1856
- <contributor>
1857
- <role type='publisher'/>
1858
- <organization>
1859
- <name>International Organization for Standardization</name>
1860
- <abbreviation>ISO</abbreviation>
1861
- <uri>www.iso.org</uri>
1862
- </organization>
1863
- </contributor>
1864
- <edition>3</edition>
1865
- <language>en</language>
1866
- <language>fr</language>
1867
- <script>Latn</script>
1868
- <status>
1869
- <stage>Published</stage>
1870
- </status>
1871
- <copyright>
1872
- <from>2001</from>
1873
- <owner>
1874
- <organization>
1875
- <name>ISO</name>
1876
- <abbreviation/>
1877
- </organization>
1878
- </owner>
1879
- </copyright>
1880
- <relation type='obsoletes'>
1881
- <bibitem type='standard'>
1882
- <formattedref format='text/plain'>ISO 123:1985</formattedref>
1883
- </bibitem>
1884
- </relation>
1885
- <relation type='updates'>
1886
- <bibitem type='standard'>
1887
- <formattedref format='text/plain'>ISO 123:2001</formattedref>
1888
- </bibitem>
1889
- </relation>
1890
- <docidentifier>ISO 123</docidentifier>
1891
- <docidentifier type='metanorma'>[1]</docidentifier>
1892
- <title>
1893
- <em>Standard</em>
1894
- </title>
1895
- </bibitem>
1896
- </references>
1897
- </bibliography>
1898
- </standard-document>
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
- end
1896
+ end
1901
1897
 
1902
- private
1898
+ private
1903
1899
 
1904
- def mock_isobib_get_123
1905
- expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 123", nil, {}) do
1906
- IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
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
- OUTPUT
1909
- end
1904
+ OUTPUT
1910
1905
  end
1906
+ end
1911
1907
 
1912
- def mock_isobib_get_123_no_docid(n)
1913
- expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 123", nil, {:lang=>"en", :title=>"<em>Standard</em>", usrlbl: nil}) do
1914
- RelatonBib::XMLParser.from_xml(<<~"OUTPUT")
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
- OUTPUT
1917
- end.exactly(n).times
1918
- end
1912
+ OUTPUT
1913
+ end.exactly(n).times
1914
+ end
1919
1915
 
1920
- def mock_isobib_get_123_no_docid_lbl(n)
1921
- expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 123", nil, {:lang=>"en", :title=>"<em>Standard</em>", usrlbl: "(1)"}) do
1922
- RelatonBib::XMLParser.from_xml(<<~"OUTPUT")
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
- OUTPUT
1925
- end.exactly(n).times
1926
- end
1920
+ OUTPUT
1921
+ end.exactly(n).times
1922
+ end
1927
1923
 
1928
- def mock_isobib_get_124
1929
- expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO 124", "2014", {}) do
1930
- IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
1931
- <bibitem type="standard" id="iso124">
1932
- <title format="text/plain" language="en" script="Latn">Latex, rubber -- Determination of total solids content</title>
1933
- <title format="text/plain" language="fr" script="Latn">Latex de caoutchouc -- Détermination des matières solides totales</title>
1934
- <uri type="src">https://www.iso.org/standard/61884.html</uri>
1935
- <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:61884:en</uri>
1936
- <uri type="rss">https://www.iso.org/contents/data/standard/06/18/61884.detail.rss</uri>
1937
- <docidentifier>ISO 124</docidentifier>
1938
- <date type="published">
1939
- <on>2014</on>
1940
- </date>
1941
- <contributor>
1942
- <role type="publisher"/>
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>ISO</name>
1960
- <abbreviation/>
1940
+ <name>International Organization for Standardization</name>
1941
+ <abbreviation>ISO</abbreviation>
1942
+ <uri>www.iso.org</uri>
1961
1943
  </organization>
1962
- </owner>
1963
- </copyright>
1964
- <relation type="obsoletes">
1965
- <bibitem type="standard">
1966
- <formattedref format="text/plain">ISO 124:2011</formattedref>
1967
- </bibitem>
1968
- </relation>
1969
- <ics>
1970
- <code>83.040.10</code>
1971
- <text>Latex and raw rubber</text>
1972
- </ics>
1973
- </bibitem>
1974
- OUTPUT
1975
- end
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
- def mock_isobib_get_iec12382
1979
- expect(RelatonIso::IsoBibliography).to receive(:get).with("ISO/IEC TR 12382", "1992", {}) do
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
- <bibitem type="standard" id="iso123">
1982
- <title format="text/plain" language="en" script="Latn">Permuted index of the vocabulary of information technology</title>
1983
- <title format="text/plain" language="fr" script="Latn">Index permuté du vocabulaire des technologies de l'information</title>
1984
- <uri type="src">https://www.iso.org/standard/21071.html</uri>
1985
- <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:21071:en</uri>
1986
- <uri type="rss">https://www.iso.org/contents/data/standard/02/10/21071.detail.rss</uri>
1987
- <docidentifier>ISO/IEC 12382</docidentifier>
1988
- <date type="published">
1989
- <on>1992</on>
1990
- </date>
1991
- <contributor>
1992
- <role type="publisher"/>
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>ISO/IEC</name>
2018
- <abbreviation/>
1990
+ <name>International Organization for Standardization</name>
1991
+ <abbreviation>ISO</abbreviation>
1992
+ <uri>www.iso.org</uri>
2019
1993
  </organization>
2020
- </owner>
2021
- </copyright>
2022
- <relation type="updates">
2023
- <bibitem type="standard">
2024
- <formattedref format="text/plain">ISO/IEC TR 12382:1992</formattedref>
2025
- </bibitem>
2026
- </relation>
2027
- <ics>
2028
- <code>35.020</code>
2029
- <text>Information technology (IT) in general</text>
2030
- </ics>
2031
- <ics>
2032
- <code>01.040.35</code>
2033
- <text>Information technology (Vocabularies)</text>
2034
- </ics>
2035
- </bibitem>
2036
- OUTPUT
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
- def mock_rfcbib_get_rfc8341
2041
- expect(IETFBib::RfcBibliography).to receive(:get).with("RFC 8341", nil, {}) do
2042
- IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
2043
- <bibitem id="RFC8341">
2044
- <title format="text/plain" language="en" script="Latn">Network Configuration Access Control Model</title>
2045
- <docidentifier type="DOI">10.17487/RFC8341</docidentifier>
2046
- <docidentifier type="IETF">RFC 8341</docidentifier>
2047
- <date type="published">
2048
- <on>2018</on>
2049
- </date>
2050
- <status>published</status>
2051
- </bibitem>
2052
- OUTPUT
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