metanorma-iec 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc0ee8f0d0923ed5a23f0e0b2b848f7638a3145b9bd5d76b164df2aa52d9c23c
4
- data.tar.gz: a784c0a3ffa08411f53f7375cd1ff00b23bcd5e5170123a7c8fc7735b307ba25
3
+ metadata.gz: b4e58e3044f0a6f4fd01e08d6fc4e19b4caaa04fe33a295057a96fea097d13c6
4
+ data.tar.gz: 90a31ef3903fb1d5a75a3ee906379d6e31911a983853298ab25565101b605013
5
5
  SHA512:
6
- metadata.gz: 27986c3e678e1c211b1dead573d496997296f2c3e8226b5550dcf673a4149921d963e49551c91d1063d68655ddeb0015ed007e019bf93f5bc28501a1c4e6c7fe
7
- data.tar.gz: b22477bc92a6b47a268400a5ced0c89b306cd8b9a8fbdfec73bcc32e51de1ee6c10d91e6ef968fc6cc904a158999815a36b1abe37017fb20fcbaebc0b826383a
6
+ metadata.gz: d454b76d5ed87f9cb9c3cfb09ee02777f55b608eacc002ac8b4fccbdf1777b7fb7f987182c5293d5f4f78fd8ce57c0bf7e1cedef8517f826bc43c6217a606d43
7
+ data.tar.gz: ca98d72d39fd8088c1d5daf366748b89807929b05d7e406050b6fda4a688916321334b405ac03a01d198f6f35a7678bc167dbada7cbb944cb5eb40da6bea0397
data/.rubocop.yml CHANGED
@@ -10,5 +10,3 @@ AllCops:
10
10
  DisplayCopNames: false
11
11
  StyleGuideCopsOnly: false
12
12
  TargetRubyVersion: 2.4
13
- Rails:
14
- Enabled: true
@@ -50,7 +50,7 @@
50
50
  <license-statement>
51
51
  <clause>
52
52
  {% if stage_int < 50 %}
53
- <p>This document is still under study and subject to change. It should not be used for reference purposes.</p>
53
+ <p>This document is still under study and subject to change. It should not be used for reference purposes.
54
54
  until published as such.</p>
55
55
  {% endif %}
56
56
  {% if stage_int >= 50 %}
@@ -876,6 +876,18 @@
876
876
  </zeroOrMore>
877
877
  </element>
878
878
  </define>
879
+ <define name="pagebreak">
880
+ <element name="pagebreak">
881
+ <optional>
882
+ <attribute name="orientation">
883
+ <choice>
884
+ <value>landscape</value>
885
+ <value>portrait</value>
886
+ </choice>
887
+ </attribute>
888
+ </optional>
889
+ </element>
890
+ </define>
879
891
  </include>
880
892
  <!-- end overrides -->
881
893
  <define name="colgroup">
@@ -943,8 +955,170 @@
943
955
  <ref name="permission"/>
944
956
  <ref name="imagemap"/>
945
957
  <ref name="svgmap"/>
958
+ <ref name="inputform"/>
959
+ </choice>
960
+ </define>
961
+ <define name="inputform">
962
+ <element name="form">
963
+ <attribute name="id">
964
+ <data type="ID"/>
965
+ </attribute>
966
+ <attribute name="name"/>
967
+ <attribute name="action"/>
968
+ <zeroOrMore>
969
+ <choice>
970
+ <ref name="TextElement"/>
971
+ <ref name="FormInput"/>
972
+ </choice>
973
+ </zeroOrMore>
974
+ </element>
975
+ </define>
976
+ <define name="FormInput">
977
+ <choice>
978
+ <ref name="input"/>
979
+ <ref name="formlabel"/>
980
+ <ref name="select"/>
981
+ <ref name="textarea"/>
982
+ </choice>
983
+ </define>
984
+ <define name="InputType">
985
+ <choice>
986
+ <value>button</value>
987
+ <value>checkbox</value>
988
+ <value>date</value>
989
+ <value>file</value>
990
+ <value>password</value>
991
+ <value>radio</value>
992
+ <value>submit</value>
993
+ <value>text</value>
946
994
  </choice>
947
995
  </define>
996
+ <define name="input">
997
+ <element name="input">
998
+ <attribute name="type">
999
+ <ref name="InputType"/>
1000
+ </attribute>
1001
+ <optional>
1002
+ <attribute name="checked">
1003
+ <data type="boolean"/>
1004
+ </attribute>
1005
+ </optional>
1006
+ <optional>
1007
+ <attribute name="disabled">
1008
+ <data type="boolean"/>
1009
+ </attribute>
1010
+ </optional>
1011
+ <optional>
1012
+ <attribute name="readonly">
1013
+ <data type="boolean"/>
1014
+ </attribute>
1015
+ </optional>
1016
+ <optional>
1017
+ <attribute name="maxlength">
1018
+ <data type="int"/>
1019
+ </attribute>
1020
+ </optional>
1021
+ <optional>
1022
+ <attribute name="minlength">
1023
+ <data type="int"/>
1024
+ </attribute>
1025
+ </optional>
1026
+ <optional>
1027
+ <attribute name="name"/>
1028
+ </optional>
1029
+ <optional>
1030
+ <attribute name="value"/>
1031
+ </optional>
1032
+ <optional>
1033
+ <attribute name="id">
1034
+ <data type="ID"/>
1035
+ </attribute>
1036
+ </optional>
1037
+ </element>
1038
+ </define>
1039
+ <define name="formlabel">
1040
+ <element name="label">
1041
+ <attribute name="for">
1042
+ <data type="IDREF"/>
1043
+ </attribute>
1044
+ <zeroOrMore>
1045
+ <ref name="PureTextElement"/>
1046
+ </zeroOrMore>
1047
+ </element>
1048
+ </define>
1049
+ <define name="select">
1050
+ <element name="select">
1051
+ <optional>
1052
+ <attribute name="name"/>
1053
+ </optional>
1054
+ <optional>
1055
+ <attribute name="value"/>
1056
+ </optional>
1057
+ <optional>
1058
+ <attribute name="id">
1059
+ <data type="ID"/>
1060
+ </attribute>
1061
+ </optional>
1062
+ <optional>
1063
+ <attribute name="disabled">
1064
+ <data type="boolean"/>
1065
+ </attribute>
1066
+ </optional>
1067
+ <optional>
1068
+ <attribute name="multiple">
1069
+ <data type="boolean"/>
1070
+ </attribute>
1071
+ </optional>
1072
+ <optional>
1073
+ <attribute name="size">
1074
+ <data type="int"/>
1075
+ </attribute>
1076
+ </optional>
1077
+ <oneOrMore>
1078
+ <ref name="option"/>
1079
+ </oneOrMore>
1080
+ </element>
1081
+ </define>
1082
+ <define name="option">
1083
+ <element name="option">
1084
+ <optional>
1085
+ <attribute name="disabled">
1086
+ <data type="boolean"/>
1087
+ </attribute>
1088
+ </optional>
1089
+ <optional>
1090
+ <attribute name="value"/>
1091
+ </optional>
1092
+ <zeroOrMore>
1093
+ <ref name="PureTextElement"/>
1094
+ </zeroOrMore>
1095
+ </element>
1096
+ </define>
1097
+ <define name="textarea">
1098
+ <element name="textarea">
1099
+ <optional>
1100
+ <attribute name="name"/>
1101
+ </optional>
1102
+ <optional>
1103
+ <attribute name="value"/>
1104
+ </optional>
1105
+ <optional>
1106
+ <attribute name="id">
1107
+ <data type="ID"/>
1108
+ </attribute>
1109
+ </optional>
1110
+ <optional>
1111
+ <attribute name="rows">
1112
+ <data type="int"/>
1113
+ </attribute>
1114
+ </optional>
1115
+ <optional>
1116
+ <attribute name="cols">
1117
+ <data type="int"/>
1118
+ </attribute>
1119
+ </optional>
1120
+ </element>
1121
+ </define>
948
1122
  <define name="bibliography">
949
1123
  <element name="bibliography">
950
1124
  <oneOrMore>
@@ -256,6 +256,7 @@
256
256
  <value>guide</value>
257
257
  <value>amendment</value>
258
258
  <value>technical-corrigendum</value>
259
+ <value>directive</value>
259
260
  </choice>
260
261
  </define>
261
262
  <define name="structuredidentifier">
@@ -3783,6 +3783,7 @@
3783
3783
 
3784
3784
 
3785
3785
 
3786
+
3786
3787
  <xsl:if test="ancestor::*[local-name() = 'tfoot']">
3787
3788
  <xsl:attribute name="border">solid black 0</xsl:attribute>
3788
3789
  </xsl:if>
@@ -6412,6 +6413,70 @@
6412
6413
  <xsl:value-of select="substring(.,1,1)"/>
6413
6414
  </xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
6414
6415
  <fo:inline><xsl:apply-templates/></fo:inline>
