metanorma-iso 2.2.2 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/lib/isodoc/iso/html/header-dis.html +111 -29
  3. data/lib/isodoc/iso/html/isodoc-dis.css +65 -64
  4. data/lib/isodoc/iso/html/isodoc-dis.scss +65 -64
  5. data/lib/isodoc/iso/html/style-human.css +7 -2
  6. data/lib/isodoc/iso/html/style-human.scss +0 -1
  7. data/lib/isodoc/iso/html/style-iso.css +7 -2
  8. data/lib/isodoc/iso/html/style-iso.scss +0 -1
  9. data/lib/isodoc/iso/html/wordstyle-dis.css +160 -4
  10. data/lib/isodoc/iso/html/wordstyle-dis.scss +154 -4
  11. data/lib/isodoc/iso/html/wordstyle.css +150 -0
  12. data/lib/isodoc/iso/html/wordstyle.scss +144 -0
  13. data/lib/isodoc/iso/i18n-en.yaml +4 -4
  14. data/lib/isodoc/iso/iso.amendment.xsl +1649 -1199
  15. data/lib/isodoc/iso/iso.international-standard.xsl +1649 -1199
  16. data/lib/isodoc/iso/presentation_bibdata.rb +13 -9
  17. data/lib/isodoc/iso/presentation_xml_convert.rb +5 -3
  18. data/lib/isodoc/iso/word_convert.rb +6 -4
  19. data/lib/isodoc/iso/word_dis_cleanup.rb +30 -8
  20. data/lib/isodoc/iso/word_dis_convert.rb +5 -2
  21. data/lib/metanorma/iso/base.rb +2 -1
  22. data/lib/metanorma/iso/biblio.rng +5 -0
  23. data/lib/metanorma/iso/isodoc.rng +47 -13
  24. data/lib/metanorma/iso/validate.rb +2 -2
  25. data/lib/metanorma/iso/version.rb +1 -1
  26. data/metanorma-iso.gemspec +5 -2
  27. metadata +4 -87
  28. data/.github/workflows/automerge.yml +0 -31
  29. data/.github/workflows/rake.yml +0 -15
  30. data/.github/workflows/release.yml +0 -24
  31. data/.github/workflows/ubuntu.yml +0 -41
  32. data/Rakefile +0 -8
  33. data/bin/rspec +0 -17
  34. data/spec/assets/header.html +0 -7
  35. data/spec/assets/html.css +0 -2
  36. data/spec/assets/htmlcover.html +0 -4
  37. data/spec/assets/htmlintro.html +0 -5
  38. data/spec/assets/i18n.yaml +0 -2
  39. data/spec/assets/iso.adoc +0 -10
  40. data/spec/assets/iso.headless.html +0 -33
  41. data/spec/assets/iso.xml +0 -71
  42. data/spec/assets/rice_image1.png +0 -0
  43. data/spec/assets/scripts.html +0 -3
  44. data/spec/assets/std.css +0 -2
  45. data/spec/assets/word.css +0 -2
  46. data/spec/assets/wordcover.html +0 -3
  47. data/spec/assets/wordintro.html +0 -4
  48. data/spec/examples/103_01_02.html +0 -247
  49. data/spec/examples/english.yaml +0 -69
  50. data/spec/examples/iso_123_.xml +0 -45
  51. data/spec/examples/iso_123_all_parts.xml +0 -45
  52. data/spec/examples/iso_123_no_year_note.xml +0 -46
  53. data/spec/examples/iso_124_.xml +0 -41
  54. data/spec/examples/iso_216_.xml +0 -47
  55. data/spec/examples/iso_iec_12382_.xml +0 -48
  56. data/spec/examples/rice.adoc +0 -714
  57. data/spec/examples/rice.preview.html +0 -1870
  58. data/spec/examples/rice.sh +0 -4
  59. data/spec/examples/rice_img/1000-1_ed2amd3fig1a.png +0 -0
  60. data/spec/examples/rice_img/1000-1_ed2amd3fig1b.png +0 -0
  61. data/spec/examples/rice_img/1000-1_ed2amd3fig2.png +0 -0
  62. data/spec/examples/rice_img/1000-1_ed2amd3fig3.png +0 -0
  63. data/spec/examples/rice_img/1000-1_ed2amd3fig4.png +0 -0
  64. data/spec/examples/rice_img/1000-1_ed2amd3fig5_f.png +0 -0
  65. data/spec/examples/rice_img/1000-1_ed2amd3figA.png +0 -0
  66. data/spec/examples/rice_img/1000-1_ed2amd3figA1.png +0 -0
  67. data/spec/examples/rice_img/1000-1_ed2amd3figA2.png +0 -0
  68. data/spec/examples/rice_img/1000-1_ed2amd3figTab1.png +0 -0
  69. data/spec/examples/rice_img/1000-1_ed2amd3figTab2.png +0 -0
  70. data/spec/examples/rice_img/1001_ed2amd3fig1.png +0 -0
  71. data/spec/examples/rice_img/ISO_1213_1.png +0 -0
  72. data/spec/examples/rice_img/SL1000-1_ed2amd3fig1.png +0 -0
  73. data/spec/examples/rice_img/rice_image1.png +0 -0
  74. data/spec/examples/rice_img/rice_image2.png +0 -0
  75. data/spec/examples/rice_img/rice_image3_1.png +0 -0
  76. data/spec/examples/rice_img/rice_image3_2.png +0 -0
  77. data/spec/examples/rice_img/rice_image3_3.png +0 -0
  78. data/spec/isodoc/amd_spec.rb +0 -986
  79. data/spec/isodoc/blocks_spec.rb +0 -1174
  80. data/spec/isodoc/i18n_spec.rb +0 -1579
  81. data/spec/isodoc/inline_spec.rb +0 -1060
  82. data/spec/isodoc/iso_spec.rb +0 -255
  83. data/spec/isodoc/metadata_spec.rb +0 -701
  84. data/spec/isodoc/postproc_spec.rb +0 -1089
  85. data/spec/isodoc/ref_spec.rb +0 -439
  86. data/spec/isodoc/section_spec.rb +0 -998
  87. data/spec/isodoc/table_spec.rb +0 -420
  88. data/spec/isodoc/terms_spec.rb +0 -314
  89. data/spec/isodoc/word_dis_spec.rb +0 -2064
  90. data/spec/isodoc/xref_spec.rb +0 -1747
  91. data/spec/metanorma/amd_spec.rb +0 -724
  92. data/spec/metanorma/base_spec.rb +0 -1384
  93. data/spec/metanorma/blank_spec.rb +0 -38
  94. data/spec/metanorma/blocks_spec.rb +0 -624
  95. data/spec/metanorma/cleanup_spec.rb +0 -1645
  96. data/spec/metanorma/inline_spec.rb +0 -203
  97. data/spec/metanorma/lists_spec.rb +0 -197
  98. data/spec/metanorma/macros_spec.rb +0 -99
  99. data/spec/metanorma/processor_spec.rb +0 -161
  100. data/spec/metanorma/refs_spec.rb +0 -672
  101. data/spec/metanorma/section_spec.rb +0 -492
  102. data/spec/metanorma/table_spec.rb +0 -329
  103. data/spec/metanorma/validate_spec.rb +0 -2153
  104. data/spec/relaton/render_spec.rb +0 -568
  105. data/spec/requirements/requirement_components_spec.rb +0 -610
  106. data/spec/requirements/requirements_spec.rb +0 -1596
  107. data/spec/requirements/xref_spec.rb +0 -1211
  108. data/spec/spec_helper.rb +0 -313
  109. data/spec/vcr_cassettes/docrels.yml +0 -385
  110. data/spec/vcr_cassettes/withdrawn_iso.yml +0 -295
