isodoc 1.8.3.3 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +3 -31
- data/Gemfile +0 -1
- data/lib/isodoc/base_style/all.css +9 -0
- data/lib/isodoc/base_style/reset.css +9 -0
- data/lib/isodoc/base_style/reset.scss +11 -0
- data/lib/isodoc/class_utils.rb +18 -6
- data/lib/isodoc/convert.rb +8 -1
- data/lib/isodoc/function/blocks.rb +4 -1
- data/lib/isodoc/function/references.rb +32 -23
- data/lib/isodoc/function/section_titles.rb +22 -3
- data/lib/isodoc/function/to_word_html.rb +3 -3
- data/lib/isodoc/function/utils.rb +13 -14
- data/lib/isodoc/headlesshtml_convert.rb +1 -1
- data/lib/isodoc/html_convert.rb +1 -1
- data/lib/isodoc/html_function/postprocess.rb +9 -2
- data/lib/isodoc/i18n.rb +6 -3
- data/lib/isodoc/pdf_convert.rb +1 -1
- data/lib/isodoc/presentation_function/bibdata.rb +0 -6
- data/lib/isodoc/presentation_function/section.rb +42 -4
- data/lib/isodoc/presentation_function/terms.rb +25 -20
- data/lib/isodoc/presentation_xml_convert.rb +1 -0
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/xref/xref_sect_gen.rb +7 -3
- data/lib/isodoc/xslfo_convert.rb +1 -1
- data/spec/isodoc/blocks_spec.rb +3 -2
- data/spec/isodoc/postproc_spec.rb +46 -16
- data/spec/isodoc/presentation_xml_spec.rb +208 -37
- data/spec/isodoc/ref_spec.rb +332 -300
- data/spec/isodoc/section_spec.rb +818 -601
- data/spec/isodoc/utils_spec.rb +57 -0
- metadata +7 -6
data/spec/isodoc/section_spec.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
3
|
RSpec.describe IsoDoc do
|
4
|
+
=begin
|
4
5
|
it "processes prefatory blocks" do
|
5
6
|
input = <<~INPUT
|
6
7
|
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
@@ -812,526 +813,530 @@ RSpec.describe IsoDoc do
|
|
812
813
|
</iso-standard>
|
813
814
|
INPUT
|
814
815
|
html = <<~OUTPUT
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
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
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
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
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
816
|
+
<html lang='en'>
|
817
|
+
<head/>
|
818
|
+
<body lang='en'>
|
819
|
+
<div class='title-section'>
|
820
|
+
<p> </p>
|
821
|
+
</div>
|
822
|
+
<br/>
|
823
|
+
<div class='prefatory-section'>
|
824
|
+
<p> </p>
|
825
|
+
</div>
|
826
|
+
<br/>
|
827
|
+
<div class='main-section'>
|
828
|
+
<br/>
|
829
|
+
<div>
|
830
|
+
<h1 class='AbstractTitle'>
|
831
|
+
Abstract
|
832
|
+
<br/>
|
833
|
+
<br/>
|
834
|
+
Variant 1
|
835
|
+
</h1>
|
836
|
+
</div>
|
837
|
+
<br/>
|
838
|
+
<div>
|
839
|
+
<h1 class='ForewordTitle'>
|
840
|
+
Foreword
|
841
|
+
<br/>
|
842
|
+
<br/>
|
843
|
+
Variant 1
|
844
|
+
</h1>
|
845
|
+
<p id='A'>This is a preamble</p>
|
846
|
+
</div>
|
847
|
+
<br/>
|
848
|
+
<div class='Section3' id='B'>
|
849
|
+
<h1 class='IntroTitle'>Introduction</h1>
|
850
|
+
<div id='C'>
|
851
|
+
<h2>
|
852
|
+
Introduction Subsection
|
853
|
+
<br/>
|
854
|
+
<br/>
|
855
|
+
Variant 1
|
856
|
+
</h2>
|
857
|
+
</div>
|
858
|
+
</div>
|
859
|
+
<br/>
|
860
|
+
<div class='Section3' id='B1'>
|
861
|
+
<h1 class='IntroTitle'>
|
862
|
+
Dedication
|
863
|
+
<br/>
|
864
|
+
<br/>
|
865
|
+
Variant 1
|
866
|
+
</h1>
|
867
|
+
</div>
|
868
|
+
<br/>
|
869
|
+
<div class='Section3' id='B2'>
|
870
|
+
<h1 class='IntroTitle'>
|
871
|
+
Note to reader
|
872
|
+
<br/>
|
873
|
+
<br/>
|
874
|
+
Variant 1
|
875
|
+
</h1>
|
876
|
+
</div>
|
877
|
+
<br/>
|
878
|
+
<div class='Section3' id=''>
|
879
|
+
<h1 class='IntroTitle'>
|
880
|
+
Acknowledgements
|
881
|
+
<br/>
|
882
|
+
<br/>
|
883
|
+
Variant 1
|
884
|
+
</h1>
|
885
|
+
</div>
|
886
|
+
<p class='zzSTDTitle1'/>
|
887
|
+
<div id='NN1' class='Note'>
|
888
|
+
<p>
|
889
|
+
<span class='note_label'>NOTE</span>
|
890
|
+
  Initial note