6416
+ </xsl:template><xsl:template match="*[local-name() = 'form']">
6417
+ <fo:block>
6418
+ <xsl:apply-templates/>
6419
+ </fo:block>
6420
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'label']">
6421
+ <fo:inline><xsl:apply-templates/></fo:inline>
6422
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'text' or @type = 'date' or @type = 'file' or @type = 'password']">
6423
+ <fo:inline>
6424
+ <xsl:call-template name="text_input"/>
6425
+ </fo:inline>
6426
+ </xsl:template><xsl:template name="text_input">
6427
+ <xsl:variable name="count">
6428
+ <xsl:choose>
6429
+ <xsl:when test="normalize-space(@maxlength) != ''"><xsl:value-of select="@maxlength"/></xsl:when>
6430
+ <xsl:when test="normalize-space(@size) != ''"><xsl:value-of select="@size"/></xsl:when>
6431
+ <xsl:otherwise>10</xsl:otherwise>
6432
+ </xsl:choose>
6433
+ </xsl:variable>
6434
+ <xsl:call-template name="repeat">
6435
+ <xsl:with-param name="char" select="'_'"/>
6436
+ <xsl:with-param name="count" select="$count"/>
6437
+ </xsl:call-template>
6438
+ <xsl:text> </xsl:text>
6439
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'button']">
6440
+ <xsl:variable name="caption">
6441
+ <xsl:choose>
6442
+ <xsl:when test="normalize-space(@value) != ''"><xsl:value-of select="@value"/></xsl:when>
6443
+ <xsl:otherwise>BUTTON</xsl:otherwise>
6444
+ </xsl:choose>
6445
+ </xsl:variable>
6446
+ <fo:inline>[<xsl:value-of select="$caption"/>]</fo:inline>
6447
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'checkbox']">
6448
+ <fo:inline padding-right="1mm">
6449
+ <fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
6450
+ <xsl:attribute name="height">3.5mm</xsl:attribute>
6451
+ <xsl:attribute name="content-width">100%</xsl:attribute>
6452
+ <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
6453
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
6454
+ <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
6455
+ <polyline points="0,0 80,0 80,80 0,80 0,0" stroke="black" stroke-width="5" fill="white"/>
6456
+ </svg>
6457
+ </fo:instream-foreign-object>
6458
+ </fo:inline>
6459
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'radio']">
6460
+ <fo:inline padding-right="1mm">
6461
+ <fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
6462
+ <xsl:attribute name="height">3.5mm</xsl:attribute>
6463
+ <xsl:attribute name="content-width">100%</xsl:attribute>
6464
+ <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
6465
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
6466
+ <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
6467
+ <circle cx="40" cy="40" r="30" stroke="black" stroke-width="5" fill="white"/>
6468
+ <circle cx="40" cy="40" r="15" stroke="black" stroke-width="5" fill="white"/>
6469
+ </svg>
6470
+ </fo:instream-foreign-object>
6471
+ </fo:inline>
6472
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'select']">
6473
+ <fo:inline>
6474
+ <xsl:call-template name="text_input"/>
6475
+ </fo:inline>
6476
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'textarea']">
6477
+ <fo:block-container border="1pt solid black" width="50%">
6478
+ <fo:block> </fo:block>
6479
+ </fo:block-container>
6415
6480
  </xsl:template><xsl:template name="convertDate">
6416
6481
  <xsl:param name="date"/>
6417
6482
  <xsl:param name="format" select="'short'"/>
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "1.3.1".freeze
3
+ VERSION = "1.3.2".freeze
4
4
  end
5
5
  end
6
6
 
@@ -2,33 +2,32 @@ require "spec_helper"
2
2
  require "fileutils"
3
3
 
4
4
  RSpec.describe Asciidoctor::Iec do
5
- before(:all) do
6
- @blank_hdr = blank_hdr_gen
7
- end
8
-
5
+ before(:all) do
6
+ @blank_hdr = blank_hdr_gen
7
+ end
9
8
 
10
9
  it "has a version number" do
11
10
  expect(Metanorma::Iec::VERSION).not_to be nil
12
11
  end
13
12
 
14
- #it "generates output for the Rice document" do
15
- #FileUtils.rm_f %w(spec/examples/rice.xml spec/examples/rice.doc spec/examples/rice.html spec/examples/rice_alt.html)
16
- #FileUtils.cd "spec/examples"
17
- #Asciidoctor.convert_file "rice.adoc", {:attributes=>{"backend"=>"iso"}, :safe=>0, :header_footer=>true, :requires=>["metanorma-iso"], :failure_level=>4, :mkdirs=>true, :to_file=>nil}
18
- #FileUtils.cd "../.."
19
- #expect(File.exist?("spec/examples/rice.xml")).to be true
20
- #expect(File.exist?("spec/examples/rice.doc")).to be true
21
- #expect(File.exist?("spec/examples/rice.html")).to be true
22
- #expect(File.exist?("spec/examples/rice_alt.html")).to be true
23
- #end
13
+ # it "generates output for the Rice document" do
14
+ # FileUtils.rm_f %w(spec/examples/rice.xml spec/examples/rice.doc spec/examples/rice.html spec/examples/rice_alt.html)
15
+ # FileUtils.cd "spec/examples"
16
+ # Asciidoctor.convert_file "rice.adoc", {:attributes=>{"backend"=>"iso"}, :safe=>0, :header_footer=>true, :requires=>["metanorma-iso"], :failure_level=>4, :mkdirs=>true, :to_file=>nil}
17
+ # FileUtils.cd "../.."
18
+ # expect(File.exist?("spec/examples/rice.xml")).to be true
19
+ # expect(File.exist?("spec/examples/rice.doc")).to be true
20
+ # expect(File.exist?("spec/examples/rice.html")).to be true
21
+ # expect(File.exist?("spec/examples/rice_alt.html")).to be true
22
+ # end
24
23
 
25
24
  it "processes a blank document" do
26
25
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
27
- #{ASCIIDOC_BLANK_HDR}
26
+ #{ASCIIDOC_BLANK_HDR}
28
27
  INPUT
29
- #{@blank_hdr}
30
- <sections/>
31
- </iec-standard>
28
+ #{@blank_hdr}
29
+ <sections/>
30
+ </iec-standard>
32
31
  OUTPUT
33
32
  end
34
33
 
@@ -43,9 +42,9 @@ end
43
42
  :novalid:
44
43
  :no-isobib:
45
44
  INPUT
46
- #{@blank_hdr}
47
- <sections/>
48
- </iec-standard>
45
+ #{@blank_hdr}
46
+ <sections/>
47
+ </iec-standard>
49
48
  OUTPUT
50
49
  expect(File.exist?("test.pdf")).to be true
51
50
  expect(File.exist?("test.html")).to be true
@@ -103,235 +102,233 @@ end
103
102
  :interest-to-committees: TC 6121, SC 12
104
103
  :obsoletes: ABC; DEF
105
104
  INPUT