@@ -1,439 +0,0 @@
1
- require "spec_helper"
2
-
3
- RSpec.describe IsoDoc do
4
- it "processes IsoXML bibliographies" do
5
- input = <<~INPUT
6
- <iso-standard xmlns="http://riboseinc.com/isoxml">
7
- <bibdata>
8
- <language>en</language>
9
- </bibdata>
10
- <preface>
11
- <foreword>
12
- <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">
13
- <eref bibitemid="ISO712"/>
14
- <eref bibitemid="ISBN"/>
15
- <eref bibitemid="ISSN"/>
16
- <eref bibitemid="ISO16634"/>
17
- <eref bibitemid="ref1"/>
18
- <eref bibitemid="ref10"/>
19
- <eref bibitemid="ref12"/>
20
- </p>
21
- </foreword>
22
- </preface>
23
- <bibliography>
24
- <references id="_normative_references" normative="true" obligation="informative">
25
- <title>Normative References</title>
26
- <p>The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
27
- <bibitem id="ISO712" type="standard">
28
- <title format="text/plain">Cereals or cereal products</title>
29
- <title format="text/plain" type="main">Cereals and cereal products</title>
30
- <docidentifier type="ISO">ISO 712</docidentifier>
31
- <contributor>
32
- <role type="publisher"/>
33
- <organization>
34
- <name>International Organization for Standardization</name>
35
- </organization>
36
- </contributor>
37
- </bibitem>
38
- <bibitem id="ISO16634" type="standard">
39
- <title format="text/plain" language="x">Cereals, pulses, milled cereal products, xxxx, oilseeds and animal feeding stuffs</title>
40
- <title format="text/plain" language="en">Cereals, pulses, milled cereal products, oilseeds and animal feeding stuffs</title>
41
- <docidentifier type="ISO">ISO 16634:-- (all parts)</docidentifier>
42
- <date type="published">
43
- <on>--</on>
44
- </date>
45
- <contributor>
46
- <role type="publisher"/>
47
- <organization>
48
- <abbreviation>ISO</abbreviation>
49
- </organization>
50
- </contributor>
51
- <note format="text/plain" reference="1" type="Unpublished-Status">Under preparation. (Stage at the time of publication ISO/DIS 16634)</note>
52
- <extent type="part">
53
- <referenceFrom>all</referenceFrom>
54
- </extent>
55
- </bibitem>
56
- <bibitem id="ISO20483" type="standard">
57
- <title format="text/plain">Cereals and pulses</title>
58
- <docidentifier type="ISO">ISO 20483:2013-2014</docidentifier>
59
- <date type="published">
60
- <from>2013</from>
61
- <to>2014</to>
62
- </date>
63
- <contributor>
64
- <role type="publisher"/>
65
- <organization>
66
- <name>International Organization for Standardization</name>
67
- </organization>
68
- </contributor>
69
- </bibitem>
70
- <bibitem id="ref1">
71
- <formattedref format="application/x-isodoc+xml">
72
- <smallcap>Standard No I.C.C 167</smallcap> .
73
-
74
- <em>Determination of the protein content in cereal and cereal products for food and animal feeding stuffs according to the Dumas combustion method</em>
75
- (see
76
-
77
- <link target="http://www.icc.or.at"/>
78
- )</formattedref>
79
- <docidentifier type="ICC">167</docidentifier>
80
- </bibitem>
81
- <note>
82
- <p>This is an annotation of ISO 20483:2013-2014</p>
83
- </note>
84
- </references>
85
- <references id="_bibliography" normative="false" obligation="informative">
86
- <title>Bibliography</title>
87
- <bibitem id="ISBN" type="book">
88
- <title format="text/plain">Chemicals for analytical laboratory use</title>
89
- <docidentifier type="ISBN">ISBN</docidentifier>
90
- <docidentifier type="metanorma">[1]</docidentifier>
91
- <contributor>
92
- <role type="publisher"/>
93
- <organization>
94
- <abbreviation>ISBN</abbreviation>
95
- </organization>
96
- </contributor>
97
- </bibitem>
98
- <bibitem id="ISSN" type="journal">
99
- <title format="text/plain">Instruments for analytical laboratory use</title>
100
- <docidentifier type="ISSN">ISSN</docidentifier>
101
- <docidentifier type="metanorma">[2]</docidentifier>
102
- <contributor>
103
- <role type="publisher"/>
104
- <organization>
105
- <abbreviation>ISSN</abbreviation>
106
- </organization>
107
- </contributor>
108
- </bibitem>
109
- <note>
110
- <p>This is an annotation of document ISSN.</p>
111
- </note>
112
- <note>
113
- <p>This is another annotation of document ISSN.</p>
114
- </note>
115
- <bibitem id="ISO3696" type="standard">
116
- <title format="text/plain">Water for analytical laboratory use</title>
117
- <docidentifier type="ISO">ISO 3696</docidentifier>
118
- <contributor>
119
- <role type="publisher"/>
120
- <organization>
121
- <abbreviation>ISO</abbreviation>
122
- </organization>
123
- </contributor>
124
- </bibitem>
125
- <bibitem id="ref10">
126
- <formattedref format="application/x-isodoc+xml">
127
- <smallcap>Standard No I.C.C 167</smallcap> .
128
-
129
- <em>Determination of the protein content in cereal and cereal products for food and animal feeding stuffs according to the Dumas combustion method</em>
130
- (see
131
-
132
- <link target="http://www.icc.or.at"/>
133
- )</formattedref>
134
- <docidentifier type="metanorma">[10]</docidentifier>
135
- </bibitem>
136
- <bibitem id="ref11">
137
- <title>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</title>
138
- <docidentifier type="IETF">RFC 10</docidentifier>
139
- </bibitem>
140
- <bibitem id="ref12">
141
- <formattedref format="application/x-isodoc+xml">CitationWorks. 2019.
142
-
143
- <em>How to cite a reference</em>
144
- .</formattedref>
145
- <docidentifier type="metanorma">[Citn]</docidentifier>
146
- <docidentifier type="IETF">RFC 20</docidentifier>
147
- </bibitem>
148
- </references>
149
- </bibliography>
150
- </iso-standard>
151
- INPUT
152
- presxml = <<~OUTPUT
153
- <iso-standard type="presentation" xmlns="http://riboseinc.com/isoxml">
154
- <bibdata>
155
- <language current="true">en</language>
156
- </bibdata>
157
- <preface>
158
- <foreword displayorder="1">
159
- <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">
160
- <eref bibitemid="ISO712">ISO 712</eref>
161
- <eref bibitemid="ISBN">[1]</eref>
162
- <eref bibitemid="ISSN">[2]</eref>
163
- <eref bibitemid="ISO16634">ISO 16634:--</eref>
164
- <eref bibitemid="ref1">ICC 167</eref>
165
- <eref bibitemid="ref10">[4]</eref>
166
- <eref bibitemid="ref12">Citn</eref>
167
- </p>
168
- </foreword>
169
- </preface>
170
- <bibliography>
171
- <references id="_normative_references" normative="true" obligation="informative" displayorder="2">
172
- <title depth="1">1<tab/>Normative References</title>
173
- <p>The following documents are referred to in the text in such a way that
174
- some or all of their content constitutes requirements of this document.
175
- For dated references, only the edition cited applies. For undated
176
- references, the latest edition of the referenced document (including any
177
- amendments) applies.
178
- </p>
179
- <bibitem id="ISO712" type="standard">
180
- <formattedref><em><span class="stddocTitle">Cereals and cereal products</span></em></formattedref>
181
- <docidentifier type="ISO">ISO 712</docidentifier>
182
- </bibitem>
183
- <bibitem id="ISO16634" type="standard">
184
- <formattedref><em><span class="stddocTitle">Cereals, pulses, milled cereal products, oilseeds and animal feeding stuffs</span></em></formattedref>
185
- <docidentifier type="ISO">ISO 16634:-- (all parts)</docidentifier>
186
- <note format="text/plain" reference="1" type="Unpublished-Status">Under preparation. (Stage at the time of publication ISO/DIS 16634)</note>
187
- </bibitem>
188
- <bibitem id="ISO20483" type="standard">
189
- <formattedref><em><span class="stddocTitle">Cereals and pulses</span></em></formattedref>
190
- <docidentifier type="ISO">ISO 20483:2013-2014</docidentifier>
191
- </bibitem>
192
- <bibitem id="ref1">
193
- <formattedref format="application/x-isodoc+xml">
194
- <smallcap>Standard No I.C.C 167</smallcap> .
195
-
196
- <em>Determination of the protein content in cereal and cereal products
197
- for food and animal feeding stuffs according to the Dumas combustion
198
- method</em> (see
199
-
200
- <link target="http://www.icc.or.at"/> ) [ICC 167]
201
- </formattedref>
202
- <docidentifier type="ICC">ICC 167</docidentifier>
203
- </bibitem>
204
- <note>
205
- <name>NOTE</name>
206
- <p>This is an annotation of ISO 20483:2013-2014</p>
207
- </note>
208
- </references>
209
- <references id="_bibliography" normative="false" obligation="informative" displayorder="3">
210
- <title depth="1">Bibliography</title>
211
- <bibitem id="ISBN" type="book">
212
- <formattedref><em>Chemicals for analytical laboratory use</em>. n.p.: n.d. </formattedref>
213
- <docidentifier type="metanorma-ordinal">[1]</docidentifier>
214
- <docidentifier type="ISBN">ISBN</docidentifier>
215
- </bibitem>
216
- <bibitem id="ISSN" type="journal">
217
- <formattedref><em>Instruments for analytical laboratory use</em>. n.d.</formattedref>
218
- <docidentifier type="metanorma-ordinal">[2]</docidentifier>
219
- <docidentifier type="ISSN">ISSN</docidentifier>
220
- </bibitem>
221
- <note>
222
- <name>NOTE</name>
223
- <p>This is an annotation of document ISSN.</p>
224
- </note>
225
- <note>
226
- <name>NOTE</name>
227
- <p>This is another annotation of document ISSN.</p>
228
- </note>
229
- <bibitem id="ISO3696" type="standard">
230
- <formattedref><em><span class='stddocTitle'>Water for analytical laboratory use</span></em></formattedref>
231
- <docidentifier type='metanorma-ordinal'>[3]</docidentifier>
232
- <docidentifier type="ISO">ISO 3696</docidentifier>
233
- </bibitem>
234
- <bibitem id="ref10">
235
- <formattedref format="application/x-isodoc+xml">
236
- <smallcap>Standard No I.C.C 167</smallcap> .
237
-
238
- <em>Determination of the protein content in cereal and cereal products
239
- for food and animal feeding stuffs according to the Dumas combustion
240
- method</em> (see
241
-
242
- <link target="http://www.icc.or.at"/>
243
- )</formattedref>
244
- <docidentifier type="metanorma-ordinal">[4]</docidentifier>
245
- </bibitem>
246
- <bibitem id="ref11">
247
- <formattedref><em><span class="stddocTitle">Internet Calendaring and Scheduling Core Object Specification (iCalendar)</span></em></formattedref>
248
- <docidentifier type='metanorma-ordinal'>[5]</docidentifier>
249
- <docidentifier type="IETF">IETF RFC 10</docidentifier>
250
- </bibitem>
251
- <bibitem id="ref12">
252
- <formattedref format="application/x-isodoc+xml">CitationWorks. 2019.
253
- <em>How to cite a reference</em>. [IETF RFC 20]</formattedref>
254
- <docidentifier type="metanorma">[Citn]</docidentifier>
255
- <docidentifier type="IETF">IETF RFC 20</docidentifier>
256
- </bibitem>
257
- </references>
258
- </bibliography>
259
- </iso-standard>
260
- OUTPUT
261
-
262
- html = <<~OUTPUT
263
- #{HTML_HDR}
264
- <br/>
265
- <div>
266
- <h1 class='ForewordTitle'>Foreword</h1>
267
- <p id='_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f'>
268
- <a href='#ISO712'>ISO 712</a>
269
- <a href='#ISBN'>[1]</a>
270
- <a href='#ISSN'>[2]</a>
271
- <a href='#ISO16634'>ISO 16634:--</a>
272
- <a href='#ref1'>ICC 167</a>
273
- <a href='#ref10'>[4]</a>
274
- <a href='#ref12'>Citn</a>
275
- </p>
276
- </div>
277
- <p class='zzSTDTitle1'/>
278
- <div>
279
- <h1>1  Normative References</h1>
280
- <p>
281
- The following documents are referred to in the text in such a way that
282
- some or all of their content constitutes requirements of this
283
- document. For dated references, only the edition cited applies. For
284
- undated references, the latest edition of the referenced document
285
- (including any amendments) applies.
286
- </p>
287
- <p id='ISO712' class='NormRef'>
288
- ISO 712,
289
- <i>Cereals and cereal products</i>
290
- </p>
291
- <p id='ISO16634' class='NormRef'>
292
- ISO 16634:-- (all parts)
293
- <a class='FootnoteRef' href='#fn:1'>
294
- <sup>1</sup>
295
- </a>
296
- ,
297
- <i>Cereals, pulses, milled cereal products, oilseeds and animal feeding stuffs</i>
298
- </p>
299
- <p id='ISO20483' class='NormRef'>
300
- ISO 20483:2013-2014,
301
- <i>Cereals and pulses</i>
302
- </p>
303
- <p id='ref1' class='NormRef'>
304
- ICC 167,
305
- <span style='font-variant:small-caps;'>Standard No I.C.C 167</span>
306
- .
307
- <i>
308
- Determination of the protein content in cereal and cereal products
309
- for food and animal feeding stuffs according to the Dumas combustion
310
- method
311
- </i>
312
- (see
313
- <a href='http://www.icc.or.at'>http://www.icc.or.at</a>
314
- ) [ICC 167]
315
- </p>
316
- <div class='Note'>
317
- <p>
318
- <span class='note_label'>NOTE</span>
319
-   This is an annotation of ISO 20483:2013-2014
320
- </p>
321
- </div>
322
- </div>
323
- <br/>
324
- <div>
325
- <h1 class='Section3'>Bibliography</h1>
326
- <p id='ISBN' class='Biblio'>
327
- [1] 
328
- <i>Chemicals for analytical laboratory use</i>
329
- . n.p.: n.d.
330
- </p>
331
- <p id='ISSN' class='Biblio'>
332
- [2] 
333
- <i>Instruments for analytical laboratory use</i>
334
- . n.d.
335
- </p>
336
- <div class='Note'>
337
- <p>
338
- <span class='note_label'>NOTE</span>
339
-   This is an annotation of document ISSN.
340
- </p>
341
- </div>
342
- <div class='Note'>
343
- <p>
344
- <span class='note_label'>NOTE</span>
345
-   This is another annotation of document ISSN.
346
- </p>
347
- </div>
348
- <p id='ISO3696' class='Biblio'>
349
- [3]  ISO 3696,
350
- <i>Water for analytical laboratory use</i>
351
- </p>
352
- <p id='ref10' class='Biblio'>
353
- [4] 
354
- <span style='font-variant:small-caps;'>Standard No I.C.C 167</span>
355
- .
356
- <i>
357
- Determination of the protein content in cereal and cereal products
358
- for food and animal feeding stuffs according to the Dumas combustion
359
- method
360
- </i>
361
- (see
362
- <a href='http://www.icc.or.at'>http://www.icc.or.at</a>
363
- )
364
- </p>
365
- <p id='ref11' class='Biblio'>
366
- [5]  IETF RFC 10,
367
- <i>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</i>
368
- </p>
369
- <p id='ref12' class='Biblio'>
370
- Citn  IETF RFC 20, CitationWorks. 2019.
371
- <i>How to cite a reference</i>
372
- . [IETF RFC 20]
373
- </p>
374
- </div>
375
- <aside id='fn:1' class='footnote'>
376
- <p>Under preparation. (Stage at the time of publication ISO/DIS 16634)</p>
377
- </aside>
378
- </div>
379
- </body>
380
- </html>
381
- OUTPUT
382
- expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({})
383
- .convert("test", input, true))
384
- .sub(%r{<localized-strings>.*</localized-strings>}m, ""))
385
- .to be_equivalent_to xmlpp(presxml)
386
- expect(xmlpp(IsoDoc::Iso::HtmlConvert.new({})
387
- .convert("test", presxml, true)))
388
- .to be_equivalent_to xmlpp(html)
389
- end
390
-
391
- it "processes websites" do
392
- input = <<~INPUT
393
- <iso-standard xmlns="http://riboseinc.com/isoxml">
394
- <bibdata>
395
- <language>en</language>
396
- </bibdata>
397
- <references normative="false">
398
- <title>Bibliography</title>
399
- <bibitem id="ignf" type="website">
400
- <fetched>2022-05-06</fetched>
401
- <title type="title-main" format="text/plain">IGNF. (IGN France) Registry</title>
402
- <title type="main" format="text/plain">IGNF. (IGN France) Registry</title>
403
- <uri>https://registre.ign.fr/ign/IGNF/</uri>
404
- <docidentifier type="metanorma">2</docidentifier>
405
- </bibitem>
406
- </references>
407
- </iso-standard>
408
- INPUT
409
- output = <<~OUTPUT
410
- <iso-standard xmlns='http://riboseinc.com/isoxml' type='presentation'>
411
- <bibdata>
412
- <language current='true'>en</language>
413
- </bibdata>
414
-
415
- <references normative='false'>
416
- <title depth='1'>Bibliography</title>
417
- <bibitem id='ignf' type='website'>
418
- <formattedref>
419
- <em>
420
- <span class='stddocTitle'>IGNF. (IGN France) Registry</span>
421
- </em>
422
- [website]. n.d. Available from:
423
- <span class='biburl'>
424
- <link target='https://registre.ign.fr/ign/IGNF/'>https://registre.ign.fr/ign/IGNF/</link>
425
- </span>
426
- .
427
- </formattedref>
428
- <uri>https://registre.ign.fr/ign/IGNF/</uri>
429
- <docidentifier type='metanorma-ordinal'>[1]</docidentifier>
430
- </bibitem>
431
- </references>
432
- </iso-standard>
433
- OUTPUT
434
- expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({})
435
- .convert("test", input, true))
436
- .sub(%r{<localized-strings>.*</localized-strings>}m, ""))
437
- .to be_equivalent_to xmlpp(output)
438
- end
439
- end