metanorma-iso 2.2.1 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) 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 +2 -3
  6. data/lib/isodoc/iso/html/style-human.scss +0 -1
  7. data/lib/isodoc/iso/html/style-iso.css +2 -3
  8. data/lib/isodoc/iso/html/style-iso.scss +0 -1
  9. data/lib/isodoc/iso/html/wordstyle-dis.css +10 -4
  10. data/lib/isodoc/iso/html/wordstyle-dis.scss +10 -4
  11. data/lib/isodoc/iso/i18n-en.yaml +13 -8
  12. data/lib/isodoc/iso/i18n-fr.yaml +9 -3
  13. data/lib/isodoc/iso/i18n-ru.yaml +9 -2
  14. data/lib/isodoc/iso/i18n-zh-Hans.yaml +1 -2
  15. data/lib/isodoc/iso/iso.amendment.xsl +226 -40
  16. data/lib/isodoc/iso/iso.international-standard.xsl +226 -40
  17. data/lib/isodoc/iso/presentation_bibdata.rb +13 -9
  18. data/lib/isodoc/iso/presentation_xml_convert.rb +5 -3
  19. data/lib/isodoc/iso/presentation_xref.rb +10 -7
  20. data/lib/isodoc/iso/sections.rb +1 -1
  21. data/lib/isodoc/iso/word_convert.rb +6 -4
  22. data/lib/isodoc/iso/word_dis_cleanup.rb +24 -3
  23. data/lib/isodoc/iso/word_dis_convert.rb +4 -1
  24. data/lib/metanorma/iso/base.rb +2 -1
  25. data/lib/metanorma/iso/basicdoc.rng +0 -27
  26. data/lib/metanorma/iso/biblio-standoc.rng +164 -0
  27. data/lib/metanorma/iso/biblio.rng +50 -18
  28. data/lib/metanorma/iso/isodoc.rng +68 -206
  29. data/lib/metanorma/iso/isostandard-amd.rng +3 -54
  30. data/lib/metanorma/iso/isostandard-compile.rng +7 -0
  31. data/lib/metanorma/iso/isostandard.rng +1 -195
  32. data/lib/metanorma/iso/relaton-iso.rng +225 -0
  33. data/lib/metanorma/iso/validate.rb +6 -6
  34. data/lib/metanorma/iso/version.rb +1 -1
  35. data/lib/metanorma/requirements/modspec.rb +22 -38
  36. data/metanorma-iso.gemspec +5 -2
  37. metadata +7 -86
  38. data/.github/workflows/rake.yml +0 -15
  39. data/.github/workflows/release.yml +0 -24
  40. data/.github/workflows/ubuntu.yml +0 -41
  41. data/Rakefile +0 -8
  42. data/bin/rspec +0 -17
  43. data/spec/assets/header.html +0 -7
  44. data/spec/assets/html.css +0 -2
  45. data/spec/assets/htmlcover.html +0 -4
  46. data/spec/assets/htmlintro.html +0 -5
  47. data/spec/assets/i18n.yaml +0 -2
  48. data/spec/assets/iso.adoc +0 -10
  49. data/spec/assets/iso.headless.html +0 -33
  50. data/spec/assets/iso.xml +0 -71
  51. data/spec/assets/rice_image1.png +0 -0
  52. data/spec/assets/scripts.html +0 -3
  53. data/spec/assets/std.css +0 -2
  54. data/spec/assets/word.css +0 -2
  55. data/spec/assets/wordcover.html +0 -3
  56. data/spec/assets/wordintro.html +0 -4
  57. data/spec/examples/103_01_02.html +0 -247
  58. data/spec/examples/english.yaml +0 -69
  59. data/spec/examples/iso_123_.xml +0 -45
  60. data/spec/examples/iso_123_all_parts.xml +0 -45
  61. data/spec/examples/iso_123_no_year_note.xml +0 -46
  62. data/spec/examples/iso_124_.xml +0 -41
  63. data/spec/examples/iso_216_.xml +0 -47
  64. data/spec/examples/iso_iec_12382_.xml +0 -48
  65. data/spec/examples/rice.adoc +0 -714
  66. data/spec/examples/rice.preview.html +0 -1870
  67. data/spec/examples/rice.sh +0 -4
  68. data/spec/examples/rice_img/1000-1_ed2amd3fig1a.png +0 -0
  69. data/spec/examples/rice_img/1000-1_ed2amd3fig1b.png +0 -0
  70. data/spec/examples/rice_img/1000-1_ed2amd3fig2.png +0 -0
  71. data/spec/examples/rice_img/1000-1_ed2amd3fig3.png +0 -0
  72. data/spec/examples/rice_img/1000-1_ed2amd3fig4.png +0 -0
  73. data/spec/examples/rice_img/1000-1_ed2amd3fig5_f.png +0 -0
  74. data/spec/examples/rice_img/1000-1_ed2amd3figA.png +0 -0
  75. data/spec/examples/rice_img/1000-1_ed2amd3figA1.png +0 -0
  76. data/spec/examples/rice_img/1000-1_ed2amd3figA2.png +0 -0
  77. data/spec/examples/rice_img/1000-1_ed2amd3figTab1.png +0 -0
  78. data/spec/examples/rice_img/1000-1_ed2amd3figTab2.png +0 -0
  79. data/spec/examples/rice_img/1001_ed2amd3fig1.png +0 -0
  80. data/spec/examples/rice_img/ISO_1213_1.png +0 -0
  81. data/spec/examples/rice_img/SL1000-1_ed2amd3fig1.png +0 -0
  82. data/spec/examples/rice_img/rice_image1.png +0 -0
  83. data/spec/examples/rice_img/rice_image2.png +0 -0
  84. data/spec/examples/rice_img/rice_image3_1.png +0 -0
  85. data/spec/examples/rice_img/rice_image3_2.png +0 -0
  86. data/spec/examples/rice_img/rice_image3_3.png +0 -0
  87. data/spec/isodoc/amd_spec.rb +0 -986
  88. data/spec/isodoc/blocks_spec.rb +0 -1174
  89. data/spec/isodoc/i18n_spec.rb +0 -1579
  90. data/spec/isodoc/inline_spec.rb +0 -1060
  91. data/spec/isodoc/iso_spec.rb +0 -255
  92. data/spec/isodoc/metadata_spec.rb +0 -701
  93. data/spec/isodoc/postproc_spec.rb +0 -1089
  94. data/spec/isodoc/ref_spec.rb +0 -439
  95. data/spec/isodoc/section_spec.rb +0 -998
  96. data/spec/isodoc/table_spec.rb +0 -420
  97. data/spec/isodoc/terms_spec.rb +0 -314
  98. data/spec/isodoc/word_dis_spec.rb +0 -2064
  99. data/spec/isodoc/xref_spec.rb +0 -1747
  100. data/spec/metanorma/amd_spec.rb +0 -724
  101. data/spec/metanorma/base_spec.rb +0 -1384
  102. data/spec/metanorma/blank_spec.rb +0 -38
  103. data/spec/metanorma/blocks_spec.rb +0 -624
  104. data/spec/metanorma/cleanup_spec.rb +0 -1645
  105. data/spec/metanorma/inline_spec.rb +0 -203
  106. data/spec/metanorma/lists_spec.rb +0 -197
  107. data/spec/metanorma/macros_spec.rb +0 -99
  108. data/spec/metanorma/processor_spec.rb +0 -161
  109. data/spec/metanorma/refs_spec.rb +0 -672
  110. data/spec/metanorma/section_spec.rb +0 -492
  111. data/spec/metanorma/table_spec.rb +0 -329
  112. data/spec/metanorma/validate_spec.rb +0 -2153
  113. data/spec/relaton/render_spec.rb +0 -568
  114. data/spec/requirements/requirement_components_spec.rb +0 -622
  115. data/spec/requirements/requirements_spec.rb +0 -1681
  116. data/spec/requirements/xref_spec.rb +0 -1211
  117. data/spec/spec_helper.rb +0 -313
  118. data/spec/vcr_cassettes/docrels.yml +0 -385
  119. data/spec/vcr_cassettes/withdrawn_iso.yml +0 -295
