metanorma-iec 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -137,6 +137,9 @@ module IsoDoc
137
137
  docxml.xpath("//h1[not(@class)]").each do |h1|
138
138
  h1["class"] = "main"
139
139
  end
140
+ docxml.xpath("//h1[@class = 'Section3']").each do |h1|
141
+ h1["class"] = "main"
142
+ end
140
143
  end
141
144
 
142
145
  # Incredibly, the numbered boilerplate list in IEC is NOT A LIST,
@@ -160,15 +163,23 @@ module IsoDoc
160
163
  def make_body1(body, _docxml)
161
164
  end
162
165
 
163
- #def make_body2(body, docxml)
164
- #FileUtils.rm_rf tmpimagedir
165
- #FileUtils.mkdir tmpimagedir
166
- #super
167
- #end
168
-
169
166
  def word_cover(docxml)
170
167
  end
171
168
 
169
+ def formula_parse1(node, out)
170
+ out.div **attr_code(id: node["id"], class: "formula") do |div|
171
+ div.p **attr_code(class: "formula") do |p|
172
+ insert_tab(div, 1)
173
+ parse(node.at(ns("./stem")), div)
174
+ lbl = anchor(node['id'], :label, false)
175
+ unless lbl.nil?
176
+ insert_tab(div, 1)
177
+ div << "(#{lbl})"
178
+ end
179
+ end
180
+ end
181
+ end
182
+
172
183
  include BaseConvert
173
184
  end
174
185
  end
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "1.0.7"
3
+ VERSION = "1.0.8"
4
4
  end
5
5
  end
6
6
 
@@ -185,11 +185,12 @@ RSpec.describe Asciidoctor::Iec do
185
185
  :publisher: IEC,IETF,ISO
186
186
  :copyright-year: 2001
187
187
  :docstage: A2CD
188
+ :doctype: technical-specification
188
189
  INPUT
189
190
  <?xml version="1.0" encoding="UTF-8"?>
190
191
  <iec-standard xmlns="https://www.metanorma.org/ns/iec">
191
192
  <bibdata type="standard">
192
- <docidentifier type="iso">ISO/IEC/IETF/2CD 1000-1-1 ED 1</docidentifier>
193
+ <docidentifier type="iso">ISO/IEC/IETF/2CDTS 1000-1-1 ED 1</docidentifier>
193
194
  <docidentifier type="iso-tc">2000</docidentifier>
194
195
  <docnumber>1000</docnumber>
195
196
  <contributor>
@@ -266,7 +267,7 @@ RSpec.describe Asciidoctor::Iec do
266
267
  </owner>
267
268
  </copyright>
268
269
  <ext>
269
- <doctype>article</doctype>
270
+ <doctype>technical-specification</doctype>
270
271
  <editorialgroup>
271
272
  <technical-committee/>
272
273
  <subcommittee/>
