metanorma-iec 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -2
- data/lib/asciidoctor/iec/iec_intro_en.xml +1 -1
- data/lib/asciidoctor/iec/isodoc.rng +174 -0
- data/lib/asciidoctor/iec/isostandard.rng +1 -0
- data/lib/isodoc/iec/iec.international-standard.xsl +65 -0
- data/lib/metanorma/iec/version.rb +1 -1
- data/spec/asciidoctor/base_spec.rb +772 -782
- data/spec/asciidoctor/section_spec.rb +0 -38
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b4e58e3044f0a6f4fd01e08d6fc4e19b4caaa04fe33a295057a96fea097d13c6
|
|
4
|
+
data.tar.gz: 90a31ef3903fb1d5a75a3ee906379d6e31911a983853298ab25565101b605013
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d454b76d5ed87f9cb9c3cfb09ee02777f55b608eacc002ac8b4fccbdf1777b7fb7f987182c5293d5f4f78fd8ce57c0bf7e1cedef8517f826bc43c6217a606d43
|
|
7
|
+
data.tar.gz: ca98d72d39fd8088c1d5daf366748b89807929b05d7e406050b6fda4a688916321334b405ac03a01d198f6f35a7678bc167dbada7cbb944cb5eb40da6bea0397
|
data/.rubocop.yml
CHANGED
|
@@ -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
|
|
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>
|
|
@@ -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'"/>
|
|
@@ -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
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
26
|
+
#{ASCIIDOC_BLANK_HDR}
|
|
28
27
|
INPUT
|
|
29
|
-
|
|
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
|
-
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
<docnumber>1000</docnumber>
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
<version>
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
</relation>
|
|
160
|
-
<relation type='obsoletes'>
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
</relation>
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
</ics>
|
|
181
|
-
<ics>
|
|
182
|
-
|
|
183
|
-
</ics>
|
|
184
|
-
<ics>
|
|
185
|
-
|
|
186
|
-
</ics>
|
|
187
|
-
<structuredidentifier>
|
|
188
|
-
|
|
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
|
-
|
|
197
|
-
|
|
198
|
-
<boilerplate>
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
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
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
<boilerplate>
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
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
|
-
|
|
587
|
-
doc =
|
|
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
|
-
|
|
600
|
+
end
|
|
605
601
|
|
|
606
|
-
|
|
607
|
-
doc =
|
|
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
|
-
|
|
620
|
+
end
|
|
625
621
|
|
|
626
|
-
|
|
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
|
-
|
|
638
|
-
<bibdata type="standard">
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
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
|
-
|
|
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
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
</
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
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
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
</
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
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
|