metanorma-cc 2.1.8 → 2.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fcb38ee820dcf15f1aaedb633347e869ef9ad52e6ba1a8cc22f5e594c8394e7
4
- data.tar.gz: 753b26acfc83bff5efb0e763462d7bdf0b5a4b76de601377190b59d300fc7357
3
+ metadata.gz: 6895d3f741596dacc396bc3c83fd15ce410d030b4680d1620458df572025cfa3
4
+ data.tar.gz: 7587a3c37abda6a45621ed022ebeaff24305d4df71788ed02865676ce139526a
5
5
  SHA512:
6
- metadata.gz: 9c0a1bcb8ec47ff6d853a7fd242ffcef7db22f7aa6d3595b2197015afe5132b6e5aa4b2c6579da4c720f15b75d5c1bf7cb7c74cb9f7823dc5636e1e48aba1144
7
- data.tar.gz: 8f41ce57e322347c31c350615b08957e4439d9f6403267fba890a5455f5bbee683eb26c8a876b8d0168617393feef0d89d1fb1306bd618f1b22c36877359e698
6
+ metadata.gz: 5b32831d37bd1ce267ef842983601253d72fe9c2bb72e7bf020417322f6338520c81dc0b77cd5006ee2fb47778fbdb0b96307cd65cb1db05f6b0193a28f37845
7
+ data.tar.gz: a11518e8c5d6b6de7793587c1d1c4f567a35c0f0dfa570d9cb2e751890b8ccf6d434bdf936d81b2dca3aa402244be92a2afa8b4a719ed12682b5227867697745
@@ -6326,6 +6326,18 @@
6326
6326
  </xsl:copy>
6327
6327
  </xsl:template>
6328
6328
 
6329
+ <xsl:template match="*[local-name() = 'sub']" mode="contents_item">
6330
+ <xsl:copy>
6331
+ <xsl:apply-templates mode="contents_item"/>
6332
+ </xsl:copy>
6333
+ </xsl:template>
6334
+
6335
+ <xsl:template match="*[local-name() = 'sup']" mode="contents_item">
6336
+ <xsl:copy>
6337
+ <xsl:apply-templates mode="contents_item"/>
6338
+ </xsl:copy>
6339
+ </xsl:template>
6340
+
6329
6341
  <xsl:template match="*[local-name() = 'stem']" mode="contents_item">
6330
6342
  <xsl:copy-of select="."/>
6331
6343
  </xsl:template>
@@ -7780,21 +7792,29 @@
7780
7792
  </xsl:variable>
7781
7793
 
7782
7794
  <xsl:template match="@*|node()" mode="index_add_id">
7795
+ <xsl:param name="docid"/>
7783
7796
  <xsl:copy>
7784
- <xsl:apply-templates select="@*|node()" mode="index_add_id"/>
7797
+ <xsl:apply-templates select="@*|node()" mode="index_add_id">
7798
+ <xsl:with-param name="docid" select="$docid"/>
7799
+ </xsl:apply-templates>
7785
7800
  </xsl:copy>
7786
7801
  </xsl:template>
7787
7802
 
7788
7803
  <xsl:template match="*[local-name() = 'xref']" mode="index_add_id">
7804
+ <xsl:param name="docid"/>
7789
7805
  <xsl:variable name="id">
7790
- <xsl:call-template name="generateIndexXrefId"/>
7806
+ <xsl:call-template name="generateIndexXrefId">
7807
+ <xsl:with-param name="docid" select="$docid"/>
7808
+ </xsl:call-template>
7791
7809
  </xsl:variable>
7792
7810
  <xsl:copy> <!-- add id to xref -->
7793
7811
  <xsl:apply-templates select="@*" mode="index_add_id"/>
7794
7812
  <xsl:attribute name="id">
7795
7813
  <xsl:value-of select="$id"/>
7796
7814
  </xsl:attribute>
7797
- <xsl:apply-templates mode="index_add_id"/>
7815
+ <xsl:apply-templates mode="index_add_id">
7816
+ <xsl:with-param name="docid" select="$docid"/>
7817
+ </xsl:apply-templates>
7798
7818
  </xsl:copy>
7799
7819
  <!-- split <xref target="bm1" to="End" pagenumber="true"> to two xref:
