metanorma-iso 2.4.7 → 2.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/iso/html/style-human.css +15 -11
- data/lib/isodoc/iso/html/style-human.scss +8 -8
- data/lib/isodoc/iso/html/style-iso.css +26 -22
- data/lib/isodoc/iso/html/style-iso.scss +19 -19
- data/lib/isodoc/iso/i18n-en.yaml +6 -0
- data/lib/isodoc/iso/i18n-fr.yaml +6 -0
- data/lib/isodoc/iso/i18n-ja.yaml +1 -0
- data/lib/isodoc/iso/i18n-ru.yaml +6 -0
- data/lib/isodoc/iso/i18n-zh-Hans.yaml +3 -0
- data/lib/isodoc/iso/iso.amendment.xsl +71 -45
- data/lib/isodoc/iso/iso.international-standard.xsl +71 -45
- data/lib/metanorma/iso/front.rb +18 -6
- data/lib/metanorma/iso/front_id.rb +6 -45
- data/lib/metanorma/iso/validate.rb +0 -16
- data/lib/metanorma/iso/version.rb +1 -1
- 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: 7aaa364a3a007ab13cb425bee0b000154d5d49d394db13f37945b18eb77a7d97
|
4
|
+
data.tar.gz: 54974181bd0d2c29fc00299aaa0da54bc5749c741d4a63503003af1d46038c95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85dcbabb3fd13f5020003f4e5c59d8fad34287002f3e9fc03d4cc6c0fe37d0938bcf0ce1e3a3e6a0fc5a1937c756646662cd7d48eea65e3208e1650927ab3133
|
7
|
+
data.tar.gz: 77268460b6cfbeda72397ec169dc82bfdfdd724214d138fe7f6621570cf01b881097baaebc36e0eadac9568e2b842e2fa068c5994f98fb228c9ef1146dfc3430
|
@@ -97,7 +97,7 @@ h1, h2, h3, h4, h5, h6 {
|
|
97
97
|
|
98
98
|
blockquote, q {
|
99
99
|
quotes: none; }
|
100
|
-
blockquote
|
100
|
+
blockquote::before, blockquote::after, q::before, q::after {
|
101
101
|
content: '';
|
102
102
|
content: none; }
|
103
103
|
|
@@ -120,14 +120,18 @@ b, strong {
|
|
120
120
|
div.document-stage-band, div.document-type-band {
|
121
121
|
background-color: #333333; }
|
122
122
|
|
123
|
-
a.FootnoteRef + a.FootnoteRef
|
123
|
+
a.FootnoteRef + a.FootnoteRef::before {
|
124
124
|
content: ", ";
|
125
125
|
vertical-align: super; }
|
126
126
|
|
127
|
-
a.TableFootnoteRef + a.TableFootnoteRef
|
127
|
+
a.TableFootnoteRef + a.TableFootnoteRef::before {
|
128
128
|
content: ", ";
|
129
129
|
vertical-align: super; }
|
130
130
|
|
131
|
+
a.TableFootnoteRef, span.TableFootnoteRef,
|
132
|
+
a.FootnoteRef, span.FootnoteRef {
|
133
|
+
vertical-align: super; }
|
134
|
+
|
131
135
|
.addition {
|
132
136
|
color: blue; }
|
133
137
|
|
@@ -297,10 +301,10 @@ blockquote,
|
|
297
301
|
q {
|
298
302
|
quotes: none; }
|
299
303
|
|
300
|
-
blockquote
|
301
|
-
blockquote
|
302
|
-
q
|
303
|
-
q
|
304
|
+
blockquote::before,
|
305
|
+
blockquote::after,
|
306
|
+
q::before,
|
307
|
+
q::after {
|
304
308
|
content: '';
|
305
309
|
content: none; }
|
306
310
|
|
@@ -454,7 +458,7 @@ h2 p, .h2 p {
|
|
454
458
|
ul > li {
|
455
459
|
list-style: none; }
|
456
460
|
|
457
|
-
ul > li > p:first-child
|
461
|
+
ul > li > p:first-child::before {
|
458
462
|
content: "\2014";
|
459
463
|
display: inline-block;
|
460
464
|
width: 1em;
|
@@ -466,7 +470,7 @@ li p {
|
|
466
470
|
margin-bottom: 0.6em;
|
467
471
|
line-height: 1.2; }
|
468
472
|
|
469
|
-
#toc li
|
473
|
+
#toc li::before {
|
470
474
|
content: " ";
|
471
475
|
display: none; }
|
472
476
|
|
@@ -517,7 +521,7 @@ p.Terms {
|
|
517
521
|
#toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
|
518
522
|
padding: 0 1.5em;
|
519
523
|
overflow: visible; } }
|
520
|
-
#toc li
|
524
|
+
#toc li::before, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li::before {
|
521
525
|
content: " ";
|
522
526
|
display: none; }
|
523
527
|
|
@@ -1026,7 +1030,7 @@ ol.footnotes-list p,
|
|
1026
1030
|
aside.footnote {
|
1027
1031
|
display: inline; }
|
1028
1032
|
|
1029
|
-
ol > li > p
|
1033
|
+
ol > li > p::before {
|
1030
1034
|
content: "";
|
1031
1035
|
display: none; }
|
1032
1036
|
|
@@ -38,10 +38,10 @@ q {
|
|
38
38
|
quotes: none;
|
39
39
|
}
|
40
40
|
|
41
|
-
blockquote
|
42
|
-
blockquote
|
43
|
-
q
|
44
|
-
q
|
41
|
+
blockquote::before,
|
42
|
+
blockquote::after,
|
43
|
+
q::before,
|
44
|
+
q::after {
|
45
45
|
content: '';
|
46
46
|
content: none;
|
47
47
|
}
|
@@ -232,7 +232,7 @@ ul>li {
|
|
232
232
|
list-style: none;
|
233
233
|
}
|
234
234
|
|
235
|
-
ul>li>p:first-child
|
235
|
+
ul>li>p:first-child::before {
|
236
236
|
content: "\2014";
|
237
237
|
display: inline-block;
|
238
238
|
width: 1em;
|
@@ -246,7 +246,7 @@ li p {
|
|
246
246
|
line-height: 1.2;
|
247
247
|
}
|
248
248
|
|
249
|
-
#toc li
|
249
|
+
#toc li::before {
|
250
250
|
content: " ";
|
251
251
|
display: none;
|
252
252
|
}
|
@@ -271,7 +271,7 @@ p.Terms {
|
|
271
271
|
// box-shadow: inset -5px 0px 10px -5px #1d1d1d !important;
|
272
272
|
// }
|
273
273
|
|
274
|
-
li
|
274
|
+
li::before {
|
275
275
|
content: " ";
|
276
276
|
display: none;
|
277
277
|
}
|
@@ -694,7 +694,7 @@ aside.footnote {
|
|
694
694
|
display: inline;
|
695
695
|
}
|
696
696
|
|
697
|
-
ol>li>p
|
697
|
+
ol>li>p::before {
|
698
698
|
content: "";
|
699
699
|
display: none;
|
700
700
|
}
|
@@ -97,7 +97,7 @@ h1, h2, h3, h4, h5, h6 {
|
|
97
97
|
|
98
98
|
blockquote, q {
|
99
99
|
quotes: none; }
|
100
|
-
blockquote
|
100
|
+
blockquote::before, blockquote::after, q::before, q::after {
|
101
101
|
content: '';
|
102
102
|
content: none; }
|
103
103
|
|
@@ -120,14 +120,18 @@ b, strong {
|
|
120
120
|
div.document-stage-band, div.document-type-band {
|
121
121
|
background-color: #333333; }
|
122
122
|
|
123
|
-
a.FootnoteRef + a.FootnoteRef
|
123
|
+
a.FootnoteRef + a.FootnoteRef::before {
|
124
124
|
content: ", ";
|
125
125
|
vertical-align: super; }
|
126
126
|
|
127
|
-
a.TableFootnoteRef + a.TableFootnoteRef
|
127
|
+
a.TableFootnoteRef + a.TableFootnoteRef::before {
|
128
128
|
content: ", ";
|
129
129
|
vertical-align: super; }
|
130
130
|
|
131
|
+
a.TableFootnoteRef, span.TableFootnoteRef,
|
132
|
+
a.FootnoteRef, span.FootnoteRef {
|
133
|
+
vertical-align: super; }
|
134
|
+
|
131
135
|
.addition {
|
132
136
|
color: blue; }
|
133
137
|
|
@@ -291,8 +295,8 @@ body {
|
|
291
295
|
blockquote, q {
|
292
296
|
quotes: none; }
|
293
297
|
|
294
|
-
blockquote
|
295
|
-
q
|
298
|
+
blockquote::before, blockquote::after,
|
299
|
+
q::before, q::after {
|
296
300
|
content: '';
|
297
301
|
content: none; }
|
298
302
|
|
@@ -406,7 +410,7 @@ h2 p, .h2 p {
|
|
406
410
|
ul > li {
|
407
411
|
list-style: none; }
|
408
412
|
|
409
|
-
ul > li > p:first-child
|
413
|
+
ul > li > p:first-child::before {
|
410
414
|
content: "\2014";
|
411
415
|
display: inline-block;
|
412
416
|
width: 1em;
|
@@ -469,7 +473,7 @@ p.Terms {
|
|
469
473
|
#toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
|
470
474
|
box-shadow: 0px 1px 0px 0px black !important;
|
471
475
|
background: none; }
|
472
|
-
#toc li
|
476
|
+
#toc li::before, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li::before {
|
473
477
|
content: " ";
|
474
478
|
display: none; }
|
475
479
|
|
@@ -789,57 +793,57 @@ ol > li {
|
|
789
793
|
list-style: none;
|
790
794
|
position: relative; }
|
791
795
|
|
792
|
-
ol > li
|
796
|
+
ol > li::before {
|
793
797
|
position: absolute;
|
794
798
|
left: -1.4em; }
|
795
799
|
|
796
|
-
ol[class="roman"] > li
|
800
|
+
ol[class="roman"] > li::before {
|
797
801
|
left: -2.0em; }
|
798
802
|
|
799
|
-
ol[class="roman_upper"] > li
|
803
|
+
ol[class="roman_upper"] > li::before {
|
800
804
|
left: -2.3em; }
|
801
805
|
|
802
|
-
ol[class="alphabet"] > li
|
806
|
+
ol[class="alphabet"] > li::before {
|
803
807
|
counter-increment: alphabet;
|
804
808
|
content: counter(alphabet, lower-alpha) ") "; }
|
805
809
|
|
806
|
-
ol[class="arabic"] > li
|
810
|
+
ol[class="arabic"] > li::before {
|
807
811
|
counter-increment: arabic;
|
808
812
|
content: counter(arabic, decimal) ") "; }
|
809
813
|
|
810
|
-
ol[class="roman"] > li
|
814
|
+
ol[class="roman"] > li::before {
|
811
815
|
counter-increment: roman;
|
812
816
|
content: counter(roman, lower-roman) ") "; }
|
813
817
|
|
814
|
-
ol[class="alphabet_upper"] > li
|
818
|
+
ol[class="alphabet_upper"] > li::before {
|
815
819
|
counter-increment: alphabet_upper;
|
816
820
|
content: counter(alphabet_upper, upper-alpha) ") "; }
|
817
821
|
|
818
|
-
ol[class="roman_upper"] > li
|
822
|
+
ol[class="roman_upper"] > li::before {
|
819
823
|
counter-increment: roman_upper;
|
820
824
|
content: counter(roman_upper, upper-roman) ") "; }
|
821
825
|
|
822
|
-
ol > li
|
826
|
+
ol > li::before {
|
823
827
|
counter-increment: alphabet;
|
824
828
|
content: counter(alphabet, lower-alpha) ") "; }
|
825
829
|
|
826
|
-
ol[class="alphabet"] ol[class="alphabet"] > li
|
830
|
+
ol[class="alphabet"] ol[class="alphabet"] > li::before {
|
827
831
|
counter-increment: alphabet2;
|
828
832
|
content: counter(alphabet2, lower-alpha) ") "; }
|
829
833
|
|
830
|
-
ol[class="arabic"] ol[class="arabic"] > li
|
834
|
+
ol[class="arabic"] ol[class="arabic"] > li::before {
|
831
835
|
counter-increment: arabic2;
|
832
836
|
content: counter(arabic2, decimal) ") "; }
|
833
837
|
|
834
|
-
ol[class="roman"] ol[class="roman"] > li
|
838
|
+
ol[class="roman"] ol[class="roman"] > li::before {
|
835
839
|
counter-increment: roman2;
|
836
840
|
content: counter(roman2, lower-roman) ") "; }
|
837
841
|
|
838
|
-
ol[class="alphabet_upper"] ol[class="alphabet_upper"] > li
|
842
|
+
ol[class="alphabet_upper"] ol[class="alphabet_upper"] > li::before {
|
839
843
|
counter-increment: alphabet_upper2;
|
840
844
|
content: counter(alphabet_upper2, upper-alpha) ") "; }
|
841
845
|
|
842
|
-
ol[class="roman_upper"] ol[class="roman_upper"] > li
|
846
|
+
ol[class="roman_upper"] ol[class="roman_upper"] > li::before {
|
843
847
|
counter-increment: roman_upper2;
|
844
848
|
content: counter(roman_upper2, upper-roman) ") "; }
|
845
849
|
|
@@ -1063,7 +1067,7 @@ ol.footnotes-list:first-child {
|
|
1063
1067
|
ol.footnotes-list p, aside.footnote p {
|
1064
1068
|
display: inline; }
|
1065
1069
|
|
1066
|
-
ol > li > p
|
1070
|
+
ol > li > p::before {
|
1067
1071
|
content: "";
|
1068
1072
|
display: none; }
|
1069
1073
|
|
@@ -27,8 +27,8 @@ body {
|
|
27
27
|
blockquote, q {
|
28
28
|
quotes: none;
|
29
29
|
}
|
30
|
-
blockquote
|
31
|
-
q
|
30
|
+
blockquote::before, blockquote::after,
|
31
|
+
q::before, q::after {
|
32
32
|
content: '';
|
33
33
|
content: none;
|
34
34
|
}
|
@@ -177,7 +177,7 @@ ul > li {
|
|
177
177
|
list-style: none;
|
178
178
|
}
|
179
179
|
|
180
|
-
ul > li > p:first-child
|
180
|
+
ul > li > p:first-child::before {
|
181
181
|
content: "\2014";
|
182
182
|
display: inline-block;
|
183
183
|
width: 1em;
|
@@ -210,7 +210,7 @@ p.Terms {
|
|
210
210
|
background: none;
|
211
211
|
}
|
212
212
|
|
213
|
-
li
|
213
|
+
li::before {
|
214
214
|
content: " ";
|
215
215
|
display: none;
|
216
216
|
}
|
@@ -458,57 +458,57 @@ ol > li {
|
|
458
458
|
list-style: none;
|
459
459
|
position: relative;
|
460
460
|
}
|
461
|
-
ol > li
|
461
|
+
ol > li::before {
|
462
462
|
position: absolute;
|
463
463
|
left: -1.4em;
|
464
464
|
}
|
465
|
-
ol[class="roman"] > li
|
465
|
+
ol[class="roman"] > li::before {
|
466
466
|
left: -2.0em;
|
467
467
|
}
|
468
|
-
ol[class="roman_upper"] > li
|
468
|
+
ol[class="roman_upper"] > li::before {
|
469
469
|
left: -2.3em;
|
470
470
|
}
|
471
|
-
ol[class="alphabet"] > li
|
471
|
+
ol[class="alphabet"] > li::before {
|
472
472
|
counter-increment: alphabet;
|
473
473
|
content: counter(alphabet, lower-alpha)") "
|
474
474
|
}
|
475
|
-
ol[class="arabic"] > li
|
475
|
+
ol[class="arabic"] > li::before {
|
476
476
|
counter-increment: arabic;
|
477
477
|
content: counter(arabic, decimal)") "
|
478
478
|
}
|
479
|
-
ol[class="roman"] > li
|
479
|
+
ol[class="roman"] > li::before {
|
480
480
|
counter-increment: roman;
|
481
481
|
content: counter(roman, lower-roman)") "
|
482
482
|
}
|
483
|
-
ol[class="alphabet_upper"] > li
|
483
|
+
ol[class="alphabet_upper"] > li::before {
|
484
484
|
counter-increment: alphabet_upper;
|
485
485
|
content: counter(alphabet_upper, upper-alpha)") "
|
486
486
|
}
|
487
|
-
ol[class="roman_upper"] > li
|
487
|
+
ol[class="roman_upper"] > li::before {
|
488
488
|
counter-increment: roman_upper;
|
489
489
|
content: counter(roman_upper, upper-roman)") "
|
490
490
|
}
|
491
|
-
ol > li
|
491
|
+
ol > li::before {
|
492
492
|
counter-increment: alphabet;
|
493
493
|
content: counter(alphabet, lower-alpha)") "
|
494
494
|
}
|
495
|
-
ol[class="alphabet"] ol[class="alphabet"] > li
|
495
|
+
ol[class="alphabet"] ol[class="alphabet"] > li::before {
|
496
496
|
counter-increment: alphabet2;
|
497
497
|
content: counter(alphabet2, lower-alpha)") "
|
498
498
|
}
|
499
|
-
ol[class="arabic"] ol[class="arabic"] > li
|
499
|
+
ol[class="arabic"] ol[class="arabic"] > li::before {
|
500
500
|
counter-increment: arabic2;
|
501
501
|
content: counter(arabic2, decimal)") "
|
502
502
|
}
|
503
|
-
ol[class="roman"] ol[class="roman"] > li
|
503
|
+
ol[class="roman"] ol[class="roman"] > li::before {
|
504
504
|
counter-increment: roman2;
|
505
505
|
content: counter(roman2, lower-roman)") "
|
506
506
|
}
|
507
|
-
ol[class="alphabet_upper"] ol[class="alphabet_upper"] > li
|
507
|
+
ol[class="alphabet_upper"] ol[class="alphabet_upper"] > li::before {
|
508
508
|
counter-increment: alphabet_upper2;
|
509
509
|
content: counter(alphabet_upper2, upper-alpha)") "
|
510
510
|
}
|
511
|
-
ol[class="roman_upper"] ol[class="roman_upper"] > li
|
511
|
+
ol[class="roman_upper"] ol[class="roman_upper"] > li::before {
|
512
512
|
counter-increment: roman_upper2;
|
513
513
|
content: counter(roman_upper2, upper-roman)") "
|
514
514
|
}
|
@@ -723,7 +723,7 @@ ol.footnotes-list p, aside.footnote p {
|
|
723
723
|
display: inline;
|
724
724
|
}
|
725
725
|
|
726
|
-
ol > li > p
|
726
|
+
ol > li > p::before {
|
727
727
|
content: "";
|
728
728
|
display: none;
|
729
729
|
}
|
data/lib/isodoc/iso/i18n-en.yaml
CHANGED
@@ -11,6 +11,7 @@ term_def_boilerplate: |
|
|
11
11
|
all_rights_reserved: All rights reserved
|
12
12
|
reference_number: Reference number
|
13
13
|
price_based_on: Price based on % pages
|
14
|
+
descriptor: Descriptor
|
14
15
|
under_preparation: Under preparation. (Stage at the time of publication %).
|
15
16
|
withdrawn: Withdrawn.
|
16
17
|
cancelled_and_replaced: Cancelled and replaced by %.
|
@@ -23,6 +24,8 @@ secretariat: Secretariat
|
|
23
24
|
edition: edition
|
24
25
|
termsrelated: Terms related to
|
25
26
|
availablefrom: Available from
|
27
|
+
voting_begins_on: Voting begins on
|
28
|
+
voting_terminates_on: Voting terminates on
|
26
29
|
multiple_and: "%1 and %2"
|
27
30
|
multiple_or: "%1 or %2"
|
28
31
|
doctype_dict:
|
@@ -85,3 +88,6 @@ inflection:
|
|
85
88
|
Statement:
|
86
89
|
sg: Statement
|
87
90
|
pl: Statements
|
91
|
+
Descriptor:
|
92
|
+
sg: Descriptor
|
93
|
+
pl: Descriptors
|
data/lib/isodoc/iso/i18n-fr.yaml
CHANGED
@@ -11,6 +11,7 @@ term_def_boilerplate: |
|
|
11
11
|
all_rights_reserved: Tous droits réservés
|
12
12
|
reference_number: Numéro de référence
|
13
13
|
price_based_on: Prix basé sur % pages
|
14
|
+
descriptor: Descripteur
|
14
15
|
under_preparation: En cours d'élaboration. (Stade au moment de la publication %).
|
15
16
|
withdrawn: Retiré.
|
16
17
|
cancelled_and_replaced: Annulé et remplacé par %.
|
@@ -22,6 +23,8 @@ secretariat: Secrétariat
|
|
22
23
|
edition: édition
|
23
24
|
termsrelated: Termes liés
|
24
25
|
availablefrom: Disponible sur
|
26
|
+
voting_begins_on: Le vote commence le
|
27
|
+
voting_terminates_on: Le vote se termine le
|
25
28
|
doctype_dict:
|
26
29
|
international-standard: Norme internationale
|
27
30
|
technical-specification: Spécification technique
|
@@ -79,3 +82,6 @@ inflection:
|
|
79
82
|
Déclaration:
|
80
83
|
sg: Déclaration
|
81
84
|
pl: Déclarations
|
85
|
+
Descripteur:
|
86
|
+
sg: Descripteur
|
87
|
+
pl: Descripteurs
|
data/lib/isodoc/iso/i18n-ja.yaml
CHANGED
data/lib/isodoc/iso/i18n-ru.yaml
CHANGED
@@ -9,6 +9,7 @@ term_def_boilerplate: |
|
|
9
9
|
</p> </li> </ul>
|
10
10
|
all_rights_reserved: Все права защищены
|
11
11
|
reference_number: Ссылочный номер
|
12
|
+
descriptor: Дескриптор
|
12
13
|
price_based_on: Цена рассчитана на % стр.
|
13
14
|
under_preparation: В стадии подготовки. (Стадия на момент публикации %).
|
14
15
|
withdrawn: Отозван.
|
@@ -23,6 +24,8 @@ scope: Область применения
|
|
23
24
|
edition: издание
|
24
25
|
termsrelated: Термины, связанные
|
25
26
|
availablefrom: Доступна с
|
27
|
+
voting_begins_on: Голосование начинается в
|
28
|
+
voting_terminates_on: Голосование заканчивается в
|
26
29
|
doctype_dict:
|
27
30
|
international-standard: Международный Стандарт
|
28
31
|
technical-specification: Техническая Спецификация
|
@@ -83,3 +86,6 @@ inflection:
|
|
83
86
|
Утверждение:
|
84
87
|
sg: Утверждение
|
85
88
|
pl: Утверждения
|
89
|
+
Дескриптор:
|
90
|
+
sg: Дескриптор
|
91
|
+
pl: Дескрипторы
|
@@ -9,6 +9,7 @@ term_def_boilerplate: |
|
|
9
9
|
all_rights_reserved: 版权所有
|
10
10
|
reference_number: 参考编号
|
11
11
|
price_based_on: 价格基于%页
|
12
|
+
descriptor: 描述符
|
12
13
|
under_preparation: 制定中(出版时最新状态为%)
|
13
14
|
withdrawn: 撤回 .
|
14
15
|
cancelled_and_replaced: 已取消并由%取代。
|
@@ -20,6 +21,8 @@ secretariat: 秘书处
|
|
20
21
|
edition: 版
|
21
22
|
termsrelated: 相关术语
|
22
23
|
availablefrom: 可从
|
24
|
+
voting_begins_on: 投票开始于
|
25
|
+
voting_terminates_on: 投票终止于
|
23
26
|
doctype_dict:
|
24
27
|
international-standard: 国际标准
|
25
28
|
technical-specification: 技术规格
|
@@ -719,10 +719,20 @@
|
|
719
719
|
<fo:block> </fo:block>
|
720
720
|
</fo:table-cell>
|
721
721
|
<fo:table-cell>
|
722
|
-
<fo:block>
|
722
|
+
<fo:block>
|
723
|
+
<!-- Voting begins on: -->
|
724
|
+
<xsl:call-template name="getLocalizedString">
|
725
|
+
<xsl:with-param name="key">voting_begins_on</xsl:with-param>
|
726
|
+
</xsl:call-template><xsl:text>:</xsl:text>
|
727
|
+
</fo:block>
|
723
728
|
</fo:table-cell>
|
724
729
|
<fo:table-cell>
|
725
|
-
<fo:block>
|
730
|
+
<fo:block>
|
731
|
+
<!-- Voting terminates on: -->
|
732
|
+
<xsl:call-template name="getLocalizedString">
|
733
|
+
<xsl:with-param name="key">voting_terminates_on</xsl:with-param>
|
734
|
+
</xsl:call-template><xsl:text>:</xsl:text>
|
735
|
+
</fo:block>
|
726
736
|
</fo:table-cell>
|
727
737
|
</fo:table-row>
|
728
738
|
<fo:table-row>
|
@@ -955,7 +965,12 @@
|
|
955
965
|
<fo:block margin="2mm" role="SKIP">
|
956
966
|
<fo:block margin-bottom="8pt"><xsl:copy-of select="$editorialgroup"/></fo:block>
|
957
967
|
<fo:block margin-bottom="6pt"><xsl:copy-of select="$secretariat"/></fo:block>
|
958
|
-
<fo:block margin-bottom="6pt">
|
968
|
+
<fo:block margin-bottom="6pt">
|
969
|
+
<!-- Voting begins on: -->
|
970
|
+
<xsl:call-template name="getLocalizedString">
|
971
|
+
<xsl:with-param name="key">voting_begins_on</xsl:with-param>
|
972
|
+
</xsl:call-template><xsl:text>:</xsl:text>
|
973
|
+
<xsl:value-of select="$linebreak"/>
|
959
974
|
<fo:inline font-weight="bold">
|
960
975
|
<xsl:choose>
|
961
976
|
<xsl:when test="/iso:iso-standard/iso:bibdata/iso:date[@type = 'vote-started']/iso:on">
|
@@ -965,7 +980,12 @@
|
|
965
980
|
</xsl:choose>
|
966
981
|
</fo:inline>
|
967
982
|
</fo:block>
|
968
|
-
<fo:block>
|
983
|
+
<fo:block>
|
984
|
+
<!-- Voting terminates on: -->
|
985
|
+
<xsl:call-template name="getLocalizedString">
|
986
|
+
<xsl:with-param name="key">voting_terminates_on</xsl:with-param>
|
987
|
+
</xsl:call-template><xsl:text>:</xsl:text>
|
988
|
+
<xsl:value-of select="$linebreak"/>
|
969
989
|
<fo:inline font-weight="bold">
|
970
990
|
<xsl:choose>
|
971
991
|
<xsl:when test="/iso:iso-standard/iso:bibdata/iso:date[@type = 'vote-ended']/iso:on">
|
@@ -1446,8 +1466,8 @@
|
|
1446
1466
|
<xsl:if test="/iso:iso-standard/iso:bibdata/iso:keyword">
|
1447
1467
|
<fo:block font-size="9pt" margin-bottom="6pt">
|
1448
1468
|
<xsl:variable name="title-descriptors">
|
1449
|
-
<xsl:call-template name="
|
1450
|
-
<xsl:with-param name="
|
1469
|
+
<xsl:call-template name="getLocalizedString">
|
1470
|
+
<xsl:with-param name="key">Descriptor.pl</xsl:with-param>
|
1451
1471
|
</xsl:call-template>
|
1452
1472
|
</xsl:variable>
|
1453
1473
|
<fo:inline font-weight="bold"><xsl:value-of select="$title-descriptors"/>: </fo:inline>
|
@@ -2047,10 +2067,17 @@
|
|
2047
2067
|
<xsl:if test="ancestor::*[local-name() = 'li' or local-name() = 'td' or local-name() = 'th' or local-name() = 'dd']">
|
2048
2068
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
2049
2069
|
</xsl:if>
|
2050
|
-
<xsl:apply-templates>
|
2070
|
+
<!-- <xsl:apply-templates>
|
2071
|
+
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
2072
|
+
</xsl:apply-templates> -->
|
2073
|
+
<!-- <xsl:apply-templates select="node()[not(self::iso:note[not(following-sibling::*) or count(following-sibling::*) = count(../iso:note) - 1])]"> -->
|
2074
|
+
<xsl:apply-templates select="node()[not(self::iso:note)]"> <!-- note renders below paragraph for correct PDF tags order (see https://github.com/metanorma/metanorma-iso/issues/1003) -->
|
2051
2075
|
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
2052
2076
|
</xsl:apply-templates>
|
2053
2077
|
</xsl:element>
|
2078
|
+
|
2079
|
+
<xsl:apply-templates select="iso:note"/> <!-- [not(following-sibling::*) or count(following-sibling::*) = count(../iso:note) - 1] -->
|
2080
|
+
|
2054
2081
|
<xsl:if test="$element-name = 'fo:inline' and not($inline = 'true') and not(local-name(..) = 'admonition')">
|
2055
2082
|
<fo:block margin-bottom="12pt" role="SKIP">
|
2056
2083
|
<xsl:if test="ancestor::iso:annex or following-sibling::iso:table">
|
@@ -2444,19 +2471,32 @@
|
|
2444
2471
|
<xsl:variable name="titles_">
|
2445
2472
|
|
2446
2473
|
<!-- These titles of Table of contents renders different than determined in localized-strings -->
|
2447
|
-
<title-toc lang="en">
|
2448
|
-
|
2449
|
-
|
2450
|
-
|
2474
|
+
<!-- <title-toc lang="en">
|
2475
|
+
<xsl:if test="$namespace = 'csd' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'unece-rec'">
|
2476
|
+
<xsl:text>Contents</xsl:text>
|
2477
|
+
</xsl:if>
|
2478
|
+
<xsl:if test="$namespace = 'csa' or $namespace = 'm3d' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper'">
|
2479
|
+
<xsl:text>Table of Contents</xsl:text>
|
2480
|
+
</xsl:if>
|
2481
|
+
<xsl:if test="$namespace = 'gb'">
|
2482
|
+
<xsl:text>Table of contents</xsl:text>
|
2483
|
+
</xsl:if>
|
2484
|
+
</title-toc> -->
|
2485
|
+
<title-toc lang="en">Table of contents</title-toc>
|
2486
|
+
<!-- <title-toc lang="fr">
|
2451
2487
|
<xsl:text>Sommaire</xsl:text>
|
2452
|
-
</title-toc>
|
2453
|
-
<title-toc lang="zh">
|
2454
|
-
|
2488
|
+
</title-toc> -->
|
2489
|
+
<!-- <title-toc lang="zh">
|
2490
|
+
<xsl:choose>
|
2491
|
+
<xsl:when test="$namespace = 'gb'">
|
2492
|
+
<xsl:text>目次</xsl:text>
|
2493
|
+
</xsl:when>
|
2494
|
+
<xsl:otherwise>
|
2455
2495
|
<xsl:text>Contents</xsl:text>
|
2456
|
-
|
2457
|
-
|
2458
|
-
|
2459
|
-
<title-
|
2496
|
+
</xsl:otherwise>
|
2497
|
+
</xsl:choose>
|
2498
|
+
</title-toc> -->
|
2499
|
+
<title-toc lang="zh">目次</title-toc>
|
2460
2500
|
|
2461
2501
|
<title-part lang="en">
|
2462
2502
|
|
@@ -2478,20 +2518,6 @@
|
|
2478
2518
|
<title-subpart lang="en">Sub-part #</title-subpart>
|
2479
2519
|
<title-subpart lang="fr">Partie de sub #</title-subpart>
|
2480
2520
|
|
2481
|
-
<title-list-tables lang="en">List of Tables</title-list-tables>
|
2482
|
-
|
2483
|
-
<title-list-figures lang="en">List of Figures</title-list-figures>
|
2484
|
-
|
2485
|
-
<title-table-figures lang="en">Table of Figures</title-table-figures>
|
2486
|
-
|
2487
|
-
<title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
|
2488
|
-
|
2489
|
-
<title-summary lang="en">Summary</title-summary>
|
2490
|
-
|
2491
|
-
<title-continued lang="ru">(продолжение)</title-continued>
|
2492
|
-
<title-continued lang="en">(continued)</title-continued>
|
2493
|
-
<title-continued lang="fr">(continué)</title-continued>
|
2494
|
-
|
2495
2521
|
</xsl:variable>
|
2496
2522
|
<xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
|
2497
2523
|
|
@@ -2499,8 +2525,8 @@
|
|
2499
2525
|
<xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
|
2500
2526
|
<xsl:value-of select="$toc_table_title"/>
|
2501
2527
|
<xsl:if test="normalize-space($toc_table_title) = ''">
|
2502
|
-
<xsl:call-template name="
|
2503
|
-
<xsl:with-param name="
|
2528
|
+
<xsl:call-template name="getLocalizedString">
|
2529
|
+
<xsl:with-param name="key">toc_tables</xsl:with-param>
|
2504
2530
|
</xsl:call-template>
|
2505
2531
|
</xsl:if>
|
2506
2532
|
</xsl:variable>
|
@@ -2509,8 +2535,8 @@
|
|
2509
2535
|
<xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
|
2510
2536
|
<xsl:value-of select="$toc_figure_title"/>
|
2511
2537
|
<xsl:if test="normalize-space($toc_figure_title) = ''">
|
2512
|
-
<xsl:call-template name="
|
2513
|
-
<xsl:with-param name="
|
2538
|
+
<xsl:call-template name="getLocalizedString">
|
2539
|
+
<xsl:with-param name="key">toc_figures</xsl:with-param>
|
2514
2540
|
</xsl:call-template>
|
2515
2541
|
</xsl:if>
|
2516
2542
|
</xsl:variable>
|
@@ -2519,8 +2545,8 @@
|
|
2519
2545
|
<xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
|
2520
2546
|
<xsl:value-of select="$toc_requirement_title"/>
|
2521
2547
|
<xsl:if test="normalize-space($toc_requirement_title) = ''">
|
2522
|
-
<xsl:call-template name="
|
2523
|
-
<xsl:with-param name="
|
2548
|
+
<xsl:call-template name="getLocalizedString">
|
2549
|
+
<xsl:with-param name="key">toc_recommendations</xsl:with-param>
|
2524
2550
|
</xsl:call-template>
|
2525
2551
|
</xsl:if>
|
2526
2552
|
</xsl:variable>
|
@@ -5064,13 +5090,13 @@
|
|
5064
5090
|
<fo:table-body>
|
5065
5091
|
|
5066
5092
|
<xsl:variable name="title_continued_">
|
5067
|
-
<xsl:call-template name="
|
5068
|
-
<xsl:with-param name="
|
5093
|
+
<xsl:call-template name="getLocalizedString">
|
5094
|
+
<xsl:with-param name="key">continued</xsl:with-param>
|
5069
5095
|
</xsl:call-template>
|
5070
5096
|
</xsl:variable>
|
5071
|
-
|
5097
|
+
<xsl:variable name="title_continued_in_parenthesis" select="concat('(',$title_continued_,')')"/>
|
5072
5098
|
<xsl:variable name="title_continued">
|
5073
|
-
<xsl:value-of select="$
|
5099
|
+
<xsl:value-of select="$title_continued_in_parenthesis"/>
|
5074
5100
|
|
5075
5101
|
</xsl:variable>
|
5076
5102
|
|
@@ -8303,7 +8329,7 @@
|
|
8303
8329
|
|
8304
8330
|
<xsl:call-template name="refine_note_block_style"/>
|
8305
8331
|
|
8306
|
-
<fo:inline xsl:use-attribute-sets="note-name-style">
|
8332
|
+
<fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
|
8307
8333
|
|
8308
8334
|
<xsl:call-template name="refine_note-name-style"/>
|
8309
8335
|
|
@@ -8340,12 +8366,12 @@
|
|
8340
8366
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
8341
8367
|
<xsl:choose>
|
8342
8368
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
8343
|
-
<fo:inline xsl:use-attribute-sets="note-p-style">
|
8369
|
+
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
8344
8370
|
<xsl:apply-templates/>
|
8345
8371
|
</fo:inline>
|
8346
8372
|
</xsl:when>
|
8347
8373
|
<xsl:otherwise>
|
8348
|
-
<fo:block xsl:use-attribute-sets="note-p-style">
|
8374
|
+
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
8349
8375
|
<xsl:apply-templates/>
|
8350
8376
|
</fo:block>
|
8351
8377
|
</xsl:otherwise>
|
@@ -719,10 +719,20 @@
|
|
719
719
|
<fo:block> </fo:block>
|
720
720
|
</fo:table-cell>
|
721
721
|
<fo:table-cell>
|
722
|
-
<fo:block>
|
722
|
+
<fo:block>
|
723
|
+
<!-- Voting begins on: -->
|
724
|
+
<xsl:call-template name="getLocalizedString">
|
725
|
+
<xsl:with-param name="key">voting_begins_on</xsl:with-param>
|
726
|
+
</xsl:call-template><xsl:text>:</xsl:text>
|
727
|
+
</fo:block>
|
723
728
|
</fo:table-cell>
|
724
729
|
<fo:table-cell>
|
725
|
-
<fo:block>
|
730
|
+
<fo:block>
|
731
|
+
<!-- Voting terminates on: -->
|
732
|
+
<xsl:call-template name="getLocalizedString">
|
733
|
+
<xsl:with-param name="key">voting_terminates_on</xsl:with-param>
|
734
|
+
</xsl:call-template><xsl:text>:</xsl:text>
|
735
|
+
</fo:block>
|
726
736
|
</fo:table-cell>
|
727
737
|
</fo:table-row>
|
728
738
|
<fo:table-row>
|
@@ -955,7 +965,12 @@
|
|
955
965
|
<fo:block margin="2mm" role="SKIP">
|
956
966
|
<fo:block margin-bottom="8pt"><xsl:copy-of select="$editorialgroup"/></fo:block>
|
957
967
|
<fo:block margin-bottom="6pt"><xsl:copy-of select="$secretariat"/></fo:block>
|
958
|
-
<fo:block margin-bottom="6pt">
|
968
|
+
<fo:block margin-bottom="6pt">
|
969
|
+
<!-- Voting begins on: -->
|
970
|
+
<xsl:call-template name="getLocalizedString">
|
971
|
+
<xsl:with-param name="key">voting_begins_on</xsl:with-param>
|
972
|
+
</xsl:call-template><xsl:text>:</xsl:text>
|
973
|
+
<xsl:value-of select="$linebreak"/>
|
959
974
|
<fo:inline font-weight="bold">
|
960
975
|
<xsl:choose>
|
961
976
|
<xsl:when test="/iso:iso-standard/iso:bibdata/iso:date[@type = 'vote-started']/iso:on">
|
@@ -965,7 +980,12 @@
|
|
965
980
|
</xsl:choose>
|
966
981
|
</fo:inline>
|
967
982
|
</fo:block>
|
968
|
-
<fo:block>
|
983
|
+
<fo:block>
|
984
|
+
<!-- Voting terminates on: -->
|
985
|
+
<xsl:call-template name="getLocalizedString">
|
986
|
+
<xsl:with-param name="key">voting_terminates_on</xsl:with-param>
|
987
|
+
</xsl:call-template><xsl:text>:</xsl:text>
|
988
|
+
<xsl:value-of select="$linebreak"/>
|
969
989
|
<fo:inline font-weight="bold">
|
970
990
|
<xsl:choose>
|
971
991
|
<xsl:when test="/iso:iso-standard/iso:bibdata/iso:date[@type = 'vote-ended']/iso:on">
|
@@ -1446,8 +1466,8 @@
|
|
1446
1466
|
<xsl:if test="/iso:iso-standard/iso:bibdata/iso:keyword">
|
1447
1467
|
<fo:block font-size="9pt" margin-bottom="6pt">
|
1448
1468
|
<xsl:variable name="title-descriptors">
|
1449
|
-
<xsl:call-template name="
|
1450
|
-
<xsl:with-param name="
|
1469
|
+
<xsl:call-template name="getLocalizedString">
|
1470
|
+
<xsl:with-param name="key">Descriptor.pl</xsl:with-param>
|
1451
1471
|
</xsl:call-template>
|
1452
1472
|
</xsl:variable>
|
1453
1473
|
<fo:inline font-weight="bold"><xsl:value-of select="$title-descriptors"/>: </fo:inline>
|
@@ -2047,10 +2067,17 @@
|
|
2047
2067
|
<xsl:if test="ancestor::*[local-name() = 'li' or local-name() = 'td' or local-name() = 'th' or local-name() = 'dd']">
|
2048
2068
|
<xsl:attribute name="role">SKIP</xsl:attribute>
|
2049
2069
|
</xsl:if>
|
2050
|
-
<xsl:apply-templates>
|
2070
|
+
<!-- <xsl:apply-templates>
|
2071
|
+
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
2072
|
+
</xsl:apply-templates> -->
|
2073
|
+
<!-- <xsl:apply-templates select="node()[not(self::iso:note[not(following-sibling::*) or count(following-sibling::*) = count(../iso:note) - 1])]"> -->
|
2074
|
+
<xsl:apply-templates select="node()[not(self::iso:note)]"> <!-- note renders below paragraph for correct PDF tags order (see https://github.com/metanorma/metanorma-iso/issues/1003) -->
|
2051
2075
|
<xsl:with-param name="split_keep-within-line" select="$split_keep-within-line"/>
|
2052
2076
|
</xsl:apply-templates>
|
2053
2077
|
</xsl:element>
|
2078
|
+
|
2079
|
+
<xsl:apply-templates select="iso:note"/> <!-- [not(following-sibling::*) or count(following-sibling::*) = count(../iso:note) - 1] -->
|
2080
|
+
|
2054
2081
|
<xsl:if test="$element-name = 'fo:inline' and not($inline = 'true') and not(local-name(..) = 'admonition')">
|
2055
2082
|
<fo:block margin-bottom="12pt" role="SKIP">
|
2056
2083
|
<xsl:if test="ancestor::iso:annex or following-sibling::iso:table">
|
@@ -2444,19 +2471,32 @@
|
|
2444
2471
|
<xsl:variable name="titles_">
|
2445
2472
|
|
2446
2473
|
<!-- These titles of Table of contents renders different than determined in localized-strings -->
|
2447
|
-
<title-toc lang="en">
|
2448
|
-
|
2449
|
-
|
2450
|
-
|
2474
|
+
<!-- <title-toc lang="en">
|
2475
|
+
<xsl:if test="$namespace = 'csd' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'unece-rec'">
|
2476
|
+
<xsl:text>Contents</xsl:text>
|
2477
|
+
</xsl:if>
|
2478
|
+
<xsl:if test="$namespace = 'csa' or $namespace = 'm3d' or $namespace = 'nist-sp' or $namespace = 'ogc-white-paper'">
|
2479
|
+
<xsl:text>Table of Contents</xsl:text>
|
2480
|
+
</xsl:if>
|
2481
|
+
<xsl:if test="$namespace = 'gb'">
|
2482
|
+
<xsl:text>Table of contents</xsl:text>
|
2483
|
+
</xsl:if>
|
2484
|
+
</title-toc> -->
|
2485
|
+
<title-toc lang="en">Table of contents</title-toc>
|
2486
|
+
<!-- <title-toc lang="fr">
|
2451
2487
|
<xsl:text>Sommaire</xsl:text>
|
2452
|
-
</title-toc>
|
2453
|
-
<title-toc lang="zh">
|
2454
|
-
|
2488
|
+
</title-toc> -->
|
2489
|
+
<!-- <title-toc lang="zh">
|
2490
|
+
<xsl:choose>
|
2491
|
+
<xsl:when test="$namespace = 'gb'">
|
2492
|
+
<xsl:text>目次</xsl:text>
|
2493
|
+
</xsl:when>
|
2494
|
+
<xsl:otherwise>
|
2455
2495
|
<xsl:text>Contents</xsl:text>
|
2456
|
-
|
2457
|
-
|
2458
|
-
|
2459
|
-
<title-
|
2496
|
+
</xsl:otherwise>
|
2497
|
+
</xsl:choose>
|
2498
|
+
</title-toc> -->
|
2499
|
+
<title-toc lang="zh">目次</title-toc>
|
2460
2500
|
|
2461
2501
|
<title-part lang="en">
|
2462
2502
|
|
@@ -2478,20 +2518,6 @@
|
|
2478
2518
|
<title-subpart lang="en">Sub-part #</title-subpart>
|
2479
2519
|
<title-subpart lang="fr">Partie de sub #</title-subpart>
|
2480
2520
|
|
2481
|
-
<title-list-tables lang="en">List of Tables</title-list-tables>
|
2482
|
-
|
2483
|
-
<title-list-figures lang="en">List of Figures</title-list-figures>
|
2484
|
-
|
2485
|
-
<title-table-figures lang="en">Table of Figures</title-table-figures>
|
2486
|
-
|
2487
|
-
<title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
|
2488
|
-
|
2489
|
-
<title-summary lang="en">Summary</title-summary>
|
2490
|
-
|
2491
|
-
<title-continued lang="ru">(продолжение)</title-continued>
|
2492
|
-
<title-continued lang="en">(continued)</title-continued>
|
2493
|
-
<title-continued lang="fr">(continué)</title-continued>
|
2494
|
-
|
2495
2521
|
</xsl:variable>
|
2496
2522
|
<xsl:variable name="titles" select="xalan:nodeset($titles_)"/>
|
2497
2523
|
|
@@ -2499,8 +2525,8 @@
|
|
2499
2525
|
<xsl:variable name="toc_table_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='table']/*[local-name() = 'title']"/>
|
2500
2526
|
<xsl:value-of select="$toc_table_title"/>
|
2501
2527
|
<xsl:if test="normalize-space($toc_table_title) = ''">
|
2502
|
-
<xsl:call-template name="
|
2503
|
-
<xsl:with-param name="
|
2528
|
+
<xsl:call-template name="getLocalizedString">
|
2529
|
+
<xsl:with-param name="key">toc_tables</xsl:with-param>
|
2504
2530
|
</xsl:call-template>
|
2505
2531
|
</xsl:if>
|
2506
2532
|
</xsl:variable>
|
@@ -2509,8 +2535,8 @@
|
|
2509
2535
|
<xsl:variable name="toc_figure_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='figure']/*[local-name() = 'title']"/>
|
2510
2536
|
<xsl:value-of select="$toc_figure_title"/>
|
2511
2537
|
<xsl:if test="normalize-space($toc_figure_title) = ''">
|
2512
|
-
<xsl:call-template name="
|
2513
|
-
<xsl:with-param name="
|
2538
|
+
<xsl:call-template name="getLocalizedString">
|
2539
|
+
<xsl:with-param name="key">toc_figures</xsl:with-param>
|
2514
2540
|
</xsl:call-template>
|
2515
2541
|
</xsl:if>
|
2516
2542
|
</xsl:variable>
|
@@ -2519,8 +2545,8 @@
|
|
2519
2545
|
<xsl:variable name="toc_requirement_title" select="//*[contains(local-name(), '-standard')]/*[local-name() = 'metanorma-extension']/*[local-name() = 'toc'][@type='requirement']/*[local-name() = 'title']"/>
|
2520
2546
|
<xsl:value-of select="$toc_requirement_title"/>
|
2521
2547
|
<xsl:if test="normalize-space($toc_requirement_title) = ''">
|
2522
|
-
<xsl:call-template name="
|
2523
|
-
<xsl:with-param name="
|
2548
|
+
<xsl:call-template name="getLocalizedString">
|
2549
|
+
<xsl:with-param name="key">toc_recommendations</xsl:with-param>
|
2524
2550
|
</xsl:call-template>
|
2525
2551
|
</xsl:if>
|
2526
2552
|
</xsl:variable>
|
@@ -5064,13 +5090,13 @@
|
|
5064
5090
|
<fo:table-body>
|
5065
5091
|
|
5066
5092
|
<xsl:variable name="title_continued_">
|
5067
|
-
<xsl:call-template name="
|
5068
|
-
<xsl:with-param name="
|
5093
|
+
<xsl:call-template name="getLocalizedString">
|
5094
|
+
<xsl:with-param name="key">continued</xsl:with-param>
|
5069
5095
|
</xsl:call-template>
|
5070
5096
|
</xsl:variable>
|
5071
|
-
|
5097
|
+
<xsl:variable name="title_continued_in_parenthesis" select="concat('(',$title_continued_,')')"/>
|
5072
5098
|
<xsl:variable name="title_continued">
|
5073
|
-
<xsl:value-of select="$
|
5099
|
+
<xsl:value-of select="$title_continued_in_parenthesis"/>
|
5074
5100
|
|
5075
5101
|
</xsl:variable>
|
5076
5102
|
|
@@ -8303,7 +8329,7 @@
|
|
8303
8329
|
|
8304
8330
|
<xsl:call-template name="refine_note_block_style"/>
|
8305
8331
|
|
8306
|
-
<fo:inline xsl:use-attribute-sets="note-name-style">
|
8332
|
+
<fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
|
8307
8333
|
|
8308
8334
|
<xsl:call-template name="refine_note-name-style"/>
|
8309
8335
|
|
@@ -8340,12 +8366,12 @@
|
|
8340
8366
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
8341
8367
|
<xsl:choose>
|
8342
8368
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
8343
|
-
<fo:inline xsl:use-attribute-sets="note-p-style">
|
8369
|
+
<fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
|
8344
8370
|
<xsl:apply-templates/>
|
8345
8371
|
</fo:inline>
|
8346
8372
|
</xsl:when>
|
8347
8373
|
<xsl:otherwise>
|
8348
|
-
<fo:block xsl:use-attribute-sets="note-p-style">
|
8374
|
+
<fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
|
8349
8375
|
<xsl:apply-templates/>
|
8350
8376
|
</fo:block>
|
8351
8377
|
</xsl:otherwise>
|
data/lib/metanorma/iso/front.rb
CHANGED
@@ -12,15 +12,18 @@ module Metanorma
|
|
12
12
|
def metadata_ext(node, xml)
|
13
13
|
super
|
14
14
|
structured_id(node, xml)
|
15
|
-
|
16
|
-
id.stage and metadata_stage(id, xml)
|
15
|
+
metadata_stage(node, xml)
|
17
16
|
@amd && a = node.attr("updates-document-type") and
|
18
17
|
xml.updates_document_type a
|
19
18
|
end
|
20
19
|
|
21
|
-
def metadata_stage(
|
22
|
-
|
23
|
-
|
20
|
+
def metadata_stage(node, xml)
|
21
|
+
id = iso_id_default(iso_id_params(node))
|
22
|
+
id.stage and
|
23
|
+
xml.stagename metadata_stagename(id)&.strip,
|
24
|
+
**attr_code(abbreviation: id.typed_stage_abbrev&.strip)
|
25
|
+
rescue Pubid::Core::Errors::HarmonizedStageCodeInvalidError,
|
26
|
+
Pubid::Core::Errors::TypeStageParseError
|
24
27
|
end
|
25
28
|
|
26
29
|
def metadata_stagename(id)
|
@@ -95,8 +98,17 @@ module Metanorma
|
|
95
98
|
xml.status do |s|
|
96
99
|
s.stage stage, **attr_code(abbreviation: abbrev)
|
97
100
|
s.substage substage
|
98
|
-
node.attr("iteration")
|
101
|
+
i = node.attr("iteration") and s.iteration i
|
99
102
|
end
|
103
|
+
rescue Pubid::Core::Errors::HarmonizedStageCodeInvalidError,
|
104
|
+
Pubid::Core::Errors::TypeStageParseError
|
105
|
+
report_illegal_stage(stage, substage)
|
106
|
+
end
|
107
|
+
|
108
|
+
def report_illegal_stage(stage, substage)
|
109
|
+
err = "Illegal document stage: #{stage}.#{substage}"
|
110
|
+
@log.add("Document Attributes", nil, err)
|
111
|
+
warn err
|
100
112
|
end
|
101
113
|
|
102
114
|
def metadata_committee(node, xml)
|
@@ -10,41 +10,6 @@ require "pubid-iso"
|
|
10
10
|
module Metanorma
|
11
11
|
module ISO
|
12
12
|
class Converter < Standoc::Converter
|
13
|
-
STAGE_ABBRS = {
|
14
|
-
"00": "PWI",
|
15
|
-
"10": "NP",
|
16
|
-
"20": "WD",
|
17
|
-
"30": "CD",
|
18
|
-
"40": "DIS",
|
19
|
-
"50": "FDIS",
|
20
|
-
"60": "IS",
|
21
|
-
"90": "(Review)",
|
22
|
-
"95": "(Withdrawal)",
|
23
|
-
}.freeze
|
24
|
-
|
25
|
-
STAGE_NAMES = {
|
26
|
-
"00": "Preliminary work item",
|
27
|
-
"10": "New work item proposal",
|
28
|
-
"20": "Working draft",
|
29
|
-
"30": "Committee draft",
|
30
|
-
"40": "Draft",
|
31
|
-
"50": "Final draft",
|
32
|
-
"60": "International standard",
|
33
|
-
"90": "Review",
|
34
|
-
"95": "Withdrawal",
|
35
|
-
}.freeze
|
36
|
-
|
37
|
-
def stage_abbr(stage, substage, _doctype)
|
38
|
-
return nil if stage.to_i > 60
|
39
|
-
|
40
|
-
ret = STAGE_ABBRS[stage.to_sym]
|
41
|
-
ret = "PRF" if stage == "60" && substage == "00"
|
42
|
-
ret = nil if stage == "60" && substage != "00"
|
43
|
-
ret = "AWI" if stage == "10" && substage == "99"
|
44
|
-
ret = "AWI" if stage == "20" && substage == "00"
|
45
|
-
ret
|
46
|
-
end
|
47
|
-
|
48
13
|
def metadata_id(node, xml)
|
49
14
|
if id = node.attr("docidentifier")
|
50
15
|
xml.docidentifier id, **attr_code(type: "ISO")
|
@@ -103,23 +68,19 @@ module Metanorma
|
|
103
68
|
|
104
69
|
def iso_id_params_add(node)
|
105
70
|
stage = iso_id_stage(node)
|
106
|
-
|
107
71
|
ret = { number: node.attr("amendment-number") ||
|
108
72
|
node.attr("corrigendum-number"),
|
109
73
|
year: iso_id_year(node),
|
110
74
|
iteration: node.attr("iteration") }.compact
|
111
|
-
|
112
|
-
|
75
|
+
if stage
|
76
|
+
ret[:stage] = stage
|
77
|
+
ret[:stage] == "60.00" and ret[:stage] = :PRF
|
78
|
+
end
|
113
79
|
ret
|
114
80
|
end
|
115
81
|
|
116
82
|
def iso_id_stage(node)
|
117
|
-
|
118
|
-
doctype(node))
|
119
|
-
harmonised = "#{get_stage(node)}.#{get_substage(node)}"
|
120
|
-
harmonised = nil unless /^\d\d\.\d\d/.match?(harmonised)
|
121
|
-
{ abbr: stage&.to_sym, harmonized_code: harmonised }
|
122
|
-
harmonised || stage&.to_sym
|
83
|
+
"#{get_stage(node)}.#{get_substage(node)}"
|
123
84
|
end
|
124
85
|
|
125
86
|
def iso_id_year(node)
|
@@ -195,7 +156,7 @@ module Metanorma
|
|
195
156
|
def structured_id(node, xml)
|
196
157
|
return unless node.attr("docnumber")
|
197
158
|
|
198
|
-
part, subpart = node&.attr("partnumber")&.split(
|
159
|
+
part, subpart = node&.attr("partnumber")&.split("-")
|
199
160
|
xml.structuredidentifier do |i|
|
200
161
|
i.project_number(node.attr("docnumber"), **attr_code(
|
201
162
|
part: part, subpart: subpart,
|
@@ -132,20 +132,6 @@ module Metanorma
|
|
132
132
|
"#{script} is not a recognised script")
|
133
133
|
end
|
134
134
|
|
135
|
-
def stage_validate(xmldoc)
|
136
|
-
stage = xmldoc&.at("//bibdata/status/stage")&.text
|
137
|
-
%w(00 10 20 30 40 50 60 90 95).include? stage or
|
138
|
-
@log.add("Document Attributes", nil,
|
139
|
-
"#{stage} is not a recognised stage")
|
140
|
-
end
|
141
|
-
|
142
|
-
def substage_validate(xmldoc)
|
143
|
-
substage = xmldoc&.at("//bibdata/status/substage")&.text or return
|
144
|
-
%w(00 20 60 90 92 93 98 99).include? substage or
|
145
|
-
@log.add("Document Attributes", nil,
|
146
|
-
"#{substage} is not a recognised substage")
|
147
|
-
end
|
148
|
-
|
149
135
|
def iteration_validate(xmldoc)
|
150
136
|
iteration = xmldoc&.at("//bibdata/status/iteration")&.text or return
|
151
137
|
/^\d+/.match(iteration) or
|
@@ -156,8 +142,6 @@ module Metanorma
|
|
156
142
|
def bibdata_validate(doc)
|
157
143
|
doctype_validate(doc)
|
158
144
|
script_validate(doc)
|
159
|
-
stage_validate(doc)
|
160
|
-
substage_validate(doc)
|
161
145
|
iteration_validate(doc)
|
162
146
|
end
|
163
147
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|