106
- <?xml version="1.0" encoding="UTF-8"?>
107
- <iec-standard xmlns="https://www.metanorma.org/ns/iec" type="semantic" version="#{Metanorma::Iec::VERSION}">
108
- <bibdata type="standard">
109
- <title language="en" format="text/plain" type="main">Introduction — Main Title — Title — Title Part</title>
110
- <title language="en" format="text/plain" type="title-intro">Introduction</title>
111
- <title language="en" format="text/plain" type="title-main">Main Title — Title</title>
112
- <title language="en" format="text/plain" type="title-part">Title Part</title>
113
- <title language="fr" format="text/plain" type="main">Introduction Française — Titre Principal — Part du Titre</title>
114
- <title language="fr" format="text/plain" type="title-intro">Introduction Française</title>
115
- <title language="fr" format="text/plain" type="title-main">Titre Principal</title>
116
- <title language="fr" format="text/plain" type="title-part">Part du Titre</title>
117
- <docidentifier type="ISO">IEC/3NWIP 1000-1 ED 2</docidentifier>
118
- <docnumber>1000</docnumber>
119
- <contributor>
120
- <role type="author"/>
121
- <organization>
122
- <name>International Electrotechnical Commission</name>
123
- <abbreviation>IEC</abbreviation>
124
- </organization>
125
- </contributor>
126
- <contributor>
127
- <role type="publisher"/>
128
- <organization>
129
- <name>International Electrotechnical Commission</name>
130
- <abbreviation>IEC</abbreviation>
131
- </organization>
132
- </contributor>
133
- <edition>2</edition>
134
- <version>
135
- <revision-date>2000-01-01</revision-date>
136
- <draft>0.3.4</draft>
137
- </version>
138
- <language>en</language>
139
- <script>Latn</script>
140
- <status>
141
- <stage abbreviation="NWIP">10</stage>
142
- <substage abbreviation="??">20</substage>
143
- <iteration>3</iteration>
144
- </status>
145
- <copyright>
146
- <from>#{Date.today.year}</from>
147
- <owner>
148
- <organization>
149
- <name>International Electrotechnical Commission</name>
150
- <abbreviation>IEC</abbreviation>
151
- </organization>
152
- </owner>
153
- </copyright>
154
- <relation type='obsoletes'>
155
- <bibitem>
156
- <title>--</title>
157
- <docidentifier>ABC</docidentifier>
158
- </bibitem>
159
- </relation>
160
- <relation type='obsoletes'>
161
- <bibitem>
162
- <title>--</title>
163
- <docidentifier>DEF</docidentifier>
164
- </bibitem>
165
- </relation>
166
- <ext>
167
- <doctype>article</doctype>
168
- <horizontal>false</horizontal>
169
- <editorialgroup>
170
- <technical-committee number="1" type="A">TC</technical-committee>
171
- <technical-committee number="11" type="A1">TC1</technical-committee>
172
- <subcommittee number="2" type="B">SC</subcommittee>
173
- <subcommittee number="21" type="B1">SC1</subcommittee>
174
- <workgroup number="3" type="C">WG</workgroup>
175
- <workgroup number="31" type="C1">WG1</workgroup>
176
- <secretariat>SECRETARIAT</secretariat>
177
- </editorialgroup>
178
- <ics>
179
- <code>1</code>
180
- </ics>
181
- <ics>
182
- <code>2</code>
183
- </ics>
184
- <ics>
185
- <code>3</code>
186
- </ics>
187
- <structuredidentifier>
188
- <project-number part="1">IEC 1000</project-number>
189
- </structuredidentifier>
190
- <stagename>New work item proposal</stagename>
191
- <accessibility-color-inside>true</accessibility-color-inside>
192
- <price-code>XC</price-code>
193
- <cen-processing>true</cen-processing>
194
- <secretary>Fred Nerk</secretary>
195
- <interest-to-committees>TC 6121, SC 12</interest-to-committees>
196
- </ext>
197
- </bibdata>
198
- <boilerplate>
199
- <copyright-statement>
200
- <clause>
201
- <p id='_'>
202
- <strong>Copyright © #{Time.now.year} International Electrotechnical Commission, IEC.</strong>
203
- All rights reserved. It is permitted to download this electronic
204
- file, to make a copy and to print out the content for the sole purpose
205
- of preparing National Committee positions. You may not copy or
206
- “mirror” the file or printed version of the document, or any part of
207
- it, for any other purpose without permission in writing from IEC.
208
- </p>
209
- </clause>
210
- </copyright-statement>
211
- <legal-statement>
212
- <clause>
213
- <ol id='_'>
214
- <li>
215
- <p id='_'>
216
- The International Electrotechnical Commission (IEC) is a worldwide
217
- organization for standardization comprising all national
218
- electrotechnical committees (IEC National Committees). The object
219
- of IEC is to promote international co-operation on all questions
220
- concerning standardization in the electrical and electronic
221
- fields. To this end and in addition to other activities, IEC
222
- publishes International Standards, Technical Specifications,
223
- Technical Reports, Publicly Available Specifications (PAS) and
224
- Guides (hereafter referred to as “IEC Publication(s)”). Their
225
- preparation is entrusted to technical committees; any IEC National
226
- Committee interested in the subject dealt with may participate in
227
- this preparatory work. International, governmental and
228
- non-governmental organizations liaising with the IEC also
229
- participate in this preparation. IEC collaborates closely with the
230
- International Organization for Standardization (ISO) in accordance
231
- with conditions determined by agreement between the two
232
- organizations.
233
- </p>
234
- </li>
235
- <li>
236
- <p id='_'>
237
- The formal decisions or agreements of IEC on technical matters
238
- express, as nearly as possible, an international consensus of
239
- opinion on the relevant subjects since each technical committee
240
- has representation from all interested IEC National Committees.
241
- </p>
242
- </li>
243
- <li>
244
- <p id='_'>
245
- IEC Publications have the form of recommendations for
246
- international use and are accepted by IEC National Committees in
247
- that sense. While all reasonable efforts are made to ensure that
248
- the technical content of IEC Publications is accurate, IEC cannot
249
- be held responsible for the way in which they are used or for any
250
- misinterpretation by any end user.
251
- </p>
252
- </li>
253
- <li>
254
- <p id='_'>
255
- In order to promote international uniformity, IEC National
256
- Committees undertake to apply IEC Publications transparently to
257
- the maximum extent possible in their national and regional
258
- publications. Any divergence between any IEC Publication and the
259
- corresponding national or regional publication shall be clearly
260
- indicated in the latter.
261
- </p>
262
- </li>
263
- <li>
264
- <p id='_'>
265
- IEC itself does not provide any attestation of conformity.
266
- Independent certification bodies provide conformity assessment
267
- services and, in some areas, access to IEC marks of conformity.
268
- IEC is not responsible for any services carried out by independent
269
- certification bodies.
270
- </p>
271
- </li>
272
- <li>
273
- <p id='_'>All users should ensure that they have the latest edition of this publication.</p>
274
- </li>
275
- <li>
276
- <p id='_'>
277
- No liability shall attach to IEC or its directors, employees,
278
- servants or agents including individual experts and members of its
279
- technical committees and IEC National Committees for any personal
280
- injury, property damage or other damage of any nature whatsoever,
281
- whether direct or indirect, or for costs (including legal fees)
282
- and expenses arising out of the publication, use of, or reliance
283
- upon, this IEC Publication or any other IEC Publications.
284
- </p>
285
- </li>
286
- <li>
287
- <p id='_'>
288
- Attention is drawn to the Normative references cited in this
289
- publication. Use of the referenced publications is indispensable
290
- for the correct application of this publication.
291
- </p>
292
- </li>
293
- <li>
294
- <p id='_'>
295
- Attention is drawn to the possibility that some of the elements of
296
- this IEC Publication may be the subject of patent rights. IEC
297
- shall not be held responsible for identifying any or all such
298
- patent rights.
299
- </p>
300
- </li>
301
- </ol>
302
- </clause>
303
- </legal-statement>
304
- <license-statement>
305
- <clause>
306
- <p id='_'>
307
- This document is still under study and subject to change. It should
308
- not be used for reference purposes.
309
- </p>
310
- until published as such.
311
- <p id='_'>
312
- Recipients of this document are invited to submit, with their
313
- comments, notification of any relevant patent rights of which they are
314
- aware and to provide supporting documentation.
315
- </p>
316
- </clause>
317
- </license-statement>
318
- <feedback-statement>
319
- <clause id='boilerplate-cenelec-attention'>
320
- <title>Attention IEC-CENELEC parallel voting</title>
321
- <p id='_'>
322
- The attention of IEC National Committees, members of CENELEC, is drawn
323
- to the fact that this (NWIP) is submitted for parallel voting.
324
- </p>
325
- <p id='_'>The CENELEC members are invited to vote through the CENELEC voting system.</p>
326
- </clause>
327
- </feedback-statement>
328
- </boilerplate>
329
- <sections/>
330
- </iec-standard>
105
+ <?xml version="1.0" encoding="UTF-8"?>
106
+ <iec-standard xmlns="https://www.metanorma.org/ns/iec" type="semantic" version="#{Metanorma::Iec::VERSION}">
107
+ <bibdata type="standard">
108
+ <title language="en" format="text/plain" type="main">Introduction — Main Title — Title — Title Part</title>
109
+ <title language="en" format="text/plain" type="title-intro">Introduction</title>
110
+ <title language="en" format="text/plain" type="title-main">Main Title — Title</title>
111
+ <title language="en" format="text/plain" type="title-part">Title Part</title>
112
+ <title language="fr" format="text/plain" type="main">Introduction Française — Titre Principal — Part du Titre</title>
113
+ <title language="fr" format="text/plain" type="title-intro">Introduction Française</title>
114
+ <title language="fr" format="text/plain" type="title-main">Titre Principal</title>
115
+ <title language="fr" format="text/plain" type="title-part">Part du Titre</title>
116
+ <docidentifier type="ISO">IEC/3NWIP 1000-1 ED 2</docidentifier>
117
+ <docnumber>1000</docnumber>
118
+ <contributor>
119
+ <role type="author"/>
120
+ <organization>
121
+ <name>International Electrotechnical Commission</name>
122
+ <abbreviation>IEC</abbreviation>
123
+ </organization>
124
+ </contributor>
125
+ <contributor>
126
+ <role type="publisher"/>
127
+ <organization>
128
+ <name>International Electrotechnical Commission</name>
129
+ <abbreviation>IEC</abbreviation>
130
+ </organization>
131
+ </contributor>
132
+ <edition>2</edition>
133
+ <version>
134
+ <revision-date>2000-01-01</revision-date>
135
+ <draft>0.3.4</draft>
136
+ </version>
137
+ <language>en</language>
138
+ <script>Latn</script>
139
+ <status>
140
+ <stage abbreviation="NWIP">10</stage>
141
+ <substage abbreviation="??">20</substage>
142
+ <iteration>3</iteration>
143
+ </status>
144
+ <copyright>
145
+ <from>#{Date.today.year}</from>
146
+ <owner>
147
+ <organization>
148
+ <name>International Electrotechnical Commission</name>
149
+ <abbreviation>IEC</abbreviation>
150
+ </organization>
151
+ </owner>
152
+ </copyright>
153
+ <relation type='obsoletes'>
154
+ <bibitem>
155
+ <title>--</title>
156
+ <docidentifier>ABC</docidentifier>
157
+ </bibitem>
158
+ </relation>
159
+ <relation type='obsoletes'>
160
+ <bibitem>
161
+ <title>--</title>
162
+ <docidentifier>DEF</docidentifier>
163
+ </bibitem>
164
+ </relation>
165
+ <ext>
166
+ <doctype>article</doctype>
167
+ <horizontal>false</horizontal>
168
+ <editorialgroup>
169
+ <technical-committee number="1" type="A">TC</technical-committee>
170
+ <technical-committee number="11" type="A1">TC1</technical-committee>
171
+ <subcommittee number="2" type="B">SC</subcommittee>
172
+ <subcommittee number="21" type="B1">SC1</subcommittee>
173
+ <workgroup number="3" type="C">WG</workgroup>
174
+ <workgroup number="31" type="C1">WG1</workgroup>
175
+ <secretariat>SECRETARIAT</secretariat>
176
+ </editorialgroup>
177
+ <ics>
178
+ <code>1</code>
179
+ </ics>
180
+ <ics>
181
+ <code>2</code>
182
+ </ics>
183
+ <ics>
184
+ <code>3</code>
185
+ </ics>
186
+ <structuredidentifier>
187
+ <project-number part="1">IEC 1000</project-number>
188
+ </structuredidentifier>
189
+ <stagename>New work item proposal</stagename>
190
+ <accessibility-color-inside>true</accessibility-color-inside>
191
+ <price-code>XC</price-code>
192
+ <cen-processing>true</cen-processing>
193
+ <secretary>Fred Nerk</secretary>
194
+ <interest-to-committees>TC 6121, SC 12</interest-to-committees>
195
+ </ext>
196
+ </bibdata>
197
+ <boilerplate>
198
+ <copyright-statement>
199
+ <clause>
200
+ <p id='_'>
201
+ <strong>Copyright © #{Time.now.year} International Electrotechnical Commission, IEC.</strong>
202
+ All rights reserved. It is permitted to download this electronic
203
+ file, to make a copy and to print out the content for the sole purpose
204
+ of preparing National Committee positions. You may not copy or
205
+ “mirror” the file or printed version of the document, or any part of
206
+ it, for any other purpose without permission in writing from IEC.
207
+ </p>
208
+ </clause>
209
+ </copyright-statement>
210
+ <legal-statement>
211
+ <clause>
212
+ <ol id='_'>
213
+ <li>
214
+ <p id='_'>
215
+ The International Electrotechnical Commission (IEC) is a worldwide
216
+ organization for standardization comprising all national
217
+ electrotechnical committees (IEC National Committees). The object
218
+ of IEC is to promote international co-operation on all questions
219
+ concerning standardization in the electrical and electronic
220
+ fields. To this end and in addition to other activities, IEC
221
+ publishes International Standards, Technical Specifications,
222
+ Technical Reports, Publicly Available Specifications (PAS) and
223
+ Guides (hereafter referred to as “IEC Publication(s)”). Their
224
+ preparation is entrusted to technical committees; any IEC National
225
+ Committee interested in the subject dealt with may participate in
226
+ this preparatory work. International, governmental and
227
+ non-governmental organizations liaising with the IEC also
228
+ participate in this preparation. IEC collaborates closely with the
229
+ International Organization for Standardization (ISO) in accordance
230
+ with conditions determined by agreement between the two
231
+ organizations.
232
+ </p>
233
+ </li>
234
+ <li>
235
+ <p id='_'>
236
+ The formal decisions or agreements of IEC on technical matters
237
+ express, as nearly as possible, an international consensus of
238
+ opinion on the relevant subjects since each technical committee
239
+ has representation from all interested IEC National Committees.
240
+ </p>
241
+ </li>
242
+ <li>
243
+ <p id='_'>
244
+ IEC Publications have the form of recommendations for
245
+ international use and are accepted by IEC National Committees in
246
+ that sense. While all reasonable efforts are made to ensure that
247
+ the technical content of IEC Publications is accurate, IEC cannot
248
+ be held responsible for the way in which they are used or for any
249
+ misinterpretation by any end user.
250
+ </p>
251
+ </li>
252
+ <li>
253
+ <p id='_'>
254
+ In order to promote international uniformity, IEC National
255
+ Committees undertake to apply IEC Publications transparently to
256
+ the maximum extent possible in their national and regional
257
+ publications. Any divergence between any IEC Publication and the
258
+ corresponding national or regional publication shall be clearly
259
+ indicated in the latter.
260
+ </p>
261
+ </li>
262
+ <li>
263
+ <p id='_'>
264
+ IEC itself does not provide any attestation of conformity.
265
+ Independent certification bodies provide conformity assessment
266
+ services and, in some areas, access to IEC marks of conformity.
267
+ IEC is not responsible for any services carried out by independent
268
+ certification bodies.
269
+ </p>
270
+ </li>
271
+ <li>
272
+ <p id='_'>All users should ensure that they have the latest edition of this publication.</p>
273
+ </li>
274
+ <li>
275
+ <p id='_'>
276
+ No liability shall attach to IEC or its directors, employees,
277
+ servants or agents including individual experts and members of its
278
+ technical committees and IEC National Committees for any personal
279
+ injury, property damage or other damage of any nature whatsoever,
280
+ whether direct or indirect, or for costs (including legal fees)
281
+ and expenses arising out of the publication, use of, or reliance
282
+ upon, this IEC Publication or any other IEC Publications.
283
+ </p>
284
+ </li>
285
+ <li>
286
+ <p id='_'>
287
+ Attention is drawn to the Normative references cited in this
288
+ publication. Use of the referenced publications is indispensable
289
+ for the correct application of this publication.
290
+ </p>
291
+ </li>
292
+ <li>
293
+ <p id='_'>
294
+ Attention is drawn to the possibility that some of the elements of
295
+ this IEC Publication may be the subject of patent rights. IEC
296
+ shall not be held responsible for identifying any or all such
297
+ patent rights.
298
+ </p>
299
+ </li>
300
+ </ol>
301
+ </clause>
302
+ </legal-statement>
303
+ <license-statement>
304
+ <clause>
305
+ <p id='_'>
306
+ This document is still under study and subject to change. It should
307
+ not be used for reference purposes.
308
+ </p>
309
+ <p id='_'>
310
+ Recipients of this document are invited to submit, with their
311
+ comments, notification of any relevant patent rights of which they are
312
+ aware and to provide supporting documentation.
313
+ </p>
314
+ </clause>
315
+ </license-statement>
316
+ <feedback-statement>
317
+ <clause id='boilerplate-cenelec-attention'>
318
+ <title>Attention IEC-CENELEC parallel voting</title>
319
+ <p id='_'>
320
+ The attention of IEC National Committees, members of CENELEC, is drawn
321
+ to the fact that this (NWIP) is submitted for parallel voting.
322
+ </p>
323
+ <p id='_'>The CENELEC members are invited to vote through the CENELEC voting system.</p>
324
+ </clause>
325
+ </feedback-statement>
326
+ </boilerplate>
327
+ <sections/>
328
+ </iec-standard>
331
329
  OUTPUT