7800
7820
  <xref target="bm1" pagenumber="true"> and <xref target="End" pagenumber="true"> -->
@@ -7806,7 +7826,9 @@
7806
7826
  <xsl:attribute name="id">
7807
7827
  <xsl:value-of select="$id"/><xsl:text>_to</xsl:text>
7808
7828
  </xsl:attribute>
7809
- <xsl:apply-templates mode="index_add_id"/>
7829
+ <xsl:apply-templates mode="index_add_id">
7830
+ <xsl:with-param name="docid" select="$docid"/>
7831
+ </xsl:apply-templates>
7810
7832
  </xsl:copy>
7811
7833
  </xsl:if>
7812
7834
  </xsl:template>
@@ -7843,12 +7865,33 @@
7843
7865
  </xsl:when>
7844
7866
  <xsl:when test="self::* and local-name(.) = 'xref'">
7845
7867
  <xsl:variable name="id" select="@id"/>
7846
- <xsl:variable name="page" select="$index//item[@id = $id]"/>
7847
- <xsl:variable name="id_next" select="following-sibling::*[local-name() = 'xref'][1]/@id"/>
7848
- <xsl:variable name="page_next" select="$index//item[@id = $id_next]"/>
7849
7868
 
7869
+ <xsl:variable name="id_next" select="following-sibling::*[local-name() = 'xref'][1]/@id"/>
7850
7870
  <xsl:variable name="id_prev" select="preceding-sibling::*[local-name() = 'xref'][1]/@id"/>
7851
- <xsl:variable name="page_prev" select="$index//item[@id = $id_prev]"/>
7871
+
7872
+ <xsl:variable name="pages_">
7873
+ <xsl:for-each select="$index/index/item[@id = $id or @id = $id_next or @id = $id_prev]">
7874
+ <xsl:choose>
7875
+ <xsl:when test="@id = $id">
7876
+ <page><xsl:value-of select="."/></page>
7877
+ </xsl:when>
7878
+ <xsl:when test="@id = $id_next">
7879
+ <page_next><xsl:value-of select="."/></page_next>
7880
+ </xsl:when>
7881
+ <xsl:when test="@id = $id_prev">
7882
+ <page_prev><xsl:value-of select="."/></page_prev>
7883
+ </xsl:when>
7884
+ </xsl:choose>
7885
+ </xsl:for-each>
7886
+ </xsl:variable>
7887
+ <xsl:variable name="pages" select="xalan:nodeset($pages_)"/>
7888
+
7889
+ <!-- <xsl:variable name="page" select="$index/index/item[@id = $id]"/> -->
7890
+ <xsl:variable name="page" select="$pages/page"/>
7891
+ <!-- <xsl:variable name="page_next" select="$index/index/item[@id = $id_next]"/> -->
7892
+ <xsl:variable name="page_next" select="$pages/page_next"/>
7893
+ <!-- <xsl:variable name="page_prev" select="$index/index/item[@id = $id_prev]"/> -->
7894
+ <xsl:variable name="page_prev" select="$pages/page_prev"/>
7852
7895
 
7853
7896
  <xsl:choose>
7854
7897
  <!-- 2nd pass -->
@@ -7908,16 +7951,20 @@
7908
7951
  </xsl:template>
7909
7952
 
7910
7953
  <xsl:template name="generateIndexXrefId">
7954
+ <xsl:param name="docid"/>
7955
+
7911
7956
  <xsl:variable name="level" select="count(ancestor::*[local-name() = 'ul'])"/>
7912
7957
 
7913
- <xsl:variable name="docid">
7914
- <xsl:call-template name="getDocumentId"/>
7958
+ <xsl:variable name="docid_curr">
7959
+ <xsl:value-of select="$docid"/>
7960
+ <xsl:if test="normalize-space($docid) = ''"><xsl:call-template name="getDocumentId"/></xsl:if>
7915
7961
  </xsl:variable>
7962
+
7916
7963
  <xsl:variable name="item_number">
7917
7964
  <xsl:number count="*[local-name() = 'li'][ancestor::*[local-name() = 'indexsect']]" level="any"/>
7918
7965
  </xsl:variable>