@@ -1,314 +0,0 @@
1
- require "spec_helper"
2
-
3
- RSpec.describe IsoDoc do
4
- it "processes IsoXML terms" do
5
- input = <<~INPUT
6
- <iso-standard xmlns="http://riboseinc.com/isoxml">
7
- <sections>
8
- <terms id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
9
- <term id="paddy1">
10
- <preferred><expression><name>paddy</name></expression></preferred>
11
- <domain>rice</domain>
12
- <definition><verbal-definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></verbal-definition></definition>
13
- <termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f892">
14
- <p id="_65c9a509-9a89-4b54-a890-274126aeb55c">Foreign seeds, husks, bran, sand, dust.</p>
15
- <ul>
16
- <li>A</li>
17
- </ul>
18
- </termexample>
19
- <termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f894">
20
- <ul>
21
- <li>A</li>
22
- </ul>
23
- </termexample>
24
-
25
- <termsource status="modified">
26
- <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality></origin>
27
- <modification>
28
- <p id="_e73a417d-ad39-417d-a4c8-20e4e2529489">The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here</p>
29
- </modification>
30
- </termsource>
31
- </term>
32
-
33
- <term id="paddy">
34
- <preferred><expression><name>paddy</name></expression></preferred>
35
- <admitted><expression><name>paddy rice</name></expression></admitted>
36
- <admitted><expression><name>rough rice</name></expression></admitted>
37
- <deprecates><expression><name>cargo rice</name></expression></deprecates>
38
- <definition><verbal-definition><p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p></verbal-definition></definition>
39
- <termnote id="_671a1994-4783-40d0-bc81-987d06ffb74e">
40
- <p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p>
41
- </termnote>
42
- <termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f893">
43
- <ul>
44
- <li>A</li>
45
- </ul>
46
- </termexample>
47
- <termnote id="_671a1994-4783-40d0-bc81-987d06ffb74f">
48
- <ul><li>A</li></ul>
49
- <p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p>
50
- </termnote>
51
- <termsource status="identical">
52
- <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality></origin>
53
- </termsource>
54
- </term>
55
- <term id="A">
56
- <preferred><expression><name>term1</name></expression></preferred>
57
- <definition><verbal-definition>term1 definition</verbal-definition></definition>
58
- <term id="B">
59
- <preferred><expression><name>term2</name></expression></preferred>
60
- <definition><verbal-definition>term2 definition</verbal-definition></definition>
61
- </term>
62
- </term>
63
- </terms>
64
- </sections>
65
- </iso-standard>
66
- INPUT
67
- presxml = <<~OUTPUT
68
- <?xml version='1.0'?>
69
- <iso-standard xmlns='http://riboseinc.com/isoxml' type="presentation">
70
- <sections>
71
- <terms id='_terms_and_definitions' obligation='normative' displayorder='1'>
72
- <title depth='1'>1<tab/>Terms and Definitions</title>
73
-
74
- <term id='paddy1'><name>1.1</name>
75
- <preferred><strong>paddy</strong></preferred>
76
- <definition>
77
- <p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'>&#x3c;rice&#x3e; rice retaining its husk after threshing</p>
78
- </definition>
79
- <termexample id='_bd57bbf1-f948-4bae-b0ce-73c00431f892'>
80
- <name>EXAMPLE 1</name>
81
- <p id='_65c9a509-9a89-4b54-a890-274126aeb55c'>Foreign seeds, husks, bran, sand, dust.</p>
82
- <ul>
83
- <li>A</li>
84
- </ul>
85
- </termexample>
86
- <termexample id='_bd57bbf1-f948-4bae-b0ce-73c00431f894'>
87
- <name>EXAMPLE 2</name>
88
- <ul>
89
- <li>A</li>
90
- </ul>
91
- </termexample>
92
- <termsource status='modified'>[SOURCE:
93
- <origin bibitemid='ISO7301' type='inline' citeas='ISO 7301:2011'><locality type='clause'><referenceFrom>3.1</referenceFrom></locality><span class='stdpublisher'>ISO</span> <span class='stddocNumber'>7301</span>:<span class='stdyear'>2011</span>, <span class='citesec'>3.1</span></origin>, modified &#x2013; The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]
94
- </termsource>
95
- </term>
96
- <term id='paddy'><name>1.2</name>
97
- <preferred><strong>paddy</strong></preferred>
98
- <admitted>paddy rice</admitted>
99
- <admitted>rough rice</admitted>
100
- <deprecates>cargo rice</deprecates>
101
- <definition>
102
- <p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'>rice retaining its husk after threshing</p>
103
- </definition>
104
- <termnote id='_671a1994-4783-40d0-bc81-987d06ffb74e'>
105
- <name>Note 1 to entry</name>
106
- <p id='_19830f33-e46c-42cc-94ca-a5ef101132d5'>The starch of waxy rice consists almost entirely of amylopectin. The
107
- kernels have a tendency to stick together after cooking.</p>
108
- </termnote>
109
- <termnote id='_671a1994-4783-40d0-bc81-987d06ffb74f'>
110
- <name>Note 2 to entry</name>
111
- <ul>
112
- <li>A</li>
113
- </ul>
114
- <p id='_19830f33-e46c-42cc-94ca-a5ef101132d5'>The starch of waxy rice consists almost entirely of amylopectin. The
115
- kernels have a tendency to stick together after cooking.</p>
116
- </termnote>
117
- <termexample id='_bd57bbf1-f948-4bae-b0ce-73c00431f893'>
118
- <name>EXAMPLE</name>
119
- <ul>
120
- <li>A</li>
121
- </ul>
122
- </termexample>
123
- <termsource status='identical'>[SOURCE:
124
- <origin bibitemid='ISO7301' type='inline' citeas='ISO 7301:2011'><locality type='clause'><referenceFrom>3.1</referenceFrom></locality><span class='stdpublisher'>ISO</span> <span class='stddocNumber'>7301</span>:<span class='stdyear'>2011</span>, <span class='citesec'>3.1</span></origin>]
125
- </termsource>
126
- </term>
127
- <term id='A'>
128
- <name>1.3</name>
129
- <preferred><strong>term1</strong></preferred>
130
- <definition>term1 definition</definition>
131
- <term id='B'>
132
- <name>1.3.1</name>
133
- <preferred><strong>term2</strong></preferred>
134
- <definition>term2 definition</definition>
135
- </term>
136
- </term>
137
- </terms>
138
- </sections>
139
- </iso-standard>
140
- OUTPUT
141
-
142
- html = <<~OUTPUT
143
- #{HTML_HDR}
144
- <p class="zzSTDTitle1"/>
145
- <div id="_terms_and_definitions">
146
- <h1>1&#160; Terms and Definitions</h1>
147
- <p class="TermNum" id="paddy1">1.1</p><p class="Terms" style="text-align:left;"><b>paddy</b></p>
148
-
149
- <p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">&lt;rice&gt; rice retaining its husk after threshing</p>
150
- <div class="example" id="_bd57bbf1-f948-4bae-b0ce-73c00431f892">
151
- <p>
152
- <span class="example_label">EXAMPLE 1</span>&#160; Foreign seeds, husks, bran, sand, dust.</p>
153
- <ul>
154
- <li>A</li>
155
- </ul>
156
- </div>
157
- <div class="example" id="_bd57bbf1-f948-4bae-b0ce-73c00431f894">
158
- <p><span class="example_label">EXAMPLE 2</span>&#160;</p>
159
- <ul>
160
- <li>A</li>
161
- </ul>
162
- </div>
163
- <p>[SOURCE:
164
- ISO 7301:2011, 3.1, modified &#8211;
165
- The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]</p>
166
- <p class="TermNum" id="paddy">1.2</p>
167
- <p class="Terms" style="text-align:left;"><b>paddy</b></p>
168
- <p class="AltTerms" style="text-align:left;">paddy rice</p>
169
- <p class="AltTerms" style="text-align:left;">rough rice</p>
170
- <p class="DeprecatedTerms" style="text-align:left;">DEPRECATED: cargo rice</p>
171
- <p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p>
172
- <div class="example" id="_bd57bbf1-f948-4bae-b0ce-73c00431f893">
173
- <p>
174
- <span class="example_label">EXAMPLE</span>&#160;
175
- </p>
176
- <ul>
177
- <li>A</li>
178
- </ul>
179
- </div>
180
- <div class="Note" id="_671a1994-4783-40d0-bc81-987d06ffb74e">
181
- <p>Note 1 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p>
182
- </div>
183
- <div class="Note" id="_671a1994-4783-40d0-bc81-987d06ffb74f">
184
- <p>Note 2 to entry:
185
- <ul>
186
- <li>A</li></ul>
187
- <p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p>
188
- </p>
189
- </div>
190
- <p>[SOURCE: ISO 7301:2011, 3.1]</p>
191
- <p class='TermNum' id='A'>1.3</p>
192
- <p class='Terms' style='text-align:left;'><b>term1</b></p>
193
- term1 definition
194
- <p class='TermNum' id='B'>1.3.1</p>
195
- <p class='Terms' style='text-align:left;'><b>term2</b></p>
196
- term2 definition
197
- </div>
198
- </div>
199
- </body>
200
- </html>
201
- OUTPUT
202
-
203
- word = <<~OUTPUT
204
- <div id="_terms_and_definitions"><h1>1<span style="mso-tab-count:1">&#160; </span>Terms and Definitions</h1>
205
- <p class="TermNum" id="paddy1">1.1</p><p class="Terms" style="text-align:left;"><b>paddy</b></p>
206
-
207
- <p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f" class="Definition">&lt;rice&gt; rice retaining its husk after threshing</p>
208
- <div id="_bd57bbf1-f948-4bae-b0ce-73c00431f892" class="example"><p><span class="example_label">EXAMPLE 1</span><span style="mso-tab-count:1">&#160; </span>Foreign seeds, husks, bran, sand, dust.</p><ul>
209
- <li>A</li>
210
- </ul></div>
211
- <div id="_bd57bbf1-f948-4bae-b0ce-73c00431f894" class="example"><p><span class="example_label">EXAMPLE 2</span><span style="mso-tab-count:1">&#160; </span></p><ul>
212
- <li>A</li>
213
- </ul></div>
214
-
215
- <p class="Source">[SOURCE:
216
- ISO 7301:2011, 3.1, modified &#8211;
217
- The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]</p>
218
- <p class="TermNum" id="paddy">1.2</p>
219
- <p class="Terms" style="text-align:left;"><b>paddy</b></p>
220
- <p class="AltTerms" style="text-align:left;">paddy rice</p>
221
- <p class="AltTerms" style="text-align:left;">rough rice</p>
222
- <p class="DeprecatedTerms" style="text-align:left;">DEPRECATED: cargo rice</p>
223
- <p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f" class="Definition">rice retaining its husk after threshing</p>
224
- <div id="_bd57bbf1-f948-4bae-b0ce-73c00431f893" class="example"><p><span class="example_label">EXAMPLE</span><span style="mso-tab-count:1">&#160; </span></p>
225
- <ul>
226
- <li>A</li>
227
- </ul>
228
- </div>
229
- <div id='_671a1994-4783-40d0-bc81-987d06ffb74e' class="Note"><p class="Note">Note 1 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></div>
230
- <div id='_671a1994-4783-40d0-bc81-987d06ffb74f' class="Note"><p class="Note">Note 2 to entry: <ul><li>A</li></ul><p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></p></div>
231
- <p class="Source">[SOURCE: ISO 7301:2011, 3.1]</p>
232
- <p class='TermNum' id='A'>1.3</p>
233
- <p class='Terms' style='text-align:left;'><b>term1</b></p>
234
- term1 definition
235
- <p class='TermNum' id='B'>1.3.1</p>
236
- <p class='Terms' style='text-align:left;'><b>term2</b></p>
237
- term2 definition
238
- </div>
239
- OUTPUT
240
- expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({})
241
- .convert("test", input, true)))
242
- .to be_equivalent_to xmlpp(presxml)
243
- expect(xmlpp(IsoDoc::Iso::HtmlConvert.new({})
244
- .convert("test", presxml, true)))
245
- .to be_equivalent_to xmlpp(html)
246
- expect(xmlpp(IsoDoc::Iso::WordConvert.new({})
247
- .convert("test", presxml, true)
248
- .sub(%r{^.*<p class="zzSTDTitle1"/>}m, "")
249
- .sub(%r{</div>\s*<br.*$}m, "")))
250
- .to be_equivalent_to xmlpp(word)
251
- end
252
-
253
- it "processes related terms" do
254
- input = <<~INPUT
255
- <iso-standard xmlns="http://riboseinc.com/isoxml">
256
- <sections>
257
- <terms id='A' obligation='normative'>
258
- <title>Terms and definitions</title>
259
- <term id='second'>
260
- <preferred>
261
- <expression>
262
- <name>Second Term</name>
263
- </expression>
264
- <field-of-application>Field</field-of-application>
265
- <usage-info>Usage Info 1</usage-info>
266
- </preferred>
267
- <definition><verbal-definition>Definition 1</verbal-definition></definition>
268
- </term>
269
- <term id="C">
270
- <preferred language='fr' script='Latn' type='prefix'>
271
- <expression>
272
- <name>First Designation</name>
273
- </expression></preferred>
274
- <related type='contrast'>
275
- <preferred>
276
- <expression>
277
- <name>Fifth Designation</name>
278
- <grammar>
279
- <gender>neuter</gender>
280
- </grammar>
281
- </expression>
282
- </preferred>
283
- <xref target='second'/>
284
- </related>
285
- <definition><verbal-definition>Definition 2</verbal-definition></definition>
286
- </term>
287
- </terms>
288
- </sections>
289
- </iso-standard>
290
- INPUT
291
- output = <<~OUTPUT
292
- <?xml version='1.0'?>
293
- <iso-standard xmlns='http://riboseinc.com/isoxml' type='presentation'>
294
- <sections>
295
- <terms id='A' obligation='normative' displayorder='1'>
296
- <title depth='1'>1<tab/>Terms and definitions</title>
297
- <term id='second'>
298
- <name>1.1</name>
299
- <preferred><strong>Second Term</strong>, &#x3c;Field, Usage Info 1&#x3e;</preferred>
300
- <definition>Definition 1</definition>
301
- </term>
302
- <term id='C'>
303
- <name>1.2</name>
304
- <preferred language='fr' script='Latn' type='prefix'><strong>First Designation</strong></preferred>
305
- <definition>Definition 2</definition>
306
- </term>
307
- </terms>
308
- </sections>
309
- </iso-standard>
310
- OUTPUT
311
- expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({})
312
- .convert("test", input, true))).to be_equivalent_to xmlpp(output)
313
- end
314
- end