332
330
  end
333
331
 
334
-
335
332
  it "processes complex metadata" do
336
333
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
337
334
  = Document title
@@ -352,239 +349,238 @@ end
352
349
  :function: emc
353
350
  :horizontal: true
354
351
  INPUT
355
- <?xml version="1.0" encoding="UTF-8"?>
356
- <iec-standard xmlns="https://www.metanorma.org/ns/iec" type="semantic" version="#{Metanorma::Iec::VERSION}">
357
- <bibdata type="standard">
358
- <docidentifier type="ISO">ISO/IEC/IETF/2CDTS 1000-1-1 ED 1</docidentifier>
359
- <docidentifier type="iso-tc">2000</docidentifier>
360
- <docnumber>1000</docnumber>
361
- <contributor>
362
- <role type="author"/>
363
- <organization>
364
- <name>International Electrotechnical Commission</name>
365
- <abbreviation>IEC</abbreviation>
366
- </organization>
367
- </contributor>
368
- <contributor>
369
- <role type="author"/>
370
- <organization>
371
- <name>IETF</name>
372
- </organization>
373
- </contributor>
374
- <contributor>
375
- <role type="author"/>
376
- <organization>
377
- <name>International Organization for Standardization</name>
378
- <abbreviation>ISO</abbreviation>
379
- </organization>
380
- </contributor>
381
- <contributor>
382
- <role type="publisher"/>
383
- <organization>
384
- <name>International Electrotechnical Commission</name>
385
- <abbreviation>IEC</abbreviation>
386
- </organization>
387
- </contributor>
388
- <contributor>
389
- <role type="publisher"/>
390
- <organization>
391
- <name>IETF</name>
392
- </organization>
393
- </contributor>
394
- <contributor>
395
- <role type="publisher"/>
396
- <organization>
397
- <name>International Organization for Standardization</name>
398
- <abbreviation>ISO</abbreviation>
399
- </organization>
400
- </contributor>
401
- <language>el</language>
402
- <script>Grek</script>
403
- <status>
404
- <stage abbreviation="CD">30</stage>
405
- <substage abbreviation="A22CD">99</substage>
406
- <iteration>2</iteration>
407
- </status>
408
- <copyright>
409
- <from>2001</from>
410
- <owner>
411
- <organization>
412
- <name>International Electrotechnical Commission</name>
413
- <abbreviation>IEC</abbreviation>
414
- </organization>
415
- </owner>
416
- </copyright>
417
- <copyright>
418
- <from>2001</from>
419
- <owner>
420
- <organization>
421
- <name>IETF</name>
422
- </organization>
423
- </owner>
424
- </copyright>
425
- <copyright>
426
- <from>2001</from>
427
- <owner>
428
- <organization>
429
- <name>International Organization for Standardization</name>
430
- <abbreviation>ISO</abbreviation>
431
- </organization>
432
- </owner>
433
- </copyright>
434
- <ext>
435
- <doctype>technical-specification</doctype>
436
- <horizontal>true</horizontal>
437
- <function>emc</function>
438
- <editorialgroup>
439
- <technical-committee/>
440
- <subcommittee/>
441
- <workgroup/>
442
- </editorialgroup>
443
- <structuredidentifier>
444
- <project-number part="1" subpart="1">ISO/IEC/IETF 1000</project-number>
445
- </structuredidentifier>
446
- <stagename>Committee draft</stagename>
447
- </ext>
448
- </bibdata>
449
- <boilerplate>
450
- <copyright-statement>
451
- <clause>
452
- <p id='_'>
453
- <strong>Copyright © 2001 International Electrotechnical Commission, IEC.</strong>
454
- All rights reserved. It is permitted to download this electronic
455
- file, to make a copy and to print out the content for the sole purpose
456
- of preparing National Committee positions. You may not copy or
457
- “mirror” the file or printed version of the document, or any part of
458
- it, for any other purpose without permission in writing from IEC.
459
- </p>
460
- </clause>
461
- </copyright-statement>
462
- <legal-statement>
463
- <clause>
464
- <ol id='_'>
465
- <li>
466
- <p id='_'>
467
- The International Electrotechnical Commission (IEC) is a worldwide
468
- organization for standardization comprising all national
469
- electrotechnical committees (IEC National Committees). The object
470
- of IEC is to promote international co-operation on all questions
471
- concerning standardization in the electrical and electronic
472
- fields. To this end and in addition to other activities, IEC
473
- publishes International Standards, Technical Specifications,
474
- Technical Reports, Publicly Available Specifications (PAS) and
475
- Guides (hereafter referred to as “IEC Publication(s)”). Their
476
- preparation is entrusted to technical committees; any IEC National
477
- Committee interested in the subject dealt with may participate in
478
- this preparatory work. International, governmental and
479
- non-governmental organizations liaising with the IEC also
480
- participate in this preparation. IEC collaborates closely with the
481
- International Organization for Standardization (ISO) in accordance
482
- with conditions determined by agreement between the two
483
- organizations.
484
- </p>
485
- </li>
486
- <li>
487
- <p id='_'>
488
- The formal decisions or agreements of IEC on technical matters
489
- express, as nearly as possible, an international consensus of
490
- opinion on the relevant subjects since each technical committee
491
- has representation from all interested IEC National Committees.
492
- </p>
493
- </li>
494
- <li>
495
- <p id='_'>
496
- IEC Publications have the form of recommendations for
497
- international use and are accepted by IEC National Committees in
498
- that sense. While all reasonable efforts are made to ensure that
499
- the technical content of IEC Publications is accurate, IEC cannot
500
- be held responsible for the way in which they are used or for any
501
- misinterpretation by any end user.
502
- </p>
503
- </li>
504
- <li>
505
- <p id='_'>
506
- In order to promote international uniformity, IEC National
507
- Committees undertake to apply IEC Publications transparently to
508
- the maximum extent possible in their national and regional
509
- publications. Any divergence between any IEC Publication and the
510
- corresponding national or regional publication shall be clearly
511
- indicated in the latter.
512
- </p>
513
- </li>
514
- <li>
515
- <p id='_'>
516
- IEC itself does not provide any attestation of conformity.
517
- Independent certification bodies provide conformity assessment
518
- services and, in some areas, access to IEC marks of conformity.
519
- IEC is not responsible for any services carried out by independent
520
- certification bodies.
521
- </p>
522
- </li>
523
- <li>
524
- <p id='_'>All users should ensure that they have the latest edition of this publication.</p>
525
- </li>
526
- <li>
527
- <p id='_'>
528
- No liability shall attach to IEC or its directors, employees,
529
- servants or agents including individual experts and members of its
530
- technical committees and IEC National Committees for any personal
531
- injury, property damage or other damage of any nature whatsoever,
532
- whether direct or indirect, or for costs (including legal fees)
533
- and expenses arising out of the publication, use of, or reliance
534
- upon, this IEC Publication or any other IEC Publications.
535
- </p>
536
- </li>
537
- <li>
538
- <p id='_'>
539
- Attention is drawn to the Normative references cited in this
540
- publication. Use of the referenced publications is indispensable
541
- for the correct application of this publication.
542
- </p>
543
- </li>
544
- <li>
545
- <p id='_'>
546
- Attention is drawn to the possibility that some of the elements of
547
- this IEC Publication may be the subject of patent rights. IEC
548
- shall not be held responsible for identifying any or all such
549
- patent rights.
550
- </p>
551
- </li>
552
- </ol>
553
- </clause>
554
- </legal-statement>
555
- <license-statement>
556
- <clause>
557
- <p id='_'>
558
- This document is still under study and subject to change. It should
559
- not be used for reference purposes.
560
- </p>
561
- until published as such.
562
- <p id='_'>
563
- Recipients of this document are invited to submit, with their
564
- comments, notification of any relevant patent rights of which they are
565
- aware and to provide supporting documentation.
566
- </p>
567
- </clause>
568
- </license-statement>
569
- <feedback-statement>
570
- <clause id='boilerplate-cenelec-attention'>
571
- <title>Attention IEC-CENELEC parallel voting</title>
572
- <p id='_'>
573
- The attention of IEC National Committees, members of CENELEC, is drawn
574
- to the fact that this Committee Draft (CD) is submitted for parallel
575
- voting.
576
- </p>
577
- <p id='_'>The CENELEC members are invited to vote through the CENELEC voting system.</p>
578
- </clause>
579
- </feedback-statement>
580
- </boilerplate>
581
- <sections/>
582
- </iec-standard>
352
+ <?xml version="1.0" encoding="UTF-8"?>
353
+ <iec-standard xmlns="https://www.metanorma.org/ns/iec" type="semantic" version="#{Metanorma::Iec::VERSION}">
354
+ <bibdata type="standard">
355
+ <docidentifier type="ISO">ISO/IEC/IETF/2CDTS 1000-1-1 ED 1</docidentifier>
356
+ <docidentifier type="iso-tc">2000</docidentifier>
357
+ <docnumber>1000</docnumber>
358
+ <contributor>
359
+ <role type="author"/>
360
+ <organization>
361
+ <name>International Electrotechnical Commission</name>
362
+ <abbreviation>IEC</abbreviation>
363
+ </organization>
364
+ </contributor>
365
+ <contributor>
366
+ <role type="author"/>
367
+ <organization>
368
+ <name>IETF</name>
369
+ </organization>
370
+ </contributor>
371
+ <contributor>
372
+ <role type="author"/>
373
+ <organization>
374
+ <name>International Organization for Standardization</name>
375
+ <abbreviation>ISO</abbreviation>
376
+ </organization>
377
+ </contributor>
378
+ <contributor>
379
+ <role type="publisher"/>
380
+ <organization>
381
+ <name>International Electrotechnical Commission</name>
382
+ <abbreviation>IEC</abbreviation>
383
+ </organization>
384
+ </contributor>
385
+ <contributor>
386
+ <role type="publisher"/>
387
+ <organization>
388
+ <name>IETF</name>
389
+ </organization>
390
+ </contributor>
391
+ <contributor>
392
+ <role type="publisher"/>
393
+ <organization>
394
+ <name>International Organization for Standardization</name>
395
+ <abbreviation>ISO</abbreviation>
396
+ </organization>
397
+ </contributor>
398
+ <language>el</language>
399
+ <script>Grek</script>
400
+ <status>
401
+ <stage abbreviation="CD">30</stage>
402
+ <substage abbreviation="A22CD">99</substage>
403
+ <iteration>2</iteration>
404
+ </status>
405
+ <copyright>
406
+ <from>2001</from>
407
+ <owner>
408
+ <organization>
409
+ <name>International Electrotechnical Commission</name>
410
+ <abbreviation>IEC</abbreviation>
411
+ </organization>
412
+ </owner>
413
+ </copyright>
414
+ <copyright>
415
+ <from>2001</from>
416
+ <owner>
417
+ <organization>
418
+ <name>IETF</name>
419
+ </organization>
420
+ </owner>
421
+ </copyright>
422
+ <copyright>
423
+ <from>2001</from>
424
+ <owner>
425
+ <organization>
426
+ <name>International Organization for Standardization</name>
427
+ <abbreviation>ISO</abbreviation>
428
+ </organization>
429
+ </owner>
430
+ </copyright>
431
+ <ext>
432
+ <doctype>technical-specification</doctype>
433
+ <horizontal>true</horizontal>
434
+ <function>emc</function>
435
+ <editorialgroup>
436
+ <technical-committee/>
437
+ <subcommittee/>
438
+ <workgroup/>
439
+ </editorialgroup>
440
+ <structuredidentifier>
441
+ <project-number part="1" subpart="1">ISO/IEC/IETF 1000</project-number>
442
+ </structuredidentifier>
443
+ <stagename>Committee draft</stagename>
444
+ </ext>
445
+ </bibdata>
446
+ <boilerplate>
447
+ <copyright-statement>
448
+ <clause>
449
+ <p id='_'>
450
+ <strong>Copyright © 2001 International Electrotechnical Commission, IEC.</strong>
451
+ All rights reserved. It is permitted to download this electronic
452
+ file, to make a copy and to print out the content for the sole purpose
453
+ of preparing National Committee positions. You may not copy or
454
+ “mirror” the file or printed version of the document, or any part of
455
+ it, for any other purpose without permission in writing from IEC.
456
+ </p>
457
+ </clause>
458
+ </copyright-statement>
459
+ <legal-statement>
460
+ <clause>
461
+ <ol id='_'>
462
+ <li>
463
+ <p id='_'>
464
+ The International Electrotechnical Commission (IEC) is a worldwide
465
+ organization for standardization comprising all national
466
+ electrotechnical committees (IEC National Committees). The object
467
+ of IEC is to promote international co-operation on all questions
468
+ concerning standardization in the electrical and electronic
469
+ fields. To this end and in addition to other activities, IEC
470
+ publishes International Standards, Technical Specifications,
471
+ Technical Reports, Publicly Available Specifications (PAS) and
472
+ Guides (hereafter referred to as “IEC Publication(s)”). Their
473
+ preparation is entrusted to technical committees; any IEC National
474
+ Committee interested in the subject dealt with may participate in
475
+ this preparatory work. International, governmental and
476
+ non-governmental organizations liaising with the IEC also
477
+ participate in this preparation. IEC collaborates closely with the
478
+ International Organization for Standardization (ISO) in accordance
479
+ with conditions determined by agreement between the two
480
+ organizations.
481
+ </p>
482
+ </li>
483
+ <li>
484
+ <p id='_'>
485
+ The formal decisions or agreements of IEC on technical matters
486
+ express, as nearly as possible, an international consensus of
487
+ opinion on the relevant subjects since each technical committee
488
+ has representation from all interested IEC National Committees.
489
+ </p>
490
+ </li>
491
+ <li>
492
+ <p id='_'>
493
+ IEC Publications have the form of recommendations for
494
+ international use and are accepted by IEC National Committees in
495
+ that sense. While all reasonable efforts are made to ensure that
496
+ the technical content of IEC Publications is accurate, IEC cannot
497
+ be held responsible for the way in which they are used or for any
498
+ misinterpretation by any end user.
499
+ </p>
500
+ </li>
501
+ <li>
502
+ <p id='_'>
503
+ In order to promote international uniformity, IEC National
504
+ Committees undertake to apply IEC Publications transparently to
505
+ the maximum extent possible in their national and regional
506
+ publications. Any divergence between any IEC Publication and the
507
+ corresponding national or regional publication shall be clearly
508
+ indicated in the latter.
509
+ </p>
510
+ </li>
511
+ <li>
512
+ <p id='_'>
513
+ IEC itself does not provide any attestation of conformity.
514
+ Independent certification bodies provide conformity assessment
515
+ services and, in some areas, access to IEC marks of conformity.
516
+ IEC is not responsible for any services carried out by independent
517
+ certification bodies.
518
+ </p>
519
+ </li>
520
+ <li>
521
+ <p id='_'>All users should ensure that they have the latest edition of this publication.</p>
522
+ </li>
523
+ <li>
524
+ <p id='_'>
525
+ No liability shall attach to IEC or its directors, employees,
526
+ servants or agents including individual experts and members of its
527
+ technical committees and IEC National Committees for any personal
528
+ injury, property damage or other damage of any nature whatsoever,
529
+ whether direct or indirect, or for costs (including legal fees)
530
+ and expenses arising out of the publication, use of, or reliance
531
+ upon, this IEC Publication or any other IEC Publications.
532
+ </p>
533
+ </li>
534
+ <li>
535
+ <p id='_'>
536
+ Attention is drawn to the Normative references cited in this
537
+ publication. Use of the referenced publications is indispensable
538
+ for the correct application of this publication.
539
+ </p>
540
+ </li>
541
+ <li>
542
+ <p id='_'>
543
+ Attention is drawn to the possibility that some of the elements of
544
+ this IEC Publication may be the subject of patent rights. IEC
545
+ shall not be held responsible for identifying any or all such
546
+ patent rights.
547
+ </p>
548
+ </li>
549
+ </ol>
550
+ </clause>
551
+ </legal-statement>
552
+ <license-statement>
553
+ <clause>
554
+ <p id='_'>
555
+ This document is still under study and subject to change. It should
556
+ not be used for reference purposes.
557
+ </p>
558
+ <p id='_'>
559
+ Recipients of this document are invited to submit, with their
560
+ comments, notification of any relevant patent rights of which they are
561
+ aware and to provide supporting documentation.
562
+ </p>
563
+ </clause>
564
+ </license-statement>
565
+ <feedback-statement>
566
+ <clause id='boilerplate-cenelec-attention'>
567
+ <title>Attention IEC-CENELEC parallel voting</title>
568
+ <p id='_'>
569
+ The attention of IEC National Committees, members of CENELEC, is drawn
570
+ to the fact that this Committee Draft (CD) is submitted for parallel
571
+ voting.
572
+ </p>
573
+ <p id='_'>The CENELEC members are invited to vote through the CENELEC voting system.</p>
574
+ </clause>
575
+ </feedback-statement>
576
+ </boilerplate>
577
+ <sections/>
578
+ </iec-standard>
583
579
  OUTPUT
