metanorma-iso 2.1.3 → 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1023,202 +1023,202 @@ RSpec.describe Metanorma::ISO do
1023
1023
  INPUT
1024
1024
  output = <<~OUTPUT
1025
1025
  #{BLANK_HDR}
1026
- <sections>
1027
- <clause id="_" inline-header="false" obligation="normative">
1028
- <title>Clause 1</title>
1029
- <p id="_">
1030
- <eref bibitemid="ref1" citeas="ISO 123" type="inline"/>
1031
- <eref bibitemid="ref1a" citeas="ISO 123-100" type="inline"/>
1032
- <eref bibitemid="ref1b" citeas="ISO/TS 123-1" type="inline"/>
1033
- <eref bibitemid="ref2" citeas="ISO/IEC 123" type="inline"/>
1034
- <eref bibitemid="ref3" citeas="IEC 123" type="inline"/>
1035
- <eref bibitemid="ref4" citeas="GB 123" type="inline"/>
1036
- <eref bibitemid="ref5" citeas="[6]" type="inline"/>
1037
- <eref bibitemid="ref6" citeas="[B]" type="inline"/>
1038
- <eref bibitemid="ref7" citeas="[A]" type="inline"/>
1039
- <xref target="ref8"/>
1040
- <xref target="ref9"/>
1041
- <eref bibitemid="ref10" citeas="ISO/IEC 123" type="inline"/>
1042
- </p>
1043
- </clause>
1044
- </sections>
1045
- <bibliography>
1046
- <clause id="_" obligation="informative">
1047
- <title>Bibliography</title>
1048
- <references id="_" normative="false" obligation="informative">
1049
- <title>Clause 1</title>
1050
- <bibitem id="ref1" type="standard">
1051
- <title format="text/plain">Standard ISO 123</title>
1052
- <docidentifier>ISO 123</docidentifier>
1053
- <docnumber>123</docnumber>
1054
- <contributor>
1055
- <role type="publisher"/>
1056
- <organization>
1057
- <name>International Organization for Standardization</name>
1058
- <abbreviation>ISO</abbreviation>
1059
- </organization>
1060
- </contributor>
1061
- </bibitem>
1062
- <bibitem id="ref2" type="standard">
1063
- <title format="text/plain">Standard ISO/IEC 123</title>
1064
- <docidentifier>ISO/IEC 123</docidentifier>
1065
- <docnumber>123</docnumber>
1066
- <contributor>
1067
- <role type="publisher"/>
1068
- <organization>
1069
- <name>International Organization for Standardization</name>
1070
- <abbreviation>ISO</abbreviation>
1071
- </organization>
1072
- </contributor>
1073
- <contributor>
1074
- <role type="publisher"/>
1075
- <organization>
1076
- <name>International Electrotechnical Commission</name>
1077
- <abbreviation>IEC</abbreviation>
1078
- </organization>
1079
- </contributor>
1080
- </bibitem>
1081
- <bibitem id="ref1b" type="standard">
1082
- <title format="text/plain">Standard ISO 123</title>
1083
- <docidentifier>ISO/TS 123-1</docidentifier>
1084
- <docnumber>123-1</docnumber>
1085
- <contributor>
1086
- <role type="publisher"/>
1087
- <organization>
1088
- <name>International Organization for Standardization</name>
1089
- <abbreviation>ISO</abbreviation>
1090
- </organization>
1091
- </contributor>
1092
- <contributor>
1093
- <role type="publisher"/>
1094
- <organization>
1095
- <name>TS</name>
1096
- </organization>
1097
- </contributor>
1098
- </bibitem>
1099
- <bibitem id="ref1a" type="standard">
1100
- <title format="text/plain">Standard ISO 123</title>
1101
- <docidentifier>ISO 123-100</docidentifier>
1102
- <docnumber>123-100</docnumber>
1103
- <contributor>
1104
- <role type="publisher"/>
1105
- <organization>
1106
- <name>International Organization for Standardization</name>
1107
- <abbreviation>ISO</abbreviation>
1108
- </organization>
1109
- </contributor>
1110
- </bibitem>
1111
- <bibitem id="ref3" type="standard">
1112
- <title format="text/plain">Standard IEC 123</title>
1113
- <docidentifier>IEC 123</docidentifier>
1114
- <docnumber>123</docnumber>
1115
- <contributor>
1116
- <role type="publisher"/>
1117
- <organization>
1118
- <name>International Electrotechnical Commission</name>
1119
- <abbreviation>IEC</abbreviation>
1120
- </organization>
1121
- </contributor>
1122
- </bibitem>
1123
- <bibitem id="ref5">
1124
- <formattedref format="application/x-isodoc+xml">
1125
- <em>Standard 10</em>
1126
- </formattedref>
1127
- <docidentifier type="metanorma">[6]</docidentifier>
1128
- </bibitem>
1129
- <bibitem id="ref6">
1130
- <formattedref format="application/x-isodoc+xml">
1131
- <em>Standard 20</em>
1132
- </formattedref>
1133
- <docidentifier type="metanorma">[B]</docidentifier>
1134
- </bibitem>
1135
- <bibitem id="ref7">
1136
- <formattedref format="application/x-isodoc+xml">
1137
- <em>Standard 30</em>
1138
- </formattedref>
1139
- <docidentifier type="metanorma">[A]</docidentifier>
1140
- </bibitem>
1141
- <bibitem id="ref4">
1142
- <formattedref format="application/x-isodoc+xml">
1143
- <em>Standard GB 123</em>
1144
- </formattedref>
1145
- <docidentifier>GB 123</docidentifier>
1146
- <docnumber>123</docnumber>
1147
- </bibitem>
1148
- </references>
1149
- <references id="_" normative="false" obligation="informative">
1150
- <bibitem id="ref11" type="standard">
1151
- <title format="text/plain">Standard ISO 123</title>
1152
- <docidentifier>ISO 123</docidentifier>
1153
- <docnumber>123</docnumber>
1154
- <contributor>
1155
- <role type="publisher"/>
1156
- <organization>
1157
- <name>International Organization for Standardization</name>
1158
- <abbreviation>ISO</abbreviation>
1159
- </organization>
1160
- </contributor>
1161
- </bibitem>
1162
- <bibitem id="ref10" type="standard">
1163
- <title format="text/plain">Standard ISO/IEC 123</title>
1164
- <docidentifier>ISO/IEC 123</docidentifier>
1165
- <docnumber>123</docnumber>
1166
- <contributor>
1167
- <role type="publisher"/>
1168
- <organization>
1169
- <name>International Organization for Standardization</name>
1170
- <abbreviation>ISO</abbreviation>
1171
- </organization>
1172
- </contributor>
1173
- <contributor>
1174
- <role type="publisher"/>
1175
- <organization>
1176
- <name>International Electrotechnical Commission</name>
1177
- <abbreviation>IEC</abbreviation>
1178
- </organization>
1179
- </contributor>
1180
- </bibitem>
1181
- <bibitem id="ref13" type="standard">
1182
- <title format="text/plain">Standard IEC 123</title>
1183
- <docidentifier>IEC 123</docidentifier>
1184
- <docnumber>123</docnumber>
1185
- <contributor>
1186
- <role type="publisher"/>
1187
- <organization>
1188
- <name>International Electrotechnical Commission</name>
1189
- <abbreviation>IEC</abbreviation>
1190
- </organization>
1191
- </contributor>
1192
- </bibitem>
1193
- <bibitem id="ref15">
1194
- <formattedref format="application/x-isodoc+xml">
1195
- <em>Standard 10</em>
1196
- </formattedref>
1197
- <docidentifier type="metanorma">[13]</docidentifier>
1198
- </bibitem>
1199
- <bibitem id="ref16">
1200
- <formattedref format="application/x-isodoc+xml">
1201
- <em>Standard 20</em>
1202
- </formattedref>
1203
- <docidentifier type="metanorma">[B]</docidentifier>
1204
- </bibitem>
1205
- <bibitem id="ref17">
1206
- <formattedref format="application/x-isodoc+xml">
1207
- <em>Standard 30</em>
1208
- </formattedref>
1209
- <docidentifier type="metanorma">[A]</docidentifier>
1210
- </bibitem>
1211
- <bibitem id="ref14">
1212
- <formattedref format="application/x-isodoc+xml">
1213
- <em>Standard GB 123</em>
1214
- </formattedref>
1215
- <docidentifier>GB 123</docidentifier>
1216
- <docnumber>123</docnumber>
1217
- </bibitem>
1218
- </references>
1219
- </clause>
1220
- </bibliography>
1221
- </iso-standard>
1026
+ <sections>
1027
+ <clause id='_' inline-header='false' obligation='normative'>
1028
+ <title>Clause 1</title>
1029
+ <p id='_'>
1030
+ <eref type='inline' bibitemid='ref1' citeas='ISO 123'/>
1031
+ <eref type='inline' bibitemid='ref1a' citeas='ISO 123-100'/>
1032
+ <eref type='inline' bibitemid='ref1b' citeas='ISO/TS 123-1'/>
1033
+ <eref type='inline' bibitemid='ref2' citeas='ISO/IEC 123'/>
1034
+ <eref type='inline' bibitemid='ref3' citeas='IEC 123'/>
1035
+ <eref type='inline' bibitemid='ref4' citeas='GB 123'/>
1036
+ <eref type='inline' bibitemid='ref5' citeas='[7]'/>
1037
+ <eref type='inline' bibitemid='ref6' citeas='[B]'/>
1038
+ <eref type='inline' bibitemid='ref7' citeas='[A]'/>
1039
+ <xref target='ref8'/>
1040
+ <xref target='ref9'/>
1041
+ <eref type='inline' bibitemid='ref10' citeas='ISO/IEC 123'/>
1042
+ </p>
1043
+ </clause>
1044
+ </sections>
1045
+ <bibliography>
1046
+ <clause id='_' obligation='informative'>
1047
+ <title>Bibliography</title>
1048
+ <references id='_' normative='false' obligation='informative'>
1049
+ <title>Clause 1</title>
1050
+ <bibitem id='ref1' type='standard'>
1051
+ <title format='text/plain'>Standard ISO 123</title>
1052
+ <docidentifier>ISO 123</docidentifier>
1053
+ <docnumber>123</docnumber>
1054
+ <contributor>
1055
+ <role type='publisher'/>
1056
+ <organization>
1057
+ <name>International Organization for Standardization</name>
1058
+ <abbreviation>ISO</abbreviation>
1059
+ </organization>
1060
+ </contributor>
1061
+ </bibitem>
1062
+ <bibitem id='ref2' type='standard'>
1063
+ <title format='text/plain'>Standard ISO/IEC 123</title>
1064
+ <docidentifier>ISO/IEC 123</docidentifier>
1065
+ <docnumber>123</docnumber>
1066
+ <contributor>
1067
+ <role type='publisher'/>
1068
+ <organization>
1069
+ <name>International Organization for Standardization</name>
1070
+ <abbreviation>ISO</abbreviation>
1071
+ </organization>
1072
+ </contributor>
1073
+ <contributor>
1074
+ <role type='publisher'/>
1075
+ <organization>
1076
+ <name>International Electrotechnical Commission</name>
1077
+ <abbreviation>IEC</abbreviation>
1078
+ </organization>
1079
+ </contributor>
1080
+ </bibitem>
1081
+ <bibitem id='ref1b' type='standard'>
1082
+ <title format='text/plain'>Standard ISO 123</title>
1083
+ <docidentifier>ISO/TS 123-1</docidentifier>
1084
+ <docnumber>123-1</docnumber>
1085
+ <contributor>
1086
+ <role type='publisher'/>
1087
+ <organization>
1088
+ <name>International Organization for Standardization</name>
1089
+ <abbreviation>ISO</abbreviation>
1090
+ </organization>
1091
+ </contributor>
1092
+ <contributor>
1093
+ <role type='publisher'/>
1094
+ <organization>
1095
+ <name>TS</name>
1096
+ </organization>
1097
+ </contributor>
1098
+ </bibitem>
1099
+ <bibitem id='ref1a' type='standard'>
1100
+ <title format='text/plain'>Standard ISO 123</title>
1101
+ <docidentifier>ISO 123-100</docidentifier>
1102
+ <docnumber>123-100</docnumber>
1103
+ <contributor>
1104
+ <role type='publisher'/>
1105
+ <organization>
1106
+ <name>International Organization for Standardization</name>
1107
+ <abbreviation>ISO</abbreviation>
1108
+ </organization>
1109
+ </contributor>
1110
+ </bibitem>
1111
+ <bibitem id='ref3' type='standard'>
1112
+ <title format='text/plain'>Standard IEC 123</title>
1113
+ <docidentifier>IEC 123</docidentifier>
1114
+ <docnumber>123</docnumber>
1115
+ <contributor>
1116
+ <role type='publisher'/>
1117
+ <organization>
1118
+ <name>International Electrotechnical Commission</name>
1119
+ <abbreviation>IEC</abbreviation>
1120
+ </organization>
1121
+ </contributor>
1122
+ </bibitem>
1123
+ <bibitem id='ref4'>
1124
+ <formattedref format='application/x-isodoc+xml'>
1125
+ <em>Standard GB 123</em>
1126
+ </formattedref>
1127
+ <docidentifier>GB 123</docidentifier>
1128
+ <docnumber>123</docnumber>
1129
+ </bibitem>
1130
+ <bibitem id='ref5'>
1131
+ <formattedref format='application/x-isodoc+xml'>
1132
+ <em>Standard 10</em>
1133
+ </formattedref>
1134
+ <docidentifier type='metanorma'>[7]</docidentifier>
1135
+ </bibitem>
1136
+ <bibitem id='ref7'>
1137
+ <formattedref format='application/x-isodoc+xml'>
1138
+ <em>Standard 30</em>
1139
+ </formattedref>
1140
+ <docidentifier type='metanorma'>[A]</docidentifier>
1141
+ </bibitem>
1142
+ <bibitem id='ref6'>
1143
+ <formattedref format='application/x-isodoc+xml'>
1144
+ <em>Standard 20</em>
1145
+ </formattedref>
1146
+ <docidentifier type='metanorma'>[B]</docidentifier>
1147
+ </bibitem>
1148
+ </references>
1149
+ <references id='_' normative='false' obligation='informative'>
1150
+ <bibitem id='ref11' type='standard'>
1151
+ <title format='text/plain'>Standard ISO 123</title>
1152
+ <docidentifier>ISO 123</docidentifier>
1153
+ <docnumber>123</docnumber>
1154
+ <contributor>
1155
+ <role type='publisher'/>
1156
+ <organization>
1157
+ <name>International Organization for Standardization</name>
1158
+ <abbreviation>ISO</abbreviation>
1159
+ </organization>
1160
+ </contributor>
1161
+ </bibitem>
1162
+ <bibitem id='ref10' type='standard'>
1163
+ <title format='text/plain'>Standard ISO/IEC 123</title>
1164
+ <docidentifier>ISO/IEC 123</docidentifier>
1165
+ <docnumber>123</docnumber>
1166
+ <contributor>
1167
+ <role type='publisher'/>
1168
+ <organization>
1169
+ <name>International Organization for Standardization</name>
1170
+ <abbreviation>ISO</abbreviation>
1171
+ </organization>
1172
+ </contributor>
1173
+ <contributor>
1174
+ <role type='publisher'/>
1175
+ <organization>
1176
+ <name>International Electrotechnical Commission</name>
1177
+ <abbreviation>IEC</abbreviation>
1178
+ </organization>
1179
+ </contributor>
1180
+ </bibitem>
1181
+ <bibitem id='ref13' type='standard'>
1182
+ <title format='text/plain'>Standard IEC 123</title>
1183
+ <docidentifier>IEC 123</docidentifier>
1184
+ <docnumber>123</docnumber>
1185
+ <contributor>
1186
+ <role type='publisher'/>
1187
+ <organization>
1188
+ <name>International Electrotechnical Commission</name>
1189
+ <abbreviation>IEC</abbreviation>
1190
+ </organization>
1191
+ </contributor>
1192
+ </bibitem>
1193
+ <bibitem id='ref14'>
1194
+ <formattedref format='application/x-isodoc+xml'>
1195
+ <em>Standard GB 123</em>
1196
+ </formattedref>
1197
+ <docidentifier>GB 123</docidentifier>
1198
+ <docnumber>123</docnumber>
1199
+ </bibitem>
1200
+ <bibitem id='ref15'>
1201
+ <formattedref format='application/x-isodoc+xml'>
1202
+ <em>Standard 10</em>
1203
+ </formattedref>
1204
+ <docidentifier type='metanorma'>[14]</docidentifier>
1205
+ </bibitem>
1206
+ <bibitem id='ref17'>
1207
+ <formattedref format='application/x-isodoc+xml'>
1208
+ <em>Standard 30</em>
1209
+ </formattedref>
1210
+ <docidentifier type='metanorma'>[A]</docidentifier>
1211
+ </bibitem>
1212
+ <bibitem id='ref16'>
1213
+ <formattedref format='application/x-isodoc+xml'>
1214
+ <em>Standard 20</em>
1215
+ </formattedref>
1216
+ <docidentifier type='metanorma'>[B]</docidentifier>
1217
+ </bibitem>
1218
+ </references>
1219
+ </clause>
1220
+ </bibliography>
1221
+ </iso-standard>
1222
1222
  OUTPUT
1223
1223
  expect(xmlpp(strip_guid(Asciidoctor.convert(input, *OPTIONS))))
1224
1224
  .to be_equivalent_to xmlpp(output)