@@ -0,0 +1,160 @@
1
+ require "spec_helper"
2
+
3
+ RSpec.describe IsoDoc::Iec do
4
+
5
+ it "processes admonitions" do
6
+ expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
7
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
8
+ <preface><foreword>
9
+ <admonition id="_70234f78-64e5-4dfc-8b6f-f3f037348b6a" type="caution">
10
+ <p id="_e94663cc-2473-4ccc-9a72-983a74d989f2">Only use paddy or parboiled rice for the determination of husked rice yield.</p>
11
+ <p id="_e94663cc-2473-4ccc-9a72-983a74d989f3">Para 2.</p>
12
+ </admonition>
13
+ </foreword></preface>
14
+ </iso-standard>
15
+ INPUT
16
+ #{HTML_HDR}
17
+ <div>
18
+ <h1 class='ForewordTitle'>FOREWORD</h1>
19
+ <div class='boilerplate_legal'/>
20
+ <div id='_70234f78-64e5-4dfc-8b6f-f3f037348b6a' class='Admonition'>
21
+ <p>
22
+ CAUTION &#8212; Only use paddy or parboiled rice for the
23
+ determination of husked rice yield.
24
+ </p>
25
+ <p id='_e94663cc-2473-4ccc-9a72-983a74d989f3'>Para 2.</p>
26
+ </div>
27
+ </div>
28
+ #{IEC_TITLE}
29
+ </div>
30
+ </body>
31
+ </html>
32
+ OUTPUT
33
+ end
34
+
35
+ it "processes admonitions with titles" do
36
+ expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
37
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
38
+ <preface><foreword>
39
+ <admonition id="_70234f78-64e5-4dfc-8b6f-f3f037348b6a" type="caution">
40
+ <name>Title</name>
41
+ <ul>
42
+ <li>List</li>
43
+ </ul>
44
+ <p id="_e94663cc-2473-4ccc-9a72-983a74d989f2">Only use paddy or parboiled rice for the determination of husked rice yield.</p>
45
+ </admonition>
46
+ </foreword></preface>
47
+ </iso-standard>
48
+ INPUT
49
+ #{HTML_HDR}
50
+ <div>
51
+ <h1 class='ForewordTitle'>FOREWORD</h1>
52
+ <div class='boilerplate_legal'/>
53
+ <div id='_70234f78-64e5-4dfc-8b6f-f3f037348b6a' class='Admonition'>
54
+ <p>Title &#8212; </p>
55
+ <ul>
56
+ <li>List</li>
57
+ </ul>
58
+ <p id='_e94663cc-2473-4ccc-9a72-983a74d989f2'>Only use paddy or parboiled rice for the determination of husked rice yield.</p>
59
+ </div>
60
+ </div>
61
+ #{IEC_TITLE}
62
+ </div>
63
+ </body>
64
+ </html>
65
+ OUTPUT
66
+ end
67
+
68
+ it "processes formulae (Word)" do
69
+ expect(xmlpp(IsoDoc::Iec::WordConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
70
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
71
+ <preface><foreword>
72
+ <formula id="_be9158af-7e93-4ee2-90c5-26d31c181934" unnumbered="true">
73
+ <stem type="AsciiMath">r = 1 %</stem>
74
+ <dl id="_e4fe94fe-1cde-49d9-b1ad-743293b7e21d">
75
+ <dt>
76
+ <stem type="AsciiMath">r</stem>
77
+ </dt>
78
+ <dd>
79
+ <p id="_1b99995d-ff03-40f5-8f2e-ab9665a69b77">is the repeatability limit.</p>
80
+ </dd>
81
+ </dl>
82
+ <note id="_83083c7a-6c85-43db-a9fa-4d8edd0c9fc0">
83
+ <p id="_511aaa98-4116-42af-8e5b-c87cdf5bfdc8">[durationUnits] is essentially a duration statement without the "P" prefix. "P" is unnecessary because between "G" and "U" duration is always expressed.</p>
84
+ </note>
85
+ </formula>
86
+ <formula id="_be9158af-7e93-4ee2-90c5-26d31c181935">
87
+ <stem type="AsciiMath">r = 1 %</stem>
88
+ </formula>
89
+ </foreword></preface>
90
+ </iso-standard>
91
+ INPUT
92
+ <html xmlns:epub='http://www.idpf.org/2007/ops' lang='en'>
93
+ <head>
94
+ <style>
95
+ </style>
96
+ <style>
97
+ </style>
98
+ </head>
99
+ <body lang='EN-US' link='blue' vlink='#954F72'>
100
+ <div class='WordSection2'>
101
+ <p>
102
+ <br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
103
+ </p>
104
+ #{IEC_TITLE}
105
+ <div>
106
+ <h1 class='ForewordTitle'>FOREWORD</h1>
107
+ <div class='boilerplate_legal'/>
108
+ <div id='_be9158af-7e93-4ee2-90c5-26d31c181934' class='formula'>
109
+ <p class='formula'>
110
+ <span style='mso-tab-count:1'>&#160; </span>
111
+ <span class='stem'>(#(r = 1 %)#)</span>
112
+ </p>
113
+ </div>
114
+ <p>where</p>
115
+ <table class='formula_dl'>
116
+ <tr>
117
+ <td valign='top' align='left'>
118
+ <p align='left' style='margin-left:0pt;text-align:left;'>
119
+ <span class='stem'>(#(r)#)</span>
120
+ </p>
121
+ </td>
122
+ <td valign='top'>
123
+ <p id='_1b99995d-ff03-40f5-8f2e-ab9665a69b77'>is the repeatability limit.</p>
124
+ </td>
125
+ </tr>
126
+ </table>
127
+ <div id='_83083c7a-6c85-43db-a9fa-4d8edd0c9fc0' class='Note'>
128
+ <p class='Note'>
129
+ <span class='note_label'>NOTE</span>
130
+ <span style='mso-tab-count:1'>&#160; </span>
131
+ [durationUnits] is essentially a duration statement without the "P"
132
+ prefix. "P" is unnecessary because between "G" and "U" duration is
133
+ always expressed.
134
+ </p>
135
+ </div>
136
+ <div id='_be9158af-7e93-4ee2-90c5-26d31c181935' class='formula'>
137
+ <p class='formula'>
138
+ <span style='mso-tab-count:1'>&#160; </span>
139
+ <span class='stem'>(#(r = 1 %)#)</span>
140
+ <span style='mso-tab-count:1'>&#160; </span>
141
+ (1)
142
+ </p>
143
+ </div>
144
+ </div>
145
+ <p>&#160;</p>
146
+ </div>
147
+ <p>
148
+ <br clear='all' class='section'/>
149
+ </p>
150
+ <div class='WordSection3'>
151
+ #{IEC_TITLE}
152
+ </div>
153
+ <br clear='all' style='page-break-before:left;mso-break-type:section-break'/>
154
+ <div class='colophon'/>
155
+ </body>
156
+ </html>
157
+ OUTPUT
158
+ end
159
+
160
+ end
@@ -126,6 +126,10 @@ INPUT
126
126
  <div>
127
127
  <h1>1&#160; Normative references</h1>
128
128
  <p id='_'>There are no normative references in this document.</p>
129
+ <p id='A' class='NormRef'>
130
+ B,
131
+ <i>TITLE</i>
132
+ </p>
129
133
  </div>
130
134
  </div>
131
135
  </body>
@@ -5,9 +5,9 @@ RSpec.describe IsoDoc::Iec::Metadata do
5
5
  it "processes IsoXML metadata" do
6
6
  c = IsoDoc::Iec::HtmlConvert.new({})
7
7
  arr = c.convert_init(<<~"INPUT", "test", false)
8
- <iso-standard xmlns="http://riboseinc.com/isoxml">
8
+ <iec-standard xmlns="http://riboseinc.com/isoxml">
9
9
  INPUT
10
- expect(Hash[c.info(Nokogiri::XML(<<~"INPUT"), nil).sort]).to be_equivalent_to <<~"OUTPUT"
10
+ expect(Hash[c.info(Nokogiri::XML(<<~"INPUT"), nil).sort].to_s.gsub(/, :/, ",\n:")).to be_equivalent_to <<~"OUTPUT"
11
11
  <iso-standard xmlns="http://riboseinc.com/isoxml">
12
12
  <bibdata type="standard">
13
13
  <title type="title-intro" language="en" format="text/plain">Cereals and pulses</title>
@@ -73,7 +73,51 @@ RSpec.describe IsoDoc::Iec::Metadata do
73
73
  </bibdata>
74
74
  </iso-standard>
75
75
  INPUT
76
- {:accesseddate=>"2012", :activateddate=>"2013", :agency=>"ISO", :authors=>[], :authors_affiliations=>{}, :createddate=>"2010&ndash;2011", :docnumber=>"ISO/PreCD3 17301-1", :docnumber_lang=>nil, :docnumber_reference=>nil, :docnumeric=>"1730", :docsubtitle=>"C&#xe9;r&#xe9;ales et l&#xe9;gumineuses&nbsp;&mdash; Sp&#xe9;cification et m&#xe9;thodes d&#x27;essai&nbsp;&mdash; Partie&nbsp;1: Riz", :docsubtitleintro=>"C&#xe9;r&#xe9;ales et l&#xe9;gumineuses", :docsubtitlemain=>"Sp&#xe9;cification et m&#xe9;thodes d&#x27;essai", :docsubtitlepart=>"Riz", :docsubtitlepartlabel=>"Partie&nbsp;1", :doctitle=>"Cereals and pulses&nbsp;&mdash; Specifications and test methods&nbsp;&mdash; Part&nbsp;1: Rice", :doctitleintro=>"Cereals and pulses", :doctitlemain=>"Specifications and test methods", :doctitlepart=>"Rice", :doctitlepartlabel=>"Part&nbsp;1", :doctype=>"International Standard", :docyear=>"2016", :draft=>"0.4", :draftinfo=>" (draft 0.4, 2016-05-01)", :edition=>"2", :editorialgroup=>["TC 34", "SC 4", "WG 3"], :ics=>"XXX", :obsoleteddate=>"2014", :obsoletes=>nil, :obsoletes_part=>nil, :publisheddate=>"2011", :publisher=>"International Organization for Standardization", :revdate=>"2016-05-01", :revdate_monthyear=>"May 2016", :sc=>"SC 4", :secretariat=>"GB", :stage=>"35", :stage_int=>35, :stageabbr=>"CD", :statusabbr=>"3CD", :tc=>"TC 34", :tc_docnumber=>["17301"], :unpublished=>true, :wg=>"WG 3"}
76
+ {:accesseddate=>"2012",
77
+ :activateddate=>"2013",
78
+ :agency=>"ISO",
79
+ :authors=>[],
80
+ :authors_affiliations=>{},
81
+ :createddate=>"2010&ndash;2011",
82
+ :docnumber=>"ISO/PreCD3 17301-1",
83
+ :docnumber_lang=>nil,
84
+ :docnumber_reference=>nil,
85
+ :docnumeric=>"1730",
86
+ :docsubtitle=>"C&#xe9;r&#xe9;ales et l&#xe9;gumineuses&nbsp;&mdash; Sp&#xe9;cification et m&#xe9;thodes d&#x27;essai&nbsp;&mdash; Partie&nbsp;1: Riz",
87
+ :docsubtitleintro=>"C&#xe9;r&#xe9;ales et l&#xe9;gumineuses",
88
+ :docsubtitlemain=>"Sp&#xe9;cification et m&#xe9;thodes d&#x27;essai",
89
+ :docsubtitlepart=>"Riz",
90
+ :docsubtitlepartlabel=>"Partie&nbsp;1",
91
+ :doctitle=>"Cereals and pulses&nbsp;&mdash; Specifications and test methods&nbsp;&mdash; Part&nbsp;1: Rice",
92
+ :doctitleintro=>"Cereals and pulses",
93
+ :doctitlemain=>"Specifications and test methods",
94
+ :doctitlepart=>"Rice",
95
+ :doctitlepartlabel=>"Part&nbsp;1",
96
+ :doctype=>"International Standard",
97
+ :docyear=>"2016",
98
+ :draft=>"0.4",
99
+ :draftinfo=>" (draft 0.4, 2016-05-01)",
100
+ :edition=>"2",
101
+ :editorialgroup=>["TC 34", "SC 4", "WG 3"],
102
+ :ics=>nil,
103
+ :keywords=>[],
104
+ :obsoleteddate=>"2014",
105
+ :obsoletes=>nil,
106
+ :obsoletes_part=>nil,
107
+ :publisheddate=>"2011",
108
+ :publisher=>"International Organization for Standardization",
109
+ :revdate=>"2016-05-01",
110
+ :revdate_monthyear=>"May 2016",
111
+ :sc=>"SC 4",
112
+ :secretariat=>"GB",
113
+ :stage=>"35",
114
+ :stage_int=>35,
115
+ :stageabbr=>"CD",
116
+ :statusabbr=>"3CD",
117
+ :tc=>"TC 34",
118
+ :tc_docnumber=>["17301"],
119
+ :unpublished=>true,
120
+ :wg=>"WG 3"}
77
121
  OUTPUT
78
122
  end
79
123
 
@@ -82,7 +126,7 @@ OUTPUT
82
126
  arr = c.convert_init(<<~"INPUT", "test", false)
83
127
  <iso-standard xmlns="http://riboseinc.com/isoxml">
84
128
  INPUT
85
- expect(Hash[c.info(Nokogiri::XML(<<~"INPUT"), nil).sort]).to be_equivalent_to <<~"OUTPUT"
129
+ expect(Hash[c.info(Nokogiri::XML(<<~"INPUT"), nil).sort].to_s.gsub(/, :/, ",\n:")).to be_equivalent_to <<~"OUTPUT"
86
130
  <iso-standard xmlns="http://riboseinc.com/isoxml">
87
131
  <bibdata type="standard">
88
132
  <title>
@@ -152,7 +196,46 @@ OUTPUT
152
196
  </bibdata>
153
197
  </iso-standard>
154
198
  INPUT
155
- {:agency=>"ISO/IEC", :authors=>[], :authors_affiliations=>{}, :docnumber=>"ISO/IEC/CD 17301-1-3", :docnumber_lang=>nil, :docnumber_reference=>nil, :docnumeric=>nil, :docsubtitle=>"C&#xe9;r&#xe9;ales et l&#xe9;gumineuses&nbsp;&mdash; Sp&#xe9;cification et m&#xe9;thodes d&#x27;essai&nbsp;&mdash; Partie&nbsp;1&ndash;3: Riz", :docsubtitleintro=>"C&#xe9;r&#xe9;ales et l&#xe9;gumineuses", :docsubtitlemain=>"Sp&#xe9;cification et m&#xe9;thodes d&#x27;essai", :docsubtitlepart=>"Riz", :docsubtitlepartlabel=>"Partie&nbsp;1&ndash;3", :doctitle=>"Cereals and pulses&nbsp;&mdash; Specifications and test methods&nbsp;&mdash; Part&nbsp;1&ndash;3: Rice", :doctitleintro=>"Cereals and pulses", :doctitlemain=>"Specifications and test methods", :doctitlepart=>"Rice", :doctitlepartlabel=>"Part&nbsp;1&ndash;3", :doctype=>"Technical Report", :docyear=>"2016", :draft=>nil, :draftinfo=>"", :edition=>nil, :editorialgroup=>["ABC 34", "DEF 4", "GHI 3"], :ics=>"1.2.3, 1.2.3", :obsoletes=>"IEC 8121", :obsoletes_part=>"3.1", :publisher=>"International Organization for Standardization and International Electrotechnical Commission", :revdate=>nil, :revdate_monthyear=>nil, :sc=>"DEF 4", :secretariat=>"XXXX", :stage=>"50", :stage_int=>50, :stageabbr=>"FDIS", :statusabbr=>"CFDIS", :tc=>"ABC 34", :tc_docnumber=>["17301"], :unpublished=>true, :wg=>"GHI 3"}
199
+ {:agency=>"ISO/IEC",
200
+ :authors=>[],
201
+ :authors_affiliations=>{},
202
+ :docnumber=>"ISO/IEC/CD 17301-1-3",
203
+ :docnumber_lang=>nil,
204
+ :docnumber_reference=>nil,
205
+ :docnumeric=>nil,
206
+ :docsubtitle=>"C&#xe9;r&#xe9;ales et l&#xe9;gumineuses&nbsp;&mdash; Sp&#xe9;cification et m&#xe9;thodes d&#x27;essai&nbsp;&mdash; Partie&nbsp;1&ndash;3: Riz",
207
+ :docsubtitleintro=>"C&#xe9;r&#xe9;ales et l&#xe9;gumineuses",
208
+ :docsubtitlemain=>"Sp&#xe9;cification et m&#xe9;thodes d&#x27;essai",
209
+ :docsubtitlepart=>"Riz",
210
+ :docsubtitlepartlabel=>"Partie&nbsp;1&ndash;3",
211
+ :doctitle=>"Cereals and pulses&nbsp;&mdash; Specifications and test methods&nbsp;&mdash; Part&nbsp;1&ndash;3: Rice",
212
+ :doctitleintro=>"Cereals and pulses",
213
+ :doctitlemain=>"Specifications and test methods",
214
+ :doctitlepart=>"Rice",
215
+ :doctitlepartlabel=>"Part&nbsp;1&ndash;3",
216
+ :doctype=>"Technical Report",
217
+ :docyear=>"2016",
218
+ :draft=>nil,
219
+ :draftinfo=>"",
220
+ :edition=>nil,
221
+ :editorialgroup=>["ABC 34", "DEF 4", "GHI 3"],
222
+ :ics=>"1.2.3, 1.2.3",
223
+ :keywords=>[],
224
+ :obsoletes=>"IEC 8121",
225
+ :obsoletes_part=>"3.1",
226
+ :publisher=>"International Organization for Standardization and International Electrotechnical Commission",
227
+ :revdate=>nil,
228
+ :revdate_monthyear=>nil,
229
+ :sc=>"DEF 4",
230
+ :secretariat=>"XXXX",
231
+ :stage=>"50",
232
+ :stage_int=>50,
233
+ :stageabbr=>"FDIS",
234
+ :statusabbr=>"CFDIS",
235
+ :tc=>"ABC 34",
236
+ :tc_docnumber=>["17301"],
237
+ :unpublished=>true,
238
+ :wg=>"GHI 3"}
156
239
  OUTPUT
157
240
  end
158
241
 
@@ -0,0 +1,249 @@
1
+ require "spec_helper"
2
+
3
+ RSpec.describe IsoDoc::Iec do
4
+ it "processes IsoXML bibliographies" do
5
+ expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
6
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
7
+ <bibdata>
8
+ <language>en</language>
9
+ </bibdata>
10
+ <preface><foreword>
11
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">
12
+ <eref bibitemid="ISO712"/>
13
+ <eref bibitemid="ISBN"/>
14
+ <eref bibitemid="ISSN"/>
15
+ <eref bibitemid="ISO16634"/>
16
+ <eref bibitemid="ref1"/>
17
+ <eref bibitemid="ref10"/>
18
+ <eref bibitemid="ref12"/>
19
+ <eref bibitemid="zip_ffs"/>
20
+ </p>
21
+ </foreword></preface>
22
+ <bibliography><references id="_normative_references" obligation="informative" normative="true"><title>Normative References</title>
23
+ <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>
24
+ <bibitem id="ISO712" type="standard">
25
+ <title format="text/plain">Cereals or cereal products</title>
26
+ <title type="main" format="text/plain">Cereals and cereal products</title>
27
+ <docidentifier type="ISO">ISO 712</docidentifier>
28
+ <docidentifier type="metanorma">[110]</docidentifier>
29
+ <contributor>
30
+ <role type="publisher"/>
31
+ <organization>
32
+ <name>International Organization for Standardization</name>
33
+ </organization>
34
+ </contributor>
35
+ </bibitem>
36
+ <bibitem id="ISO16634" type="standard">
37
+ <title language="x" format="text/plain">Cereals, pulses, milled cereal products, xxxx, oilseeds and animal feeding stuffs</title>
38
+ <title language="en" format="text/plain">Cereals, pulses, milled cereal products, oilseeds and animal feeding stuffs</title>
39
+ <docidentifier type="ISO">ISO 16634:-- (all parts)</docidentifier>
40
+ <date type="published"><on>--</on></date>
41
+ <contributor>
42
+ <role type="publisher"/>
43
+ <organization>
44
+ <abbreviation>ISO</abbreviation>
45
+ </organization>
46
+ </contributor>
47
+ <note format="text/plain" reference="1">ISO DATE: Under preparation. (Stage at the time of publication ISO/DIS 16634)</note>
48
+ <extent type="part">
49
+ <referenceFrom>all</referenceFrom>
50
+ </extent>
51
+
52
+ </bibitem>
53
+ <bibitem id="ISO20483" type="standard">
54
+ <title format="text/plain">Cereals and pulses</title>
55
+ <docidentifier type="ISO">ISO 20483:2013-2014</docidentifier>
56
+ <date type="published"><from>2013</from><to>2014</to></date>
57
+ <contributor>
58
+ <role type="publisher"/>
59
+ <organization>
60
+ <name>International Organization for Standardization</name>
61
+ </organization>
62
+ </contributor>
63
+ </bibitem>
64
+ <bibitem id="ref1">
65
+ <formattedref format="application/x-isodoc+xml"><smallcap>Standard No I.C.C 167</smallcap>. <em>Determination of the protein content in cereal and cereal products for food and animal feeding stuffs according to the Dumas combustion method</em> (see <link target="http://www.icc.or.at"/>)</formattedref>
66
+ <docidentifier type="ICC">167</docidentifier>
67
+ </bibitem>
68
+ <note><p>This is an annotation of ISO 20483:2013-2014</p></note>
69
+ <bibitem id="zip_ffs"><formattedref format="application/x-isodoc+xml">Title 5</formattedref><docidentifier type="metanorma">[5]</docidentifier></bibitem>
70
+
71
+
72
+ </references><references id="_bibliography" obligation="informative" normative="false">
73
+ <title>Bibliography</title>
74
+ <bibitem id="ISBN" type="ISBN">
75
+ <title format="text/plain">Chemicals for analytical laboratory use</title>
76
+ <docidentifier type="ISBN">ISBN</docidentifier>
77
+ <docidentifier type="metanorma">[1]</docidentifier>
78
+ <contributor>
79
+ <role type="publisher"/>
80
+ <organization>
81
+ <abbreviation>ISBN</abbreviation>
82
+ </organization>
83
+ </contributor>
84
+ </bibitem>
85
+ <bibitem id="ISSN" type="ISSN">
86
+ <title format="text/plain">Instruments for analytical laboratory use</title>
87
+ <docidentifier type="ISSN">ISSN</docidentifier>
88
+ <docidentifier type="metanorma">[2]</docidentifier>
89
+ <contributor>
90
+ <role type="publisher"/>
91
+ <organization>
92
+ <abbreviation>ISSN</abbreviation>
93
+ </organization>
94
+ </contributor>
95
+ </bibitem>
96
+ <note><p>This is an annotation of document ISSN.</p></note>
97
+ <note><p>This is another annotation of document ISSN.</p></note>
98
+ <bibitem id="ISO3696" type="standard">
99
+ <title format="text/plain">Water for analytical laboratory use</title>
100
+ <docidentifier type="ISO">ISO 3696</docidentifier>
101
+ <contributor>
102
+ <role type="publisher"/>
103
+ <organization>
104
+ <abbreviation>ISO</abbreviation>
105
+ </organization>
106
+ </contributor>
107
+ </bibitem>
108
+ <bibitem id="ref10">
109
+ <formattedref format="application/x-isodoc+xml"><smallcap>Standard No I.C.C 167</smallcap>. <em>Determination of the protein content in cereal and cereal products for food and animal feeding stuffs according to the Dumas combustion method</em> (see <link target="http://www.icc.or.at"/>)</formattedref>
110
+ <docidentifier type="metanorma">[10]</docidentifier>
111
+ </bibitem>
112
+ <bibitem id="ref11">
113
+ <title>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</title>
114
+ <docidentifier type="IETF">RFC 10</docidentifier>
115
+ </bibitem>
116
+ <bibitem id="ref12">
117
+ <formattedref format="application/x-isodoc+xml">CitationWorks. 2019. <em>How to cite a reference</em>.</formattedref>
118
+ <docidentifier type="metanorma">[Citn]</docidentifier>
119
+ <docidentifier type="IETF">RFC 20</docidentifier>
120
+ </bibitem>
121
+
122
+
123
+ </references>
124
+ </bibliography>
125
+ </iso-standard>
126
+ INPUT
127
+ #{HTML_HDR}
128
+ <div>
129
+ <h1 class='ForewordTitle'>FOREWORD</h1>
130
+ <div class='boilerplate_legal'/>
131
+ <p id='_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f'>
132
+ <a href='#ISO712'>[110]</a>
133
+ <a href='#ISBN'>[1]</a>
134
+ <a href='#ISSN'>[2]</a>
135
+ <a href='#ISO16634'>ISO 16634:--</a>
136
+ <a href='#ref1'>ICC 167</a>
137
+ <a href='#ref10'>[10]</a>
138
+ <a href='#ref12'>Citn</a>
139
+ <a href='#zip_ffs'>[5]</a>
140
+ </p>
141
+ </div>
142
+ #{IEC_TITLE}
143
+ <div>
144
+ <h1>1&#160; Normative references</h1>
145
+ <p>
146
+ The following documents are referred to in the text in such a way that
147
+ some or all of their content constitutes requirements of this
148
+ document. For dated references, only the edition cited applies. For
149
+ undated references, the latest edition of the referenced document
150
+ (including any amendments) applies.
151
+ </p>
152
+ <p id='ISO712' class='NormRef'>
153
+ [110], ISO 712,
154
+ <i>Cereals and cereal products</i>
155
+ </p>
156
+ <p id='ISO16634' class='NormRef'>
157
+ ISO 16634:-- (all parts)
158
+ <a class='FootnoteRef' href='#fn:1'>
159
+ <sup>1</sup>
160
+ </a>
161
+ ,
162
+ <i>Cereals, pulses, milled cereal products, oilseeds and animal feeding stuffs</i>
163
+ </p>
164
+ <p id='ISO20483' class='NormRef'>
165
+ ISO 20483:2013-2014,
166
+ <i>Cereals and pulses</i>
167
+ </p>
168
+ <p id='ref1' class='NormRef'>
169
+ ICC 167,
170
+ <span style='font-variant:small-caps;'>Standard No I.C.C 167</span>
171
+ .
172
+ <i>
173
+ Determination of the protein content in cereal and cereal products
174
+ for food and animal feeding stuffs according to the Dumas combustion
175
+ method
176
+ </i>
177
+ (see
178
+ <a href='http://www.icc.or.at'>http://www.icc.or.at</a>
179
+ )
180
+ </p>
181
+ <div id='' class='Note'>
182
+ <p>
183
+ <span class='note_label'>NOTE</span>
184
+ &#160; This is an annotation of ISO 20483:2013-2014
185
+ </p>
186
+ </div>
187
+ <p id='zip_ffs' class='NormRef'>[5], Title 5</p>
188
+ </div>
189
+ <br/>
190
+ <div>
191
+ <h1 class='Section3'>Bibliography</h1>
192
+ <p id='ISBN' class='NormRef'>
193
+ [1],
194
+ <i>Chemicals for analytical laboratory use</i>
195
+ </p>
196
+ <p id='ISSN' class='NormRef'>
197
+ [2],
198
+ <i>Instruments for analytical laboratory use</i>
199
+ </p>
200
+ <div id='' class='Note'>
201
+ <p>
202
+ <span class='note_label'>NOTE</span>
203
+ &#160; This is an annotation of document ISSN.
204
+ </p>
205
+ </div>
206
+ <div id='' class='Note'>
207
+ <p>
208
+ <span class='note_label'>NOTE</span>
209
+ &#160; This is another annotation of document ISSN.
210
+ </p>
211
+ </div>
212
+ <p id='ISO3696' class='NormRef'>
213
+ ISO 3696,
214
+ <i>Water for analytical laboratory use</i>
215
+ </p>
216
+ <p id='ref10' class='NormRef'>
217
+ [10],
218
+ <span style='font-variant:small-caps;'>Standard No I.C.C 167</span>
219
+ .
220
+ <i>
221
+ Determination of the protein content in cereal and cereal products
222
+ for food and animal feeding stuffs according to the Dumas combustion
223
+ method
224
+ </i>
225
+ (see
226
+ <a href='http://www.icc.or.at'>http://www.icc.or.at</a>
227
+ )
228
+ </p>
229
+ <p id='ref11' class='NormRef'>
230
+ IETF RFC 10,
231
+ <i>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</i>
232
+ </p>
233
+ <p id='ref12' class='NormRef'>
234
+ Citn, IETF RFC 20, CitationWorks. 2019.
235
+ <i>How to cite a reference</i>
236
+ .
237
+ </p>
238
+ </div>
239
+ <aside id='fn:1' class='footnote'>
240
+ <p>Under preparation. (Stage at the time of publication ISO/DIS 16634)</p>
241
+ </aside>
242
+ </div>
243
+ </body>
244
+ </html>
245
+
246
+ OUTPUT
247
+ end
248
+
249
+ end