584
580
  end
585
581
 
586
- it "processes boilerplate in English" do
587
- doc = (strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))
582
+ it "processes boilerplate in English" do
583
+ doc = strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true))
588
584
  = Document title
589
585
  Author
590
586
  :docfile: test.adoc
@@ -601,10 +597,10 @@ end
601
597
  INPUT
602
598
  expect(doc).to include "including individual experts"
603
599
  expect(doc).not_to include "y compris ses experts particuliers"
604
- end
600
+ end
605
601
 
606
- it "processes boilerplate in French" do
607
- doc = (strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))
602
+ it "processes boilerplate in French" do
603
+ doc = strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true))
608
604
  = Document title
609
605
  Author
610
606
  :docfile: test.adoc
@@ -621,9 +617,9 @@ end
621
617
  INPUT
622
618
  expect(doc).not_to include "including individual experts"
623
619
  expect(doc).to include "y compris ses experts particuliers"
624
- end
620
+ end
625
621
 
626
- it "defaults substage" do
622
+ it "defaults substage" do
627
623
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
628
624
  = Document title
629
625
  Author
@@ -634,198 +630,197 @@ end
634
630
  :docnumber: 1000
635
631
  :docstage: 50
636
632
  INPUT
637
- <iec-standard xmlns="https://www.metanorma.org/ns/iec" type="semantic" version="#{Metanorma::Iec::VERSION}">
638
- <bibdata type="standard">
639
- <docidentifier type="ISO">IEC/FDIS 1000 ED 1</docidentifier>
640
- <docnumber>1000</docnumber>
641
- <contributor>
642
- <role type="author"/>
643
- <organization>
644
- <name>International Electrotechnical Commission</name>
645
- <abbreviation>IEC</abbreviation>
646
- </organization>
647
- </contributor>
648
- <contributor>
649
- <role type="publisher"/>
650
- <organization>
651
- <name>International Electrotechnical Commission</name>
652
- <abbreviation>IEC</abbreviation>
653
- </organization>
654
- </contributor>
655
-
656
- <language>en</language>
657
- <script>Latn</script>
658
- <status>
659
- <stage abbreviation="FDIS">50</stage>
660
- <substage abbreviation="RFDIS">00</substage>
661
- </status>
662
- <copyright>
663
- <from>#{Date.today.year}</from>
664
- <owner>
665
- <organization>
666
- <name>International Electrotechnical Commission</name>
667
- <abbreviation>IEC</abbreviation>
668
- </organization>
669
- </owner>
670
- </copyright>
671
- <ext>
672
- <doctype>article</doctype>
673
- <horizontal>false</horizontal>
674
- <editorialgroup>
675
- <technical-committee/>
676
- <subcommittee/>
677
- <workgroup/>
678
- </editorialgroup>
679
- <structuredidentifier>
680
- <project-number>IEC 1000</project-number>
681
- </structuredidentifier>
682
- <stagename>Final draft international standard</stagename>
683
- </ext>
684
- </bibdata>
685
- <boilerplate>
686
- <copyright-statement>
687
- <clause>
688
- <p id='_'>
689
- <strong>Copyright © #{Time.now.year} International Electrotechnical Commission, IEC.</strong>
690
- All rights reserved. It is permitted to download this electronic
691
- file, to make a copy and to print out the content for the sole purpose
692
- of preparing National Committee positions. You may not copy or
693
- “mirror” the file or printed version of the document, or any part of
694
- it, for any other purpose without permission in writing from IEC.
695
- </p>
696
- </clause>
697
- </copyright-statement>
698
- <legal-statement>
699
- <clause>
700
- <ol id='_'>
701
- <li>
702
- <p id='_'>
703
- The International Electrotechnical Commission (IEC) is a worldwide
704
- organization for standardization comprising all national
705
- electrotechnical committees (IEC National Committees). The object
706
- of IEC is to promote international co-operation on all questions
707
- concerning standardization in the electrical and electronic
708
- fields. To this end and in addition to other activities, IEC
709
- publishes International Standards, Technical Specifications,
710
- Technical Reports, Publicly Available Specifications (PAS) and
711
- Guides (hereafter referred to as IEC Publication(s)”). Their
712
- preparation is entrusted to technical committees; any IEC National
713
- Committee interested in the subject dealt with may participate in
714
- this preparatory work. International, governmental and
715
- non-governmental organizations liaising with the IEC also
716
- participate in this preparation. IEC collaborates closely with the
717
- International Organization for Standardization (ISO) in accordance
718
- with conditions determined by agreement between the two
719
- organizations.
720
- </p>
721
- </li>
722
- <li>
723
- <p id='_'>
724
- The formal decisions or agreements of IEC on technical matters
725
- express, as nearly as possible, an international consensus of
726
- opinion on the relevant subjects since each technical committee
727
- has representation from all interested IEC National Committees.
728
- </p>
729
- </li>
730
- <li>
731
- <p id='_'>
732
- IEC Publications have the form of recommendations for
733
- international use and are accepted by IEC National Committees in
734
- that sense. While all reasonable efforts are made to ensure that
735
- the technical content of IEC Publications is accurate, IEC cannot
736
- be held responsible for the way in which they are used or for any
737
- misinterpretation by any end user.
738
- </p>
739
- </li>
740
- <li>
741
- <p id='_'>
742
- In order to promote international uniformity, IEC National
743
- Committees undertake to apply IEC Publications transparently to
744
- the maximum extent possible in their national and regional
745
- publications. Any divergence between any IEC Publication and the
746
- corresponding national or regional publication shall be clearly
747
- indicated in the latter.
748
- </p>
749
- </li>
750
- <li>
751
- <p id='_'>
752
- IEC itself does not provide any attestation of conformity.
753
- Independent certification bodies provide conformity assessment
754
- services and, in some areas, access to IEC marks of conformity.
755
- IEC is not responsible for any services carried out by independent
756
- certification bodies.
757
- </p>
758
- </li>
759
- <li>
760
- <p id='_'>All users should ensure that they have the latest edition of this publication.</p>
761
- </li>
762
- <li>
763
- <p id='_'>
764
- No liability shall attach to IEC or its directors, employees,
765
- servants or agents including individual experts and members of its
766
- technical committees and IEC National Committees for any personal
767
- injury, property damage or other damage of any nature whatsoever,
768
- whether direct or indirect, or for costs (including legal fees)
769
- and expenses arising out of the publication, use of, or reliance
770
- upon, this IEC Publication or any other IEC Publications.
771
- </p>
772
- </li>
773
- <li>
774
- <p id='_'>
775
- Attention is drawn to the Normative references cited in this
776
- publication. Use of the referenced publications is indispensable
777
- for the correct application of this publication.
778
- </p>
779
- </li>
780
- <li>
781
- <p id='_'>
782
- Attention is drawn to the possibility that some of the elements of
783
- this IEC Publication may be the subject of patent rights. IEC
784
- shall not be held responsible for identifying any or all such
785
- patent rights.
786
- </p>
787
- </li>
788
- </ol>
789
- </clause>
790
- </legal-statement>
791
- <license-statement>
792
- <clause>
793
- <p id='_'>
794
- This document is a draft distributed for approval. It may not be
795
- referred to as an International Standard until published as such.
796
- </p>
797
- <p id='_'>
798
- In addition to their evaluation as being acceptable for industrial,
799
- technological, commercial and user purposes, Final Draft International
800
- Standards may on occasion have to be considered in the light of their
801
- potential to become standards to which reference may be made in
802
- national regulations.
803
- </p>
804
- <p id='_'>
805
- Recipients of this document are invited to submit, with their
806
- comments, notification of any relevant patent rights of which they are
807
- aware and to provide supporting documentation.
808
- </p>
809
- </clause>
810
- </license-statement>
811
- <feedback-statement>
812
- <clause id='boilerplate-cenelec-attention'>
813
- <title>Attention IEC-CENELEC parallel voting</title>
814
- <p id='_'>
815
- The attention of IEC National Committees, members of CENELEC, is drawn
816
- to the fact that this Final Draft International Standard (FDIS) is
817
- submitted for parallel voting.
818
- </p>
819
- <p id='_'>The CENELEC members are invited to vote through the CENELEC voting system.</p>
820
- </clause>
821
- </feedback-statement>
822
- </boilerplate>
823
- <sections/>
824
- </iec-standard>
825
- OUTPUT
826
- end
633
+ <iec-standard xmlns="https://www.metanorma.org/ns/iec" type="semantic" version="#{Metanorma::Iec::VERSION}">
634
+ <bibdata type="standard">
635
+ <docidentifier type="ISO">IEC/FDIS 1000 ED 1</docidentifier>
636
+ <docnumber>1000</docnumber>
637
+ <contributor>
638
+ <role type="author"/>
639
+ <organization>
640
+ <name>International Electrotechnical Commission</name>
641
+ <abbreviation>IEC</abbreviation>
642
+ </organization>
643
+ </contributor>
644
+ <contributor>
645
+ <role type="publisher"/>
646
+ <organization>
647
+ <name>International Electrotechnical Commission</name>
648
+ <abbreviation>IEC</abbreviation>
649
+ </organization>
650
+ </contributor>
651
+ <language>en</language>
652
+ <script>Latn</script>
653
+ <status>
654
+ <stage abbreviation="FDIS">50</stage>
655
+ <substage abbreviation="RFDIS">00</substage>
656
+ </status>
657
+ <copyright>
658
+ <from>#{Date.today.year}</from>
659
+ <owner>
660
+ <organization>
661
+ <name>International Electrotechnical Commission</name>
662
+ <abbreviation>IEC</abbreviation>
663
+ </organization>
664
+ </owner>
665
+ </copyright>
666
+ <ext>
667
+ <doctype>article</doctype>
668
+ <horizontal>false</horizontal>
669
+ <editorialgroup>
670
+ <technical-committee/>
671
+ <subcommittee/>
672
+ <workgroup/>
673
+ </editorialgroup>
674
+ <structuredidentifier>
675
+ <project-number>IEC 1000</project-number>
676
+ </structuredidentifier>
677
+ <stagename>Final draft international standard</stagename>
678
+ </ext>
679
+ </bibdata>
680
+ <boilerplate>
681
+ <copyright-statement>
682
+ <clause>
683
+ <p id='_'>
684
+ <strong>Copyright © #{Time.now.year} International Electrotechnical Commission, IEC.</strong>
685
+ All rights reserved. It is permitted to download this electronic
686
+ file, to make a copy and to print out the content for the sole purpose
687
+ of preparing National Committee positions. You may not copy or
688
+ “mirror” the file or printed version of the document, or any part of
689
+ it, for any other purpose without permission in writing from IEC.
690
+ </p>
691
+ </clause>
692
+ </copyright-statement>
693
+ <legal-statement>
694
+ <clause>
695
+ <ol id='_'>
696
+ <li>
697
+ <p id='_'>
698
+ The International Electrotechnical Commission (IEC) is a worldwide
699
+ organization for standardization comprising all national
700
+ electrotechnical committees (IEC National Committees). The object
701
+ of IEC is to promote international co-operation on all questions
702
+ concerning standardization in the electrical and electronic
703
+ fields. To this end and in addition to other activities, IEC
704
+ publishes International Standards, Technical Specifications,
705
+ Technical Reports, Publicly Available Specifications (PAS) and
706
+ Guides (hereafter referred to as “IEC Publication(s)”). Their
707
+ preparation is entrusted to technical committees; any IEC National
708
+ Committee interested in the subject dealt with may participate in
709
+ this preparatory work. International, governmental and
710
+ non-governmental organizations liaising with the IEC also
711
+ participate in this preparation. IEC collaborates closely with the
712
+ International Organization for Standardization (ISO) in accordance
713
+ with conditions determined by agreement between the two
714
+ organizations.
715
+ </p>
716
+ </li>
717
+ <li>
718
+ <p id='_'>
719
+ The formal decisions or agreements of IEC on technical matters
720
+ express, as nearly as possible, an international consensus of
721
+ opinion on the relevant subjects since each technical committee
722
+ has representation from all interested IEC National Committees.
723
+ </p>
724
+ </li>
725
+ <li>
726
+ <p id='_'>
727
+ IEC Publications have the form of recommendations for
728
+ international use and are accepted by IEC National Committees in
729
+ that sense. While all reasonable efforts are made to ensure that
730
+ the technical content of IEC Publications is accurate, IEC cannot
731
+ be held responsible for the way in which they are used or for any
732
+ misinterpretation by any end user.
733
+ </p>
734
+ </li>
735
+ <li>
736
+ <p id='_'>
737
+ In order to promote international uniformity, IEC National
738
+ Committees undertake to apply IEC Publications transparently to
739
+ the maximum extent possible in their national and regional
740
+ publications. Any divergence between any IEC Publication and the
741
+ corresponding national or regional publication shall be clearly
742
+ indicated in the latter.
743
+ </p>
744
+ </li>
745
+ <li>
746
+ <p id='_'>
747
+ IEC itself does not provide any attestation of conformity.
748
+ Independent certification bodies provide conformity assessment
749
+ services and, in some areas, access to IEC marks of conformity.
750
+ IEC is not responsible for any services carried out by independent
751
+ certification bodies.
752
+ </p>
753
+ </li>
754
+ <li>
755
+ <p id='_'>All users should ensure that they have the latest edition of this publication.</p>
756
+ </li>
757
+ <li>
758
+ <p id='_'>
759
+ No liability shall attach to IEC or its directors, employees,
760
+ servants or agents including individual experts and members of its
761
+ technical committees and IEC National Committees for any personal
762
+ injury, property damage or other damage of any nature whatsoever,
763
+ whether direct or indirect, or for costs (including legal fees)
764
+ and expenses arising out of the publication, use of, or reliance
765
+ upon, this IEC Publication or any other IEC Publications.
766
+ </p>
767
+ </li>
768
+ <li>
769
+ <p id='_'>
770
+ Attention is drawn to the Normative references cited in this
771
+ publication. Use of the referenced publications is indispensable
772
+ for the correct application of this publication.
773
+ </p>
774
+ </li>
775
+ <li>
776
+ <p id='_'>
777
+ Attention is drawn to the possibility that some of the elements of
778
+ this IEC Publication may be the subject of patent rights. IEC
779
+ shall not be held responsible for identifying any or all such
780
+ patent rights.
781
+ </p>
782
+ </li>
783
+ </ol>
784
+ </clause>
785
+ </legal-statement>
786
+ <license-statement>
787
+ <clause>
788
+ <p id='_'>
789
+ This document is a draft distributed for approval. It may not be
790
+ referred to as an International Standard until published as such.
791
+ </p>
792
+ <p id='_'>
793
+ In addition to their evaluation as being acceptable for industrial,
794
+ technological, commercial and user purposes, Final Draft International
795
+ Standards may on occasion have to be considered in the light of their
796
+ potential to become standards to which reference may be made in
797
+ national regulations.
798
+ </p>
799
+ <p id='_'>
800
+ Recipients of this document are invited to submit, with their
801
+ comments, notification of any relevant patent rights of which they are
802
+ aware and to provide supporting documentation.
803
+ </p>
804
+ </clause>
805
+ </license-statement>
806
+ <feedback-statement>
807
+ <clause id='boilerplate-cenelec-attention'>
808
+ <title>Attention IEC-CENELEC parallel voting</title>
809
+ <p id='_'>
810
+ The attention of IEC National Committees, members of CENELEC, is drawn
811
+ to the fact that this Final Draft International Standard (FDIS) is
812
+ submitted for parallel voting.
813
+ </p>
814
+ <p id='_'>The CENELEC members are invited to vote through the CENELEC voting system.</p>
815
+ </clause>
816
+ </feedback-statement>
817
+ </boilerplate>
818
+ <sections/>
819
+ </iec-standard>
820
+ OUTPUT
821
+ end
827
822
 