7919
7966
  <xsl:variable name="xref_number"><xsl:number count="*[local-name() = 'xref']"/></xsl:variable>
7920
- <xsl:value-of select="concat($docid, '_', $item_number, '_', $xref_number)"/> <!-- $level, '_', -->
7967
+ <xsl:value-of select="concat($docid_curr, '_', $item_number, '_', $xref_number)"/> <!-- $level, '_', -->
7921
7968
  </xsl:template>
7922
7969
 
7923
7970
  <xsl:template match="*[local-name() = 'indexsect']/*[local-name() = 'title']" priority="4">
@@ -0,0 +1,327 @@
1
+ html, body, div, span, applet, object, iframe,
2
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3
+ a, abbr, acronym, address, big, cite, code,
4
+ del, dfn, em, img, ins, kbd, q, s, samp,
5
+ small, strike, strong, sub, sup, tt, var,
6
+ b, u, i, center,
7
+ ol, ul, li,
8
+ fieldset, form, label, legend,
9
+ table, caption, tbody, tfoot, thead, tr, th, td,
10
+ article, aside, canvas, details, embed,
11
+ figure, figcaption, footer, header, hgroup,
12
+ menu, output, ruby, section, summary,
13
+ time, mark, audio, video {
14
+ margin: 0;
15
+ padding: 0; }
16
+
17
+ html, body, div, span, applet, object, iframe,
18
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
19
+ a, abbr, acronym, address, big, cite, code,
20
+ del, dfn, em, img, ins, kbd, q, s, samp,
21
+ small, strike, strong, sub, sup, tt, var,
22
+ b, u, i, center,
23
+ dl, dt, dd, ol, ul, li,
24
+ fieldset, form, label, legend,
25
+ table, caption, tbody, tfoot, thead, tr, th, td,
26
+ article, aside, canvas, details, embed,
27
+ figure, figcaption, footer, header, hgroup,
28
+ menu, nav, output, ruby, section, summary,
29
+ time, mark, audio, video {
30
+ border: 0;
31
+ font-size: 100%; }
32
+
33
+ html, body, div, span, applet, object, iframe,
34
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
35
+ a, abbr, acronym, address, big, cite, code,
36
+ del, dfn, em, img, ins, kbd, q, s, samp,
37
+ small, strike, strong, tt, var,
38
+ b, u, i, center,
39
+ dl, dd, ol, ul, li,
40
+ fieldset, form, label, legend,
41
+ table, caption, tbody, tfoot, thead, tr, th, td,
42
+ article, aside, canvas, details, embed,
43
+ figure, figcaption, footer, header, hgroup,
44
+ menu, nav, output, ruby, section, summary,
45
+ time, mark, audio, video {
46
+ vertical-align: baseline; }
47
+
48
+ html, body, div, span, applet, object, iframe,
49
+ p, blockquote,
50
+ a, abbr, acronym, address, big, cite,
51
+ del, dfn, em, img, ins, q, s,
52
+ small, strike, strong, sub, sup, var,
53
+ b, u, i, center,
54
+ dl, dt, dd, ol, ul, li,
55
+ fieldset, form, label, legend,
56
+ table, caption, tbody, tfoot, thead, tr, th, td,
57
+ article, aside, canvas, details, embed,
58
+ figure, figcaption, footer, header, hgroup,
59
+ menu, nav, output, ruby, section, summary,
60
+ time, mark, audio, video {
61
+ font-family: {{bodyfont}}; }
62
+
63
+ code, pre, tt, kbd, samp {
64
+ font-family: {{monospacefont}};
65
+ font-variant-ligatures: none; }
66
+
67
+ code *, pre *, tt *, kbd *, samp * {
68
+ font-family: {{monospacefont}} !important;
69
+ font-variant-ligatures: none; }
70
+
71
+ p code, dt code, li code, label code, legend code, caption code, th code, td code,
72
+ p tt, dt tt, li tt, label tt, legend tt, caption tt, th tt, td tt,
73
+ p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
74
+ p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
75
+ font-size: {{monospacefontsize}}; }
76
+
77
+ article, aside, details, figcaption, figure,
78
+ footer, header, hgroup, menu, nav, section {
79
+ display: block; }
80
+
81
+ table {
82
+ border-collapse: collapse;
83
+ border-spacing: 0; }
84
+
85
+ h1, h2, h3, h4, h5, h6 {
86
+ font-family: {{headerfont}}; }
87
+
88
+ .h1, .h2, .h3, .h4, .h5, .h6 {
89
+ font-family: {{headerfont}}; }
90
+
91
+ blockquote, q {
92
+ quotes: none; }
93
+ blockquote:before, blockquote:after, q:before, q:after {
94
+ content: '';
95
+ content: none; }
96
+
97
+ .h2Annex {
98
+ font-family: {{headerfont}}; }
99
+
100
+ dl {
101
+ display: grid;
102
+ grid-template-columns: max-content auto; }
103
+ dl dt p, dl dd p {
104
+ margin-top: 0; }
105
+ dl dt {
106
+ grid-column-start: 1; }
107
+ dl dd {
108
+ grid-column-start: 2; }
109
+
110
+ b, strong {
111
+ font-weight: bold; }
112
+
113
+ div.document-stage-band, div.document-type-band {
114
+ background-color: #333333; }
115
+
116
+ a.FootnoteRef + a.FootnoteRef:before {
117
+ content: ", ";
118
+ vertical-align: super; }
119
+
120
+ .addition {
121
+ color: blue; }
122
+
123
+ .deletion {
124
+ color: red;
125
+ text-decoration: line-through; }
126
+
127
+ #standard-band {
128
+ background-color: #0AC442; }
129
+
130
+ #standard {
131
+ border-bottom: solid 3px #0AC442; }
132
+
133
+ #directive-band {
134
+ background-color: #540D6E; }
135
+
136
+ #directive {
137
+ border-bottom: solid 3px #540D6E; }
138
+
139
+ #guide-band {
140
+ background-color: #D183C9; }
141
+
142
+ #guide {
143
+ border-bottom: solid 3px #D183C9; }
144
+
145
+ #specification-band {
146
+ background-color: #65AFFF; }
147
+
148
+ #specification {
149
+ border-bottom: solid 3px #65AFFF; }
150
+
151
+ #report-band {
152
+ background-color: #3A405A; }
153
+
154
+ #report {
155
+ border-bottom: solid 3px #3A405A; }
156
+
157
+ #amendment-band {
158
+ background-color: #F26430; }
159
+
160
+ #amendment {
161
+ border-bottom: solid 3px #F26430; }
162
+
163
+ #corrigendum-band {
164
+ background-color: #C84630; }
165
+
166
+ #corrigendum {
167
+ border-bottom: solid 3px #C84630; }
168
+
169
+ #administrative-band {
170
+ background-color: #BFAE48; }
171
+
172
+ #administrative {
173
+ border-bottom: solid 3px #BFAE48; }
174
+
175
+ #advisory-band {
176
+ background-color: #BD9391; }
177
+
178
+ #advisory {
179
+ border-bottom: solid 3px #BD9391; }
180
+
181
+ #proposal-band {
182
+ background-color: #39A0ED; }
183
+
184
+ #proposal {
185
+ border-bottom: solid 3px #39A0ED; }
186
+
187
+ #working-draft-band {
188
+ background-color: #2D7393; }
189
+
190
+ #working-draft {
191
+ border-bottom: solid 3px #2D7393; }
192
+
193
+ #committee-draft-band {
194
+ background-color: #2A6B7C; }
195
+
196
+ #committee-draft {
197
+ border-bottom: solid 3px #2A6B7C; }
198
+
199
+ #draft-standard-band {
200
+ background-color: #1C7F7A; }
201
+
202
+ #draft-standard {
203
+ border-bottom: solid 3px #1C7F7A; }
204
+
205
+ #final-draft-band {
206
+ background-color: #53C170; }
207
+
208
+ #final-draft {
209
+ border-bottom: solid 3px #53C170; }
210
+
211
+ #published-band {
212
+ background-color: #069E2D; }
213
+
214
+ #published {
215
+ border-bottom: solid 3px #069E2D; }
216
+
217
+ #withdrawn-band {
218
+ background-color: #004E64; }
219
+
220
+ #withdrawn {
221
+ border-bottom: solid 3px #004E64; }
222
+
223
+ #cancelled-band {
224
+ background-color: #2E382E; }
225
+
226
+ #cancelled {
227
+ border-bottom: solid 3px #2E382E; }
228
+
229
+ .coverpage {
230
+ text-align: center;
231
+ padding-left: 1.5em; }
232
+
233
+ .wrapper-top {
234
+ background-color: #0e1a85;
235
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAABYlAAAWJQFJUiTwAAADwUlEQVR4nO3YgQ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mwDAJJsABDmAoCyegeSZRsAkGQDgDAXAJTVO5As2wCAJBsAhLkAoKzegWTZBgAk2QAgzAUAZfUOJMs2ACDJBgBhLgAoq3cgWbYBAEk2AAhzAUBZvQPJsg0ASLIBQJgLAMrqHUiWbQBAkg0AwlwAUFbvQLJsAwCSbAAQ5gKAsnoHkmUbAJBkA4AwFwCU1TuQLNsAgCQbAFTNzA9ggAr9aahO8QAAAABJRU5ErkJggg==");
236
+ color: #ffffff;
237
+ padding: 2em 0; }
238
+
239
+ .doc-number {
240
+ font-size: 0.5em;
241
+ font-family: {{bodyfont}}; }
242
+
243
+ .coverpage-maturity {
244
+ font-family: {{bodyfont}};
245
+ font-weight: 400;
246
+ font-size: 1em;
247
+ margin: 0 0 2em 0;
248
+ text-transform: uppercase; }
249
+
250
+ .coverpage-title {
251
+ padding-bottom: 0.5em;
252
+ font-family: {{headerfont}};
253
+ font-size: 1.2em;
254
+ line-height: 1.2em;
255
+ font-weight: 600;
256
+ padding-left: 1em;
257
+ padding-right: 1em; }
258
+
259
+ .title-section1 {
260
+ padding: 0 2em 0 3em; }
261
+
262
+ .prefatory-section {
263
+ padding: 0 3em 0 6em; }
264
+
265
+ .zzSTDTitle1, .MsoCommentText {
266
+ display: none; }
267
+
268
+ .coverpage-logo span, .coverpage-tc-name span {
269
+ font-family: {{bodyfont}};
270
+ text-transform: uppercase;
271
+ font-weight: 600; }
272
+
273
+ .coverpage-tc-name {
274
+ font-size: 1.2em;
275
+ line-height: 1.2em;
276
+ margin: 0.25em 0; }
277
+
278
+ .coverpage-contributors {
279
+ margin-top: 1em;
280
+ line-height: 1.5em;
281
+ font-weight: 300; }
282
+ .coverpage-contributors .role {
283
+ font-variant-caps: all-small-caps;
284
+ background: #f7f7f7;
285
+ border-radius: 5px;
286
+ padding: 0.1em 0.5em;
287
+ margin-left: 1em;
288
+ color: #485094;
289
+ font-size: 0.9em;
290
+ font-weight: 900; }
291
+ .coverpage-contributors .person {
292
+ display: block;
293
+ font-weight: 300; }
294
+
295
+ .coverpage-doc-identity {
296
+ font-size: 2em;
297
+ line-height: 2em; }
298
+
299
+ .coverpage-title .title-second {
300
+ display: none; }
301
+
302
+ .coverpage-stage-block {
303
+ font-family: {{bodyfont}};
304
+ font-weight: 700;
305
+ font-size: 1.25em;
306
+ margin: 2em 0em 2em 0em;
307
+ text-transform: uppercase; }
308
+
309
+ .coverpage-warning {
310
+ border-top: solid 1px #f36f36;
311
+ border-bottom: solid 1px #f36f36;
312
+ margin: 1em 2em;
313
+ color: #485094;
314
+ padding: 1em; }
315
+ .coverpage-warning .title {
316
+ color: #f36f36;
317
+ font-family: {{headerfont}};
318
+ font-weight: 700;
319
+ text-transform: uppercase;
320
+ font-size: 1.2em; }
321
+
322
+ .copyright {
323
+ padding: 1em;
324
+ font-size: 0.9em;
325
+ text-align: left; }
326
+ .copyright .name, .copyright .address {
327
+ color: #485094; }