|
891
|
+
</p>
|
892
|
+
</div>
|
893
|
+
<div id='NN2' class='Admonition'>
|
894
|
+
<p class='AdmonitionTitle' style='text-align:center;'>WARNING</p>
|
895
|
+
<p>Initial admonition</p>
|
896
|
+
</div>
|
897
|
+
<div id='D'>
|
898
|
+
<h1>
|
899
|
+
1.  Scope
|
900
|
+
<br/>
|
901
|
+
<br/>
|
902
|
+
Variant 1
|
903
|
+
</h1>
|
904
|
+
<p id='E'>Text</p>
|
905
|
+
</div>
|
906
|
+
<div>
|
907
|
+
<h1>
|
908
|
+
2.  Normative References
|
909
|
+
<br/>
|
910
|
+
<br/>
|
911
|
+
Variant 1
|
912
|
+
</h1>
|
913
|
+
</div>
|
914
|
+
<div id='H'>
|
915
|
+
<h1>
|
916
|
+
3.  Terms, Definitions, Symbols and Abbreviated Terms
|
917
|
+
<br/>
|
918
|
+
<br/>
|
919
|
+
Variant 1
|
920
|
+
</h1>
|
921
|
+
<div id='I'>
|
922
|
+
<h2>
|
923
|
+
3.1.  Normal Terms
|
924
|
+
<br/>
|
925
|
+
<br/>
|
926
|
+
Variant 1
|
927
|
+
</h2>
|
928
|
+
<p class='TermNum' id='J'>3.1.1.</p>
|
929
|
+
<p class='Terms' style='text-align:left;'><b>Term2</b></p>
|
930
|
+
</div>
|
931
|
+
<div id='K'>
|
932
|
+
<h2>
|
933
|
+
3.2.  Definitions
|
934
|
+
<br/>
|
935
|
+
<br/>
|
936
|
+
Variant 1
|
937
|
+
</h2>
|
938
|
+
<dl>
|
939
|
+
<dt>
|
940
|
+
<p>Symbol</p>
|
941
|
+
</dt>
|
942
|
+
<dd>Definition</dd>
|
943
|
+
</dl>
|
944
|
+
</div>
|
945
|
+
</div>
|
946
|
+
<div id='L' class='Symbols'>
|
947
|
+
<h1>
|
948
|
+
4.  Symbols and abbreviated terms
|
949
|
+
<br/>
|
950
|
+
<br/>
|
951
|
+
Variant 1
|
952
|
+
</h1>
|
953
|
+
<dl>
|
954
|
+
<dt>
|
955
|
+
<p>Symbol</p>
|
956
|
+
</dt>
|
957
|
+
<dd>Definition</dd>
|
958
|
+
</dl>
|
959
|
+
</div>
|
960
|
+
<div id='M'>
|
961
|
+
<h1>
|
962
|
+
5.  Clause 4
|
963
|
+
<br/>
|
964
|
+
<br/>
|
965
|
+
Variant 1
|
966
|
+
</h1>
|
967
|
+
<div id='N'>
|
968
|
+
<h2>
|
969
|
+
5.1.  Introduction
|
970
|
+
<br/>
|
971
|
+
<br/>
|
972
|
+
Variant 1
|
973
|
+
</h2>
|
974
|
+
</div>
|
975
|
+
<div id='O'>
|
976
|
+
<h2>
|
977
|
+
5.2.  Clause 4.2
|
978
|
+
<br/>
|
979
|
+
<br/>
|
980
|
+
Variant 1
|
981
|
+
</h2>
|
982
|
+
</div>
|
983
|
+
<div id='O1'>
|
984
|
+
<h2>5.3.</h2>
|
985
|
+
</div>
|
986
|
+
</div>
|
987
|
+
<br/>
|
988
|
+
<div id='P' class='Section3'>
|
989
|
+
<h1 class='Annex'>
|
990
|
+
<b>Annex A</b>
|
991
|
+
<br/>
|
992
|
+
(normative)
|
993
|
+
<br/>
|
994
|
+
<br/>
|
995
|
+
<b>Annex</b>
|
996
|
+
<br/>
|
997
|
+
<br/>
|
998
|
+
Variant 1
|
999
|
+
</h1>
|
1000
|
+
<p style='display:none;' class='variant-title-sub'>Variant 1</p>
|
1001
|
+
<div id='Q'>
|
1002
|
+
<h2>
|
1003
|
+
A.1.  Annex A.1
|
1004
|
+
<br/>
|
1005
|
+
<br/>
|
1006
|
+
Variant 1
|
1007
|
+
</h2>
|
1008
|
+
<div id='Q1'>
|
1009
|
+
<h3>
|
1010
|
+
A.1.1.  Annex A.1a
|
1011
|
+
<br/>
|
1012
|
+
<br/>
|
1013
|
+
Variant 1
|
1014
|
+
</h3>
|
1015
|
+
</div>
|
1016
|
+
<div>
|
1017
|
+
<h3 class='Section3'>
|
1018
|
+
A.1.2.  Annex Bibliography
|
1019
|
+
<br/>
|
1020
|
+
<br/>
|
1021
|
+
Variant 1
|
1022
|
+
</h3>
|
1023
|
+
</div>
|
1024
|
+
</div>
|
1025
|
+
</div>
|
1026
|
+
<br/>
|
1027
|
+
<div id='P1' class='Section3'>
|
1028
|
+
<h1 class='Annex'>
|
1029
|
+
<b>Annex B</b>
|
1030
|
+
<br/>
|
1031
|
+
(normative)
|
1032
|
+
</h1>
|
1033
|
+
</div>
|
1034
|
+
<br/>
|
1035
|
+
<div>
|
1036
|
+
<h1 class='Section3'>Bibliography</h1>
|
1037
|
+
<p style='display:none;' class='variant-title-sub'>Variant 1</p>
|
1038
|
+
<div>
|
1039
|
+
<h2 class='Section3'>
|
1040
|
+
Bibliography Subsection
|
1041
|
+
<br/>
|
1042
|
+
<br/>
|
1043
|
+
Variant 1
|
1044
|
+
</h2>
|
1045
|
+
</div>
|
1046
|
+
</div>
|
1047
|
+
</div>
|
1048
|
+
</body>
|
1049
|
+
</html>
|
1047
1050
|
OUTPUT
|
1048
1051
|
word = <<~OUTPUT
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1052
|
+
<html xmlns:epub='http://www.idpf.org/2007/ops' lang='en'>
|
1053
|
+
<head>
|
1054
|
+
<style>
|
1055
|
+
</style>
|
1056
|
+
</head>
|
1057
|
+
<body lang='EN-US' link='blue' vlink='#954F72'>
|
1058
|
+
<div class='WordSection1'>
|
1059
|
+
<p> </p>
|
1060
|
+
</div>
|
1061
|
+
<p>
|
1062
|
+
<br clear='all' class='section'/>
|
1063
|
+
</p>
|
1064
|
+
<div class='WordSection2'>
|
1065
|
+
<p>
|
1066
|
+
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
1067
|
+
</p>
|
1068
|
+
<div>
|
1069
|
+
<h1 class='AbstractTitle'>
|
1070
|
+
Abstract
|
1071
|
+
<br/>
|
1072
|
+
<br/>
|
1073
|
+
Variant 1
|
1074
|
+
</h1>
|
1075
|
+
</div>
|
1076
|
+
<p>
|
1077
|
+
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
1078
|
+
</p>
|
1079
|
+
<div>
|
1080
|
+
<h1 class='ForewordTitle'>
|
1081
|
+
Foreword
|
1082
|
+
<br/>
|
1083
|
+
<br/>
|
1084
|
+
Variant 1
|
1085
|
+
</h1>
|
1086
|
+
<p id='A'>This is a preamble</p>
|
1087
|
+
</div>
|
1088
|
+
<p>
|
1089
|
+
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
1090
|
+
</p>
|
1091
|
+
<div class='Section3' id='B'>
|
1092
|
+
<h1 class='IntroTitle'>Introduction</h1>
|
1093
|
+
<div id='C'>
|
1094
|
+
<h2>
|
1095
|
+
Introduction Subsection
|
1096
|
+
<br/>
|
1097
|
+
<br/>
|
1098
|
+
Variant 1
|
1099
|
+
</h2>
|
1100
|
+
</div>
|
1101
|
+
</div>
|
1102
|
+
<p>
|
1103
|
+
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
1104
|
+
</p>
|
1105
|
+
<div class='Section3' id='B1'>
|
1106
|
+
<h1 class='IntroTitle'>
|
1107
|
+
Dedication
|
1108
|
+
<br/>
|
1109
|
+
<br/>
|
1110
|
+
Variant 1
|
1111
|
+
</h1>
|
1112
|
+
</div>
|
1113
|
+
<p>
|
1114
|
+
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
1115
|
+
</p>
|
1116
|
+
<div class='Section3' id='B2'>
|
1117
|
+
<h1 class='IntroTitle'>
|
1118
|
+
Note to reader
|
1119
|
+
<br/>
|
1120
|
+
<br/>
|
1121
|
+
Variant 1
|
1122
|
+
</h1>
|
1123
|
+
</div>
|
1124
|
+
<p>
|
1125
|
+
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
1126
|
+
</p>
|
1127
|
+
<div class='Section3' id=''>
|
1128
|
+
<h1 class='IntroTitle'>
|
1129
|
+
Acknowledgements
|
1130
|
+
<br/>
|
1131
|
+
<br/>
|
1132
|
+
Variant 1
|
1133
|
+
</h1>
|
1134
|
+
</div>
|
1135
|
+
<p> </p>
|
1136
|
+
</div>
|
1137
|
+
<p>
|
1138
|
+
<br clear='all' class='section'/>
|
1139
|
+
</p>
|
1140
|
+
<div class='WordSection3'>
|
1141
|
+
<p class='zzSTDTitle1'/>
|
1142
|
+
<div id='NN1' class='Note'>
|
1143
|
+
<p class='Note'>
|
1144
|
+
<span class='note_label'>NOTE</span>
|
1145
|
+
<span style='mso-tab-count:1'>  </span>
|
1146
|
+
Initial note
|
1147
|
+
</p>
|
1148
|
+
</div>
|
1149
|
+
<div id='NN2' class='Admonition'>
|
1150
|
+
<p class='AdmonitionTitle' style='text-align:center;'>WARNING</p>
|
1151
|
+
<p>Initial admonition</p>
|
1152
|
+
</div>
|
1153
|
+
<div id='D'>
|
1154
|
+
<h1>
|
1155
|
+
1.
|
1156
|
+
<span style='mso-tab-count:1'>  </span>
|
1157
|
+
Scope
|
1158
|
+
<br/>
|
1159
|
+
<br/>
|
1160
|
+
Variant 1
|
1161
|
+
</h1>
|
1162
|
+
<p id='E'>Text</p>
|
1163
|
+
</div>
|
1164
|
+
<div>
|
1165
|
+
<h1>
|
1166
|
+
2.
|
1167
|
+
<span style='mso-tab-count:1'>  </span>
|
1168
|
+
Normative References
|
1169
|
+
<br/>
|
1170
|
+
<br/>
|
1171
|
+
Variant 1
|
1172
|
+
</h1>
|
1173
|
+
</div>
|
1174
|
+
<div id='H'>
|
1175
|
+
<h1>
|
1176
|
+
3.
|
1177
|
+
<span style='mso-tab-count:1'>  </span>
|
1178
|
+
Terms, Definitions, Symbols and Abbreviated Terms
|
1179
|
+
<br/>
|
1180
|
+
<br/>
|
1181
|
+
Variant 1
|
1182
|
+
</h1>
|
1183
|
+
<div id='I'>
|
1184
|
+
<h2>
|
1185
|
+
3.1.
|
1186
|
+
<span style='mso-tab-count:1'>  </span>
|
1187
|
+
Normal Terms
|
1188
|
+
<br/>
|
1189
|
+
<br/>
|
1190
|
+
Variant 1
|
1191
|
+
</h2>
|
1192
|
+
<p class='TermNum' id='J'>3.1.1.</p>
|
1193
|
+
<p class='Terms' style='text-align:left;'><b>Term2</b></p>
|
1194
|
+
</div>
|
1195
|
+
<div id='K'>
|
1196
|
+
<h2>
|
1197
|
+
3.2.
|
1198
|
+
<span style='mso-tab-count:1'>  </span>
|
1199
|
+
Definitions
|
1200
|
+
<br/>
|
1201
|
+
<br/>
|
1202
|
+
Variant 1
|
1203
|
+
</h2>
|
1204
|
+
<table class='dl'>
|
1205
|
+
<tr>
|
1206
|
+
<td valign='top' align='left'>
|
1207
|
+
<p align='left' style='margin-left:0pt;text-align:left;'>Symbol</p>
|
1208
|
+
</td>
|
1209
|
+
<td valign='top'>Definition</td>
|
1210
|
+
</tr>
|
1211
|
+
</table>
|
1212
|
+
</div>
|
1213
|
+
</div>
|
1214
|
+
<div id='L' class='Symbols'>
|
1215
|
+
<h1>
|
1216
|
+
4.
|
1217
|
+
<span style='mso-tab-count:1'>  </span>
|
1218
|
+
Symbols and abbreviated terms
|
1219
|
+
<br/>
|
1220
|
+
<br/>
|
1221
|
+
Variant 1
|
1222
|
+
</h1>
|
1223
|
+
<table class='dl'>
|
1224
|
+
<tr>
|
1225
|
+
<td valign='top' align='left'>
|
1226
|
+
<p align='left' style='margin-left:0pt;text-align:left;'>Symbol</p>
|
1227
|
+
</td>
|
1228
|
+
<td valign='top'>Definition</td>
|
1229
|
+
</tr>
|
1230
|
+
</table>
|
1231
|
+
</div>
|
1232
|
+
<div id='M'>
|
1233
|
+
<h1>
|
1234
|
+
5.
|
1235
|
+
<span style='mso-tab-count:1'>  </span>
|
1236
|
+
Clause 4
|
1237
|
+
<br/>
|
1238
|
+
<br/>
|
1239
|
+
Variant 1
|
1240
|
+
</h1>
|
1241
|
+
<div id='N'>
|
1242
|
+
<h2>
|
1243
|
+
5.1.
|
1244
|
+
<span style='mso-tab-count:1'>  </span>
|
1245
|
+
Introduction
|
1246
|
+
<br/>
|
1247
|
+
<br/>
|
1248
|
+
Variant 1
|
1249
|
+
</h2>
|
1250
|
+
</div>
|
1251
|
+
<div id='O'>
|
1252
|
+
<h2>
|
1253
|
+
5.2.
|
1254
|
+
<span style='mso-tab-count:1'>  </span>
|
1255
|
+
Clause 4.2
|
1256
|
+
<br/>
|
1257
|
+
<br/>
|
1258
|
+
Variant 1
|
1259
|
+
</h2>
|
1260
|
+
</div>
|
1261
|
+
<div id='O1'>
|
1262
|
+
<h2>5.3.</h2>
|
1263
|
+
</div>
|
1264
|
+
</div>
|
1265
|
+
<p>
|
1266
|
+
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
1267
|
+
</p>
|
1268
|
+
<div id='P' class='Section3'>
|
1269
|
+
<h1 class='Annex'>
|
1270
|
+
<b>Annex A</b>
|
1271
|
+
<br/>
|
1272
|
+
(normative)
|
1273
|
+
<br/>
|
1274
|
+
<br/>
|
1275
|
+
<b>Annex</b>
|
1276
|
+
<br/>
|
1277
|
+
<br/>
|
1278
|
+
Variant 1
|
1279
|
+
</h1>
|
1280
|
+
<p style='display:none;' class='variant-title-sub'>Variant 1</p>
|
1281
|
+
<div id='Q'>
|
1282
|
+
<h2>
|
1283
|
+
A.1.
|
1284
|
+
<span style='mso-tab-count:1'>  </span>
|
1285
|
+
Annex A.1
|
1286
|
+
<br/>
|
1287
|
+
<br/>
|
1288
|
+
Variant 1
|
1289
|
+
</h2>
|
1290
|
+
<div id='Q1'>
|
1291
|
+
<h3>
|
1292
|
+
A.1.1.
|
1293
|
+
<span style='mso-tab-count:1'>  </span>
|
1294
|
+
Annex A.1a
|
1295
|
+
<br/>
|
1296
|
+
<br/>
|
1297
|
+
Variant 1
|
1298
|
+
</h3>
|
1299
|
+
</div>
|
1300
|
+
<div>
|
1301
|
+
<h3 class='Section3'>
|
1302
|
+
A.1.2.
|
1303
|
+
<span style='mso-tab-count:1'>  </span>
|
1304
|
+
Annex Bibliography
|
1305
|
+
<br/>
|
1306
|
+
<br/>
|
1307
|
+
Variant 1
|
1308
|
+
</h3>
|
1309
|
+
</div>
|
1310
|
+
</div>
|
1311
|
+
</div>
|
1312
|
+
<p>
|
1313
|
+
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
1314
|
+
</p>
|
1315
|
+
<div id='P1' class='Section3'>
|
1316
|
+
<h1 class='Annex'>
|
1317
|
+
<b>Annex B</b>
|
1318
|
+
<br/>
|
1319
|
+
(normative)
|
1320
|
+
</h1>
|
1321
|
+
</div>
|
1322
|
+
<p>
|
1323
|
+
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
1324
|
+
</p>
|
1325
|
+
<div>
|
1326
|
+
<h1 class='Section3'>Bibliography</h1>
|
1327
|
+
<p style='display:none;' class='variant-title-sub'>Variant 1</p>
|
1328
|
+
<div>
|
1329
|
+
<h2 class='Section3'>
|
1330
|
+
Bibliography Subsection
|
1331
|
+
<br/>
|
1332
|
+
<br/>
|
1333
|
+
Variant 1
|
1334
|
+
</h2>
|
1335
|
+
</div>
|
1336
|
+
</div>
|
1337
|
+
</div>
|
1338
|
+
</body>
|
1339
|
+
</html>
|
1335
1340
|
OUTPUT
|
1336
1341
|
presxml = IsoDoc::PresentationXMLConvert.new({})
|
1337
1342
|
.convert("test", input, true)
|
@@ -1487,8 +1492,220 @@ RSpec.describe IsoDoc do
|
|
1487
1492
|
</bibliography>
|
1488
1493
|
</iso-standard>
|
1489
1494
|
OUTPUT
|
1490
|
-
expect(xmlpp(IsoDoc::PresentationXMLConvert
|
1491
|
-
.
|
1495
|
+
expect(xmlpp(IsoDoc::PresentationXMLConvert
|
1496
|
+
.new({ suppressheadingnumbers: true })
|
1497
|
+
.convert("test", input, true))).to be_equivalent_to xmlpp(output)
|
1498
|
+
end
|
1499
|
+
=end
|
1500
|
+
it "processes floating titles" do
|
1501
|
+
input = <<~INPUT
|
1502
|
+
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
1503
|
+
<preface>
|
1504
|
+
<floating-title depth="1">A0</p>
|
1505
|
+
<introduction id="B" obligation="informative">
|
1506
|
+
<title>Introduction</title>
|
1507
|
+
<floating-title depth="1">A</p>
|
1508
|
+
<clause id="B1" obligation="informative">
|
1509
|
+
<title>Introduction Subsection</title>
|
1510
|
+
<floating-title depth="2">B</p>
|
1511
|
+
<clause id="B2" obligation="informative">
|
1512
|
+
<title>Introduction Sub-subsection</title>
|
1513
|
+
<floating-title depth="1">C</p>
|
1514
|
+
</clause>
|
1515
|
+
</clause>
|
1516
|
+
</introduction>
|
1517
|
+
</preface>
|
1518
|
+
<sections>
|
1519
|
+
<clause id="C" obligation="informative">
|
1520
|
+
<title>Introduction</title>
|
1521
|
+
<floating-title depth="1">A</p>
|
1522
|
+
<clause id="C1" obligation="informative">
|
1523
|
+
<title>Introduction Subsection</title>
|
1524
|
+
<floating-title depth="2">B</p>
|
1525
|
+
<clause id="C2" obligation="informative">
|
1526
|
+
<title>Introduction Sub-subsection</title>
|
1527
|
+
<floating-title depth="1">C</p>
|
1528
|
+
</clause>
|
1529
|
+
</clause>
|
1530
|
+
</clause>
|
1531
|
+
<floating-title depth="1">D</p>
|
1532
|
+
<clause id="C4"><title>Clause 2</title></clause>
|
1533
|
+
</sections>
|
1534
|
+
</iso-standard>
|
1535
|
+
INPUT
|
1536
|
+
|
1537
|
+
presxml = <<~PRESXML
|
1538
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type='presentation'>
|
1539
|
+
<preface>
|
1540
|
+
<p depth='1' type='floating-title' displayorder='1'>A0</p>
|
1541
|
+
<introduction id='B' obligation='informative' displayorder='2'>
|
1542
|
+
<title>Introduction</title>
|
1543
|
+
<p depth='1' type='floating-title'>A</p>
|
1544
|
+
<clause id='B1' obligation='informative'>
|
1545
|
+
<title depth='2'>Introduction Subsection</title>
|
1546
|
+
<p depth='2' type='floating-title'>B</p>
|
1547
|
+
<clause id='B2' obligation='informative'>
|
1548
|
+
<title depth='3'>Introduction Sub-subsection</title>
|
1549
|
+
<p depth='1' type='floating-title'>C</p>
|
1550
|
+
</clause>
|
1551
|
+
</clause>
|
1552
|
+
</introduction>
|
1553
|
+
</preface>
|
1554
|
+
<sections>
|
1555
|
+
<clause id='C' obligation='informative' displayorder='3'>
|
1556
|
+
<title depth='1'>
|
1557
|
+
1.
|
1558
|
+
<tab/>
|
1559
|
+
Introduction
|
1560
|
+
</title>
|
1561
|
+
<p depth='1' type='floating-title'>A</p>
|
1562
|
+
<clause id='C1' obligation='informative'>
|
1563
|
+
<title depth='2'>
|
1564
|
+
1.1.
|
1565
|
+
<tab/>
|
1566
|
+
Introduction Subsection
|
1567
|
+
</title>
|
1568
|
+
<p depth='2' type='floating-title'>B</p>
|
1569
|
+
<clause id='C2' obligation='informative'>
|
1570
|
+
<title depth='3'>
|
1571
|
+
1.1.1.
|
1572
|
+
<tab/>
|
1573
|
+
Introduction Sub-subsection
|
1574
|
+
</title>
|
1575
|
+
<p depth='1' type='floating-title'>C</p>
|
1576
|
+
</clause>
|
1577
|
+
</clause>
|
1578
|
+
</clause>
|
1579
|
+
<p depth='1' type='floating-title'>D</p>
|
1580
|
+
<clause id='C4' displayorder='4'>
|
1581
|
+
<title depth='1'>
|
1582
|
+
2.
|
1583
|
+
<tab/>
|
1584
|
+
Clause 2
|
1585
|
+
</title>
|
1586
|
+
</clause>
|
1587
|
+
</sections>
|
1588
|
+
</iso-standard>
|
1589
|
+
PRESXML
|
1590
|
+
|
1591
|
+
html = <<~OUTPUT
|
1592
|
+
#{HTML_HDR}
|
1593
|
+
<p class='h1'>A0</p>
|
1594
|
+
<br/>
|
1595
|
+
<div class='Section3' id='B'>
|
1596
|
+
<p class='h1'>A0</p>
|
1597
|
+
<h1 class='IntroTitle'>Introduction</h1>
|
1598
|
+
<p class='h1'>A</p>
|
1599
|
+
<div id='B1'>
|
1600
|
+
<h2>Introduction Subsection</h2>
|
1601
|
+
<p class='h2'>B</p>
|
1602
|
+
<div id='B2'>
|
1603
|
+
<h3>Introduction Sub-subsection</h3>
|
1604
|
+
<p class='h1'>C</p>
|
1605
|
+
</div>
|
1606
|
+
</div>
|
1607
|
+
</div>
|
1608
|
+
<p class='zzSTDTitle1'/>
|
1609
|
+
<div id='C'>
|
1610
|
+
<h1> 1.   Introduction </h1>
|
1611
|
+
<p class='h1'>A</p>
|
1612
|
+
<div id='C1'>
|
1613
|
+
<h2> 1.1.   Introduction Subsection </h2>
|
1614
|
+
<p class='h2'>B</p>
|
1615
|
+
<div id='C2'>
|
1616
|
+
<h3> 1.1.1.   Introduction Sub-subsection </h3>
|
1617
|
+
<p class='h1'>C</p>
|
1618
|
+
</div>
|
1619
|
+
</div>
|
1620
|
+
</div>
|
1621
|
+
<div id='C4'>
|
1622
|
+
<p class='h1'>D</p>
|
1623
|
+
<h1> 2.   Clause 2 </h1>
|
1624
|
+
</div>
|
1625
|
+
</div>
|
1626
|
+
</body>
|
1627
|
+
</html>
|
1628
|
+
OUTPUT
|
1629
|
+
|
1630
|
+
word = <<~OUTPUT
|
1631
|
+
<html xmlns:epub='http://www.idpf.org/2007/ops' lang='en'>
|
1632
|
+
<head>
|
1633
|
+
<style></style>
|
1634
|
+
</head>
|
1635
|
+
<body lang='EN-US' link='blue' vlink='#954F72'>
|
1636
|
+
<div class='WordSection1'>
|
1637
|
+
<p> </p>
|
1638
|
+
</div>
|
1639
|
+
<p>
|
1640
|
+
<br clear='all' class='section'/>
|
1641
|
+
</p>
|
1642
|
+
<div class='WordSection2'>
|
1643
|
+
<p>A0</p>
|
1644
|
+
<p>
|
1645
|
+
<br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
|
1646
|
+
</p>
|
1647
|
+
<div class='Section3' id='B'>
|
1648
|
+
<p>A0</p>
|
1649
|
+
<h1 class='IntroTitle'>Introduction</h1>
|
1650
|
+
<p>A</p>
|
1651
|
+
<div id='B1'>
|
1652
|
+
<h2>Introduction Subsection</h2>
|
1653
|
+
<p>B</p>
|
1654
|
+
<div id='B2'>
|
1655
|
+
<h3>Introduction Sub-subsection</h3>
|
1656
|
+
<p>C</p>
|
1657
|
+
</div>
|
1658
|
+
</div>
|
1659
|
+
</div>
|
1660
|
+
<p> </p>
|
1661
|
+
</div>
|
1662
|
+
<p>
|
1663
|
+
<br clear='all' class='section'/>
|
1664
|
+
</p>
|
1665
|
+
<div class='WordSection3'>
|
1666
|
+
<p class='zzSTDTitle1'/>
|
1667
|
+
<div id='C'>
|
1668
|
+
<h1>
|
1669
|
+
1.
|
1670
|
+
<span style='mso-tab-count:1'>  </span>
|
1671
|
+
Introduction
|
1672
|
+
</h1>
|
1673
|
+
<p>A</p>
|
1674
|
+
<div id='C1'>
|
1675
|
+
<h2>
|
1676
|
+
1.1.
|
1677
|
+
<span style='mso-tab-count:1'>  </span>
|
1678
|
+
Introduction Subsection
|
1679
|
+
</h2>
|
1680
|
+
<p>B</p>
|
1681
|
+
<div id='C2'>
|
1682
|
+
<h3>
|
1683
|
+
1.1.1.
|
1684
|
+
<span style='mso-tab-count:1'>  </span>
|
1685
|
+
Introduction Sub-subsection
|
1686
|
+
</h3>
|
1687
|
+
<p>C</p>
|
1688
|
+
</div>
|
1689
|
+
</div>
|
1690
|
+
</div>
|
1691
|
+
<div id='C4'>
|
1692
|
+
<p>D</p>
|
1693
|
+
<h1>
|
1694
|
+
2.
|
1695
|
+
<span style='mso-tab-count:1'>  </span>
|
1696
|
+
Clause 2
|
1697
|
+
</h1>
|
1698
|
+
</div>
|
1699
|
+
</div>
|
1700
|
+
</body>
|
1701
|
+
</html>
|
1702
|
+
OUTPUT
|
1703
|
+
expect(xmlpp(IsoDoc::PresentationXMLConvert.new({})
|
1704
|
+
.convert("test", input, true))).to be_equivalent_to xmlpp(presxml)
|
1705
|
+
expect(xmlpp(IsoDoc::HtmlConvert.new({})
|
1706
|
+
.convert("test", presxml, true))).to be_equivalent_to xmlpp(html)
|
1707
|
+
expect(xmlpp(IsoDoc::WordConvert.new({})
|
1708
|
+
.convert("test", presxml, true))).to be_equivalent_to xmlpp(word)
|
1492
1709
|
end
|
1493
1710
|
|
1494
1711
|
it "processes section titles without ID" do
|
@@ -1780,7 +1997,7 @@ RSpec.describe IsoDoc do
|
|
1780
1997
|
.convert("test", presxml, true))).to be_equivalent_to xmlpp(html)
|
1781
1998
|
end
|
1782
1999
|
|
1783
|
-
|
2000
|
+
it "processes annexes containing one, or more than one special sections" do
|
1784
2001
|
input = <<~INPUT
|
1785
2002
|
<iso-standard xmlns="http://riboseinc.com/isoxml">
|
1786
2003
|
<annex id='PP' obligation='normative'>
|
@@ -1821,87 +2038,87 @@ RSpec.describe IsoDoc do
|
|
1821
2038
|
</iso-standard>
|
1822
2039
|
INPUT
|
1823
2040
|
presxml = <<~OUTPUT
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
1898
|
-
|
1899
|
-
|
1900
|
-
|
1901
|
-
|
1902
|
-
|
2041
|
+
<iso-standard xmlns='http://riboseinc.com/isoxml' type='presentation'>
|
2042
|
+
<annex id='PP' obligation='normative' displayorder='1'>
|
2043
|
+
<title>
|
2044
|
+
<strong>Annex A</strong>
|
2045
|
+
<br/>
|
2046
|
+
(normative)
|
2047
|
+
<br/>
|
2048
|
+
<br/>
|
2049
|
+
<strong>Glossary</strong>
|
2050
|
+
</title>
|
2051
|
+
<terms id='PP1' obligation='normative'>
|
2052
|
+
<title>A.</title>
|
2053
|
+
<term id='term-glossary'>
|
2054
|
+
<name>A.1.</name>
|
2055
|
+
<preferred><strong>Glossary</strong></preferred>
|
2056
|
+
</term>
|
2057
|
+
</terms>
|
2058
|
+
</annex>
|
2059
|
+
<annex id='QQ' obligation='normative' displayorder='2'>
|
2060
|
+
<title>
|
2061
|
+
<strong>Annex B</strong>
|
2062
|
+
<br/>
|
2063
|
+
(normative)
|
2064
|
+
<br/>
|
2065
|
+
<br/>
|
2066
|
+
<strong>Glossary</strong>
|
2067
|
+
</title>
|
2068
|
+
<terms id='QQ1' obligation='normative'>
|
2069
|
+
<title depth='2'>
|
2070
|
+
B.1.
|
2071
|
+
<tab/>
|
2072
|
+
Term Collection
|
2073
|
+
</title>
|
2074
|
+
<term id='term-term-1'>
|
2075
|
+
<name>B.1.1.</name>
|
2076
|
+
<preferred><strong>Term</strong></preferred>
|
2077
|
+
</term>
|
2078
|
+
</terms>
|
2079
|
+
<terms id='QQ2' obligation='normative'>
|
2080
|
+
<title depth='2'>
|
2081
|
+
B.2.
|
2082
|
+
<tab/>
|
2083
|
+
Term Collection 2
|
2084
|
+
</title>
|
2085
|
+
<term id='term-term-2'>
|
2086
|
+
<name>B.2.1.</name>
|
2087
|
+
<preferred><strong>Term</strong></preferred>
|
2088
|
+
</term>
|
2089
|
+
</terms>
|
2090
|
+
</annex>
|
2091
|
+
<annex id='RR' obligation='normative' displayorder='3'>
|
2092
|
+
<title>
|
2093
|
+
<strong>Annex C</strong>
|
2094
|
+
<br/>
|
2095
|
+
(normative)
|
2096
|
+
<br/>
|
2097
|
+
<br/>
|
2098
|
+
<strong>Glossary</strong>
|
2099
|
+
</title>
|
2100
|
+
<terms id='RR1' obligation='normative'>
|
2101
|
+
<title depth='2'>
|
2102
|
+
C.1.
|
2103
|
+
<tab/>
|
2104
|
+
Term Collection
|
2105
|
+
</title>
|
2106
|
+
<term id='term-term-3'>
|
2107
|
+
<name>C.1.1.</name>
|
2108
|
+
<preferred><strong>Term</strong></preferred>
|
2109
|
+
</term>
|
2110
|
+
</terms>
|
2111
|
+
<references id='RR2' obligation='normative'>
|
2112
|
+
<title depth='2'>
|
2113
|
+
C.2.
|
2114
|
+
<tab/>
|
2115
|
+
References
|
2116
|
+
</title>
|
2117
|
+
</references>
|
2118
|
+
</annex>
|
2119
|
+
</iso-standard>
|
1903
2120
|
OUTPUT
|
1904
2121
|
expect(xmlpp(IsoDoc::PresentationXMLConvert.new({})
|
1905
2122
|
.convert("test", input, true))).to be_equivalent_to xmlpp(presxml)
|
1906
|
-
|
2123
|
+
end
|
1907
2124
|
end
|