828
- it "defaults substage for stage 60" do
823
+ it "defaults substage for stage 60" do
829
824
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
830
825
  = Document title
831
826
  Author
@@ -836,59 +831,58 @@ OUTPUT
836
831
  :docnumber: 1000
837
832
  :docstage: 60
838
833
  INPUT
839
- <iec-standard xmlns="https://www.metanorma.org/ns/iec" type="semantic" version="#{Metanorma::Iec::VERSION}">
840
- <bibdata type="standard">
841
- <docidentifier type="ISO">IEC 1000 ED 1</docidentifier>
842
- <docnumber>1000</docnumber>
843
- <contributor>
844
- <role type="author"/>
845
- <organization>
846
- <name>International Electrotechnical Commission</name>
847
- <abbreviation>IEC</abbreviation>
848
- </organization>
849
- </contributor>
850
- <contributor>
851
- <role type="publisher"/>
852
- <organization>
853
- <name>International Electrotechnical Commission</name>
854
- <abbreviation>IEC</abbreviation>
855
- </organization>
856
- </contributor>
857
-
858
- <language>en</language>
859
- <script>Latn</script>
860
- <status>
861
- <stage abbreviation="PPUB">60</stage>
862
- <substage abbreviation="PPUB">60</substage>
863
- </status>
864
- <copyright>
865
- <from>#{Date.today.year}</from>
866
- <owner>
867
- <organization>
868
- <name>International Electrotechnical Commission</name>
869
- <abbreviation>IEC</abbreviation>
870
- </organization>
871
- </owner>
872
- </copyright>
873
- <ext>
874
- <doctype>article</doctype>
875
- <horizontal>false</horizontal>
876
- <editorialgroup>
877
- <technical-committee/>
878
- <subcommittee/>
879
- <workgroup/>
880
- </editorialgroup>
881
- <structuredidentifier>
882
- <project-number>IEC 1000</project-number>
883
- </structuredidentifier>
884
- <stagename>International standard</stagename>
885
- </ext>
886
- </bibdata>
887
- #{boilerplate(Nokogiri::XML(BLANK_HDR + "</iec-standard>"))}
888
- <sections/>
889
- </iec-standard>
890
- OUTPUT
891
- end
834
+ <iec-standard xmlns="https://www.metanorma.org/ns/iec" type="semantic" version="#{Metanorma::Iec::VERSION}">
835
+ <bibdata type="standard">
836
+ <docidentifier type="ISO">IEC 1000 ED 1</docidentifier>
837
+ <docnumber>1000</docnumber>
838
+ <contributor>
839
+ <role type="author"/>
840
+ <organization>
841
+ <name>International Electrotechnical Commission</name>
842
+ <abbreviation>IEC</abbreviation>
843
+ </organization>
844
+ </contributor>
845
+ <contributor>
846
+ <role type="publisher"/>
847
+ <organization>
848
+ <name>International Electrotechnical Commission</name>
849
+ <abbreviation>IEC</abbreviation>
850
+ </organization>
851
+ </contributor>
852
+ <language>en</language>
853
+ <script>Latn</script>
854
+ <status>
855
+ <stage abbreviation="PPUB">60</stage>
856
+ <substage abbreviation="PPUB">60</substage>
857
+ </status>
858
+ <copyright>
859
+ <from>#{Date.today.year}</from>
860
+ <owner>
861
+ <organization>
862
+ <name>International Electrotechnical Commission</name>
863
+ <abbreviation>IEC</abbreviation>
864
+ </organization>
865
+ </owner>
866
+ </copyright>
867
+ <ext>
868
+ <doctype>article</doctype>
869
+ <horizontal>false</horizontal>
870
+ <editorialgroup>
871
+ <technical-committee/>
872
+ <subcommittee/>
873
+ <workgroup/>
874
+ </editorialgroup>
875
+ <structuredidentifier>
876
+ <project-number>IEC 1000</project-number>
877
+ </structuredidentifier>
878
+ <stagename>International standard</stagename>
879
+ </ext>
880
+ </bibdata>
881
+ #{boilerplate(Nokogiri::XML(BLANK_HDR + '</iec-standard>'))}
882
+ <sections/>
883
+ </iec-standard>
884
+ OUTPUT
885
+ end
892
886
 
893
887
  it "populates metadata for PRF" do
894
888
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
@@ -902,60 +896,58 @@ OUTPUT
902
896
  :docstage: 60
903
897
  :docsubstage: 00
904
898
  INPUT
905
- <iec-standard xmlns="https://www.metanorma.org/ns/iec" type="semantic" version="#{Metanorma::Iec::VERSION}">
906
- <bibdata type="standard">
907
- <docidentifier type="ISO">IEC 1000 ED 1</docidentifier>
908
- <docnumber>1000</docnumber>
909
- <contributor>
910
- <role type="author"/>
911
- <organization>
912
- <name>International Electrotechnical Commission</name>
913
- <abbreviation>IEC</abbreviation>
914
- </organization>
915
- </contributor>
916
- <contributor>
917
- <role type="publisher"/>
918
- <organization>
919
- <name>International Electrotechnical Commission</name>
920
- <abbreviation>IEC</abbreviation>
921
- </organization>
922
- </contributor>
923
-
924
- <language>en</language>
925
- <script>Latn</script>
926
- <status>
927
- <stage abbreviation="PPUB">60</stage>
928
- <substage abbreviation="BPUB">00</substage>
929
- </status>
930
- <copyright>
931
- <from>#{Date.today.year}</from>
932
- <owner>
933
- <organization>
934
- <name>International Electrotechnical Commission</name>
935
- <abbreviation>IEC</abbreviation>
936
- </organization>
937
- </owner>
938
- </copyright>
939
- <ext>
940
- <doctype>article</doctype>
941
- <horizontal>false</horizontal>
942
- <editorialgroup>
943
- <technical-committee/>
944
- <subcommittee/>
945
- <workgroup/>
946
- </editorialgroup>
947
- <structuredidentifier>
948
- <project-number>IEC 1000</project-number>
949
- </structuredidentifier>
950
- <stagename>International standard</stagename>
951
- </ext>
952
- </bibdata>
953
- #{boilerplate(Nokogiri::XML(BLANK_HDR + "</iec-standard>"))}
954
- <sections/>
955
- </iec-standard>
956
- OUTPUT
957
- end
958
-
899
+ <iec-standard xmlns="https://www.metanorma.org/ns/iec" type="semantic" version="#{Metanorma::Iec::VERSION}">
900
+ <bibdata type="standard">
901
+ <docidentifier type="ISO">IEC 1000 ED 1</docidentifier>
902
+ <docnumber>1000</docnumber>
903
+ <contributor>
904
+ <role type="author"/>
905
+ <organization>
906
+ <name>International Electrotechnical Commission</name>
907
+ <abbreviation>IEC</abbreviation>
908
+ </organization>
909
+ </contributor>
910
+ <contributor>
911
+ <role type="publisher"/>
912
+ <organization>
913
+ <name>International Electrotechnical Commission</name>
914
+ <abbreviation>IEC</abbreviation>
915
+ </organization>
916
+ </contributor>
917
+ <language>en</language>
918
+ <script>Latn</script>
919
+ <status>
920
+ <stage abbreviation="PPUB">60</stage>
921
+ <substage abbreviation="BPUB">00</substage>
922
+ </status>
923
+ <copyright>
924
+ <from>#{Date.today.year}</from>
925
+ <owner>
926
+ <organization>
927
+ <name>International Electrotechnical Commission</name>
928
+ <abbreviation>IEC</abbreviation>
929
+ </organization>
930
+ </owner>
931
+ </copyright>
932
+ <ext>
933
+ <doctype>article</doctype>
934
+ <horizontal>false</horizontal>
935
+ <editorialgroup>
936
+ <technical-committee/>
937
+ <subcommittee/>
938
+ <workgroup/>
939
+ </editorialgroup>
940
+ <structuredidentifier>
941
+ <project-number>IEC 1000</project-number>
942
+ </structuredidentifier>
943
+ <stagename>International standard</stagename>
944
+ </ext>
945
+ </bibdata>
946
+ #{boilerplate(Nokogiri::XML(BLANK_HDR + '</iec-standard>'))}
947
+ <sections/>
948
+ </iec-standard>
949
+ OUTPUT
950
+ end
959
951
 
960
952
  it "reads scripts into blank HTML document" do
961
953
  FileUtils.rm_f "test.html"
@@ -1040,6 +1032,4 @@ OUTPUT
1040
1032
  expect(word).to match(%r[mso-style-name: "Intro Title";]m)
1041
1033
  expect(html).not_to match(%r[mso-style-name: "Intro Title";]m)
1042
1034
  end
1043
-
1044
-
1045